Guide

Codex vs Claude Code 2026: Plans, Limits and Real Costs

Codex vs Claude Code in 2026: plan prices, usage meters, a five-seat team bill and API cost per million tokens, from vendor pages read October 10, 2026.

Short answer: Claude Pro is the cheaper of the two standard plans, at $17 a month billed annually against $20 a month for ChatGPT Plus. Codex is the cheaper way to try an agent, because OpenAI's Free plan includes it at no charge and its Go plan costs $8 a month. Those lower tiers cover lighter work only. The heavy plans start at the same monthly price, so the choice there comes down to usage limits and surfaces.

The price gap is small. Where you work matters more. Claude Code runs in your terminal and opens pull requests. Codex runs in the terminal too, but it also lives in the browser, on iOS, and in cloud tools such as automatic code review. We did not run a benchmark, so this page does not rank code quality.

Toolradar data: the AI coding ranking evaluates 156 tools as of October 2026. Claude Code places third there, OpenAI Codex sits between 11 and 30, and Claude Code is one of two paid-only tools in the top 10. Both products are in that set, with a Claude Code page and an OpenAI Codex page.

Quick verdict

Dimension Claude Code Codex
Free access to the agent No. Claude's Free plan excludes Claude Code Yes, in the desktop app on GPT-6 Luna, subject to rollout
Entry paid plan Pro, billed annually at $17 a month, or monthly Go, $8 a month for lightweight tasks; Plus includes all four Codex surfaces
Heavier individual plan Max, at 5x or 20x Pro usage per five-hour session Pro, same starting price, with no five-hour limit at the moment
Team seat Standard, billed annually, for 2 to 150 seats Business, billed annually, for 2 or more users
Usage meter Rolling five-hour window plus weekly limits; no message counts published Ranges of local messages per five-hour period on Plus, described as estimates
Where it runs Terminal, VS Code, JetBrains, desktop app, web, mobile, Slack Web, CLI, IDE extension, iOS, and cloud integrations such as automatic code review
Pay per token Claude Console account, at standard API rates API key, at API rates, in the CLI, SDK and IDE extension only

What one developer pays

Two plans at the same monthly price look alike until you read the billing terms. Claude Pro billed annually comes to $200 up front, which is $40 less than ChatGPT Plus at its monthly rate for the year. OpenAI's pricing page prints no annual price for Plus, so the comparison uses the monthly rate. Billed monthly, Claude Pro and Plus are level. Our Claude Code pricing explainer lists every Claude plan, and our OpenAI Codex review covers Codex on its own.

Plan Price Per year Agent included
Claude Free Free Free None. Claude Code is not included
Codex on the Free plan Free Free GPT-6 Luna at Standard speed in the desktop app, subject to rollout
ChatGPT Go $8 a month $96 Codex for lightweight coding tasks
Claude Pro, billed annually $17 a month ($200 up front) $200 Claude Code
Claude Pro, billed monthly $20 a month $240 Claude Code
ChatGPT Plus $20 a month $240 at the monthly rate Codex on the web, CLI, IDE extension and iOS
Claude Max From $100 a month, billed monthly From $1,200 Claude Code at 5x or 20x Pro usage
ChatGPT Pro From $100 a month From $1,200 Codex, with no five-hour limit at the moment

The heavy tiers meet on price. Claude Max is priced against Claude Pro: its 5x and 20x tiers multiply Pro's usage in each five-hour session. Anthropic prints no dollar price for the 20x tier on its pricing page, so this page gives none. ChatGPT Pro has no five-hour limit at the moment, so the two heavy plans meter usage differently.

Two ways to count usage

Claude counts usage in a rolling five-hour session and adds weekly limits on paid plans. The web app, the desktop app, mobile and Claude Code draw from one pool. A long agent session in the terminal therefore uses up the allowance you planned for chat. Anthropic publishes no message or token counts, so you cannot predict a session's cost in advance.

OpenAI prints ranges instead. On Plus, a five-hour period holds 350 to 3,000 local messages on GPT-6 Luna, 15 to 160 on GPT-6.1 Sol, 15 to 150 on GPT-6 Sol and 5 to 45 on GPT-6 Astra. The page calls these estimates, not fixed limits, and adds that weekly limits may also apply. The spread is wide. A developer who switches between Luna and Sol should plan around the low end of the Sol range.

When Plus or Pro users reach the limit, they can buy credits. OpenAI prints no dollar price per credit and says credit prices depend on your plan or agreement. The overage cost of Codex therefore cannot be stated from the page, while Claude Code can also bill per token through a Claude Console account, covered below.

A five-seat team

Team pricing is closer than the individual one. Claude Team Standard and ChatGPT Business both charge $20 a seat billed annually and $25 billed monthly. At five seats, the two bills match exactly.

Five seats Claude Team Standard ChatGPT Business
Billed annually, per month $100 $100
Billed annually, per year $1,200 $1,200
Billed monthly, per year $1,500 $1,500
Higher-usage seat, billed annually, per year $6,000 for Premium seats with five times Standard usage No higher-usage Business seat is printed

The matching price moves the decision to features. Business adds SAML single sign-on, MFA, a dedicated workspace and larger virtual machines for cloud chats, and OpenAI says business data is not used for training by default. Claude Team adds Premium seats with five times the Standard usage, and it runs from 2 to 150 seats. If your team needs the Premium usage level, Claude is the only one of the two that prices it. Our best AI coding assistants ranking covers the wider field if neither tool fits.

Pay per token through the API

Developers who skip subscriptions pay per token. Claude Code through a Claude Console account uses standard API pricing. Codex through an API key bills at API rates in the CLI, SDK and IDE extension, with no cloud features. On the list rates, Sonnet 5.5 and GPT-6.1 Sol are identical: $2 per million input tokens and $10 per million output tokens, with cached input at $0.10. Opus 5.5 costs double on each side.

Model, standard tier, per 1M tokens Input Cached input Output
Claude Sonnet 5.5 $2.00 $0.10 $10.00
Claude Opus 5.5 $4.00 $0.20 $20.00
GPT-6.1 Sol $2.00 $0.10 $10.00
gpt-5.3-codex, the Codex-labelled model $1.75 $0.175 $14.00

Take a developer who sends 30 million input tokens and 3 million output tokens a month. With no caching, that is 30 x $2 + 3 x $10 = $90 on Sonnet 5.5 or GPT-6.1 Sol, $180 on Opus 5.5, whose rates are double Sonnet's on each side, and $94.50 on gpt-5.3-codex (30 x $1.75 + 3 x $14). If 80% of input is cached, Sonnet 5.5 and GPT-6.1 Sol both fall to $44.40 (24 x $0.10 + 6 x $2 + $30), Opus 5.5 falls to $88.80, and gpt-5.3-codex falls to $56.70.

The 80% cache rate is an assumption, not a measurement. Anthropic also bills cache writes at $2.50 per million tokens on Sonnet 5.5, and the Sonnet figures above leave that out. Anthropic's Claude Code page says Max includes $100 a month of API credits on 5x and $200 a month on 20x, which changes the math for a Max subscriber who would otherwise pay per token.

Which fits how you code

The vendor pages we read publish no benchmark we can check, so this section compares surfaces and workflows, not code quality.

Claude Code runs in the terminal, as an extension in VS Code and JetBrains, in the desktop app on paid plans, on the web and on mobile. It can also start a coding task from Slack and works with GitHub and GitLab. It can open pull requests, so a task that ends in a PR fits the tool. Our how to use Claude Code guide covers the setup, and our Claude Code review covers the product in more depth.

Codex runs on the web, in the CLI, in an IDE extension and on iOS, and Plus includes all four. Its cloud integrations include automatic code review and Slack. Reviews run through GitHub count toward code review usage, and reviews run locally or outside GitHub count toward general usage. A team that reviews every pull request on GitHub should check that line of the usage page before it picks a plan.

OpenAI's Plus page names GPT-6.1 Sol and GPT-6 Luna, and its message-limit table also covers GPT-6 Sol and GPT-6 Astra. Claude Code's product page does not name a default model, so the vendor pages we read do not say which model a Claude plan runs by default. For model quality on programming tasks, our ChatGPT vs Claude for coding page covers the chat side.

Free routes to try the agent

Claude has no free route to the agent. Its Free plan covers everyday chat and excludes Claude Code, which the Pro plan includes. Codex on OpenAI's Free plan runs GPT-6 Luna at Standard speed in the desktop app, subject to rollout. For a developer who wants to test an agent before paying, Codex is the route that costs nothing, so check that access when you sign up.

Who should pick which

Pick Claude Code if you work in a terminal or VS Code and want the agent to finish at a pull request. Annual Pro is $3 a month under Plus at its monthly rate, which makes it the cheaper of the two standard plans.

Pick Codex if you already pay for ChatGPT and want the agent in that same account, or if you want a free route to test one before you spend anything. Go at $8 a month is the cheapest paid entry in this comparison, with the lighter limits described above.

For a five-seat team on annual billing, the bill is identical at $1,200 a year. Decide on the usage meter you can predict, the Premium seat if you need it, and whether you need SAML single sign-on, which Business includes.

If Cursor is also on your list, our Claude Code vs Cursor comparison covers that pair, and our OpenCode vs Claude Code page covers the open-source route. If Cursor's own plans matter to the decision, our Cursor pricing explainer lists them.

How we ran the numbers

Plan prices and plan facts come from vendor pages read on October 10, 2026: Claude's pricing page and Claude Code product page at claude.com, ChatGPT's pricing page at learn.chatgpt.com, and OpenAI's API pricing page at developers.openai.com. The ranking figure comes from Toolradar's AI coding page, October 2026. Every cost on this page is our arithmetic on list prices, with no discount, promotion or credit purchase applied. Vendor pricing changes, so check both pricing pages before you buy.

Cite this: Devshot, "Codex vs Claude Code 2026: Plans, Limits and Real Costs", October 2026. Prices verified on vendor pages, October 10, 2026.

FAQ

Is Codex cheaper than Claude Code?

Codex's cheapest tiers cost less, but they are lighter. Codex is free on the Free plan and $8 a month on Go, against $17 a month for Claude Pro billed annually. Among the two standard plans, Claude Pro is $3 a month cheaper than ChatGPT Plus at the monthly rate. The heavy plans, Claude Max 5x and ChatGPT Pro, start at the same price.

Does Claude's free plan include Claude Code?

No. Claude's Free plan covers everyday chat and excludes Claude Code, which starts with Pro. Codex on OpenAI's Free plan runs GPT-6 Luna in the desktop app, subject to rollout.

How many messages does Codex allow in five hours?

On Plus, OpenAI prints 350 to 3,000 local messages per five-hour period for GPT-6 Luna, 15 to 160 for GPT-6.1 Sol, 15 to 150 for GPT-6 Sol and 5 to 45 for GPT-6 Astra. It calls these estimates, not fixed limits. Anthropic publishes no message counts for Claude Pro, only the five-hour window and weekly limits.

Is Codex or Claude Code cheaper through the API?

Per million tokens, Sonnet 5.5 and GPT-6.1 Sol list at $2 input and $10 output, with cached input at $0.10. At 30 million input and 3 million output tokens a month, both come to $90 without caching and $44.40 with 80% of input cached, before Anthropic's cache-write charge. Opus 5.5 costs twice as much on each side.

Does OpenAI have a team plan for Codex?

Yes. Business costs $20 per user a month billed annually for two or more users, or $25 billed monthly. Claude Team Standard costs the same per seat on the same billing terms and runs from 2 to 150 seats.

Devshot's newsletter covers these tools as they change. Sign up at devshot.co.

Some offers on this page may be paid placements or contain affiliate links.

Devshot: the daily dev & AI brief

Free daily newsletter, read in 5 minutes.

Subscribe free