Download

Codex vs Claude Code: pricing, limits, models and which to pick

Tyler J. CagleUpdated 22 min read

Key facts

You don't have to choose between Codex and Claude Code. Auto, the Mac app for all your coding agents, connects the AI subscriptions you already pay for, so either app can run on any plan you connect, and it picks a model for each task by how hard the task is; every request shows its model, what it cost and why. If you'd rather pick one, the plan you already pay for usually decides: both start at $20 a month as of November 23, 2026. Claude Pro held more usage at that price, about $707 a month at API prices against about $191 for ChatGPT Plus in Codex in Wokey's measurements of November 16 to 23, 2026, while Codex used less per task: on five real tasks in the click library on November 9, 2026, Codex on GPT-6.1 Sol passed 14 of 15 runs at $0.085 a task and Claude Code on Claude Opus 5.5 passed all 15 at $0.252, at API list prices. Auto wrote this post and works in both apps, among others, so read the comparison with that in mind.

How do Codex and Claude Code compare side by side?

Codex and Claude Code cover the same ground (a CLI, a desktop app, IDE extensions, a cloud agent, MCP, subagents and skills), so the differences that decide between them are the plan, the models, the limits and the cost per task. As of November 23, 2026, from OpenAI's and Anthropic's docs, Wokey's November 16 to 23 measurements and Auto's November 9 test:

As of November 23, 2026CodexClaude Code
Made byOpenAIAnthropic
Comes withEvery ChatGPT plan; Free and Go get only GPT-6 Luna in the desktop app (OpenAI)Claude Pro, Max, Ultra, Team and Enterprise; not Free (Anthropic)
Lowest price for full useChatGPT Plus, $20 a monthClaude Pro, $20 a month, or $17 billed annually
Higher tiersChatGPT Pro at $100, $200 or $500 a monthMax at $100 and Ultra at $200 a month
Five-hour limit on the $20 planAn estimated 17 to 180 GPT-6.2 Sol messages; weekly limits may also applyYes, plus a weekly limit; Anthropic publishes no message counts
Usage the $20 plan held, at API pricesAbout $191 a month on Plus (Wokey, 5 accounts)About $707 a month on Pro (Wokey, 134 accounts)
Plans with no five-hour limitChatGPT Pro, for nowUltra, for verified accounts (weekly limit only)
Default modelA recommended model; OpenAI recommends GPT-6.2 Sol for everyday coding (OpenAI)Claude Opus 5.5 (Anthropic)
Most capable modelGPT-6.2 AstraClaude Fable 5.2, chosen with /model fable
Pay per tokenAPI key; GPT-6.2 Sol at $2 input and $10 output per million tokens (OpenAI)Console account; Claude Opus 5.5 at $4 input and $20 output per million tokens (Anthropic)
Cost per task in Auto's test$0.085 (GPT-6.1 Sol)$0.252 (Claude Opus 5.5)
Passed in Auto's test14 of 15 runs, 57 s median15 of 15 runs, 69 s median
Where it runsCLI, ChatGPT desktop app, IDE extension, Codex Cloud, iOSCLI, Claude desktop app, VS Code and JetBrains, the web
Project instructionsAGENTS.mdCLAUDE.md, or AGENTS.md
Open-source CLIYesNot listed in Anthropic's docs
Other makers' models, on your plansWith AutoWith Auto

How much do Codex and Claude Code cost?

Codex and Claude Code both cost $20 a month at the entry tier, and neither is sold on its own: Codex comes with every ChatGPT plan and Claude Code with every paid Claude plan, as of November 23, 2026 (OpenAI, Anthropic). The tiers above it differ: ChatGPT Pro costs $100, $200 or $500 a month, and Claude offers Max at $100 and Ultra at $200.

Plan, November 23, 2026Codex (ChatGPT plans)Claude Code (Claude plans)
Free$0: GPT-6 Luna in the ChatGPT desktop app, subject to rollout$0: Claude Code not included
EntryGo, $8 a month: GPT-6 Luna in the desktop app onlyNone
$20 tierPlus, $20 a month: Codex on the web, in the CLI, the IDE extension and iOS, with GPT-6.2 Astra, GPT-6.2 Sol, GPT-6.1 Sol and GPT-6 LunaPro, $20 a month or $17 a month billed annually: Claude Code with Claude Opus 5.5; Claude Fable only through usage credits
Higher tiersPro at $100, $200 or $500 a month, with no five-hour limit for now; Pro $500 adds Ultrafast modeMax at $100 (5x Pro's usage) and Ultra at $200 (10x Pro's weekly usage); both include Claude Fable up to half the weekly limit
TeamsBusiness, $20 per user a month billed annually or $25 monthlyTeam, $20 per Standard seat a month billed annually or $25 monthly; Premium seats $100 or $125
Pay per tokenAPI key at API prices, without cloud features such as GitHub code reviewConsole account at API prices

So the answer to "how much does Claude Code cost?" is $20 a month on Pro, $100 on Max or $200 on Ultra, or API prices on a Console account, and Codex costs $20 a month on Plus, from $100 on Pro, or API prices on a key. At the end of October 2026, Anthropic renamed Max 5x to Max and Max 20x to Ultra, with no price change (Anthropic). Codex pricing and Claude Code pricing list every plan with what it holds at API prices.

Which $20 plan goes further, ChatGPT Plus or Claude Pro?

Claude Pro held about 3.7 times as much usage at API prices as ChatGPT Plus did in Codex, in Wokey's measurements of real subscription accounts from November 16 to 23, 2026: about $707 a month against about $191. Neither OpenAI nor Anthropic publishes a plan's allowance in dollars, and Wokey's Plus figure comes from only 5 accounts, so read it as a rough guide:

Plan, November 16 to 23, 2026PriceUsage a week, at API pricesAbout a monthTimes its priceAccounts measured
ChatGPT Plus, in Codex$20$44$1919.5×5
Claude Pro$20$163$70735×134
Claude Max$100$844$3,65737×14
ChatGPT Pro $200, in Codex$200$1,095$4,74524×14
Claude Ultra$200$1,570$6,80134×56

Dollars at API prices overstate the gap in work done, because Claude's models cost more per token and Claude Code wrote more per task. Divided by the average task cost in Auto's November 9 test, Pro's month comes to about 2,800 Claude Code tasks and Plus's to about 2,250 Codex tasks like those, if the limits let you spread them evenly. So the $20 plans are closer than the dollar figures suggest, with Claude Pro ahead on this measure. Above $20, ChatGPT Pro has no five-hour limit for now, and Ultra has none for verified accounts. Claude Pro vs Max covers moving up on the Claude side.

What does a typical task cost in Codex and Claude Code?

A typical bug fix cost $0.085 in Codex and $0.252 in Claude Code at API list prices in Auto's November 9, 2026 test, so a Codex task cost about a third as much. Those are means over 15 runs each on five real tasks in the click library, on each tool's default model at the time: GPT-6.1 Sol in Codex and Claude Opus 5.5 in Claude Code.

Most of the gap is output. A Claude Code run wrote 4,838 output tokens on average and a Codex run 1,807, and Claude Opus 5.5 lists at $20 per million output tokens against $10 for GPT-6.1 Sol (Anthropic, OpenAI). GPT-6.2 Sol, which OpenAI now recommends for everyday coding in Codex, lists at the same $2 input and $10 output per million tokens as GPT-6.1 Sol; the test didn't measure how many tokens it uses on these tasks.

What that means for a $20 plan: at those averages, $20 of API usage pays for about 235 Codex tasks or about 79 Claude Code tasks like these. If you run more than that in a month, the subscription costs less than paying per token, as long as its usage limits hold the work. On a plan you don't pay per task; each task uses part of the plan's limits, covered in the next section. Claude API vs subscription: which is cheaper? works through the break-even, and how to see which model handled each request, and what it cost shows how to get these numbers for your own tasks.

How do Codex and Claude Code usage limits compare?

Both have a five-hour limit and a weekly limit on most plans, but OpenAI publishes estimated message counts per model and Anthropic publishes only multiples of Pro's usage. As of November 23, 2026:

Limit, November 23, 2026CodexClaude Code
$20 plan, every five hoursPlus: an estimated 17 to 180 GPT-6.2 Sol messages, 6 to 50 on GPT-6.2 Astra, 15 to 160 on GPT-6.1 Sol or 350 to 3,000 on GPT-6 Luna (OpenAI)Pro: a limit that starts with your first message and resets in full five hours later, with no published count (Anthropic)
$20 plan, weeklyWeekly limits may also applyA weekly limit on every paid plan
$100 planPro: no five-hour limit for nowMax: 5x Pro's usage every five hours and every week
$200 planPro: no five-hour limit for nowUltra: 10x Pro's weekly usage, with no five-hour limit once the account is verified (Anthropic)
Shared withChatGPT Work; local messages and cloud chats share one allowanceChats in Claude; claude.ai, Claude Code and Claude Desktop share one limit
Past the limitBuy ChatGPT credits, or sign in with an API key (OpenAI)Usage credits at API rates, or a Console account (Anthropic)

In both, the model you pick decides most of how far a plan goes: OpenAI's estimates for Plus run from 6 to 50 messages on GPT-6.2 Astra to 350 to 3,000 on GPT-6 Luna. Auto uses that. It sends hard work to the strongest model your plans cover and quick work to the model that costs least, often a low-cost open model, so quick tasks don't use up the plan; when one account reaches its limit, it moves on to the account with the most room left before it spends any credit. Codex usage limits and Claude Code usage limits go through each plan in detail.

Which models do Codex and Claude Code use?

Claude Code starts on Claude Opus 5.5 on Pro, Max, Ultra, Team, Enterprise and the API, and Claude Fable 5.2, the most capable model in Claude Code, is never the default: you pick it with /model fable (Anthropic). Codex uses a recommended model when config.toml names none, and as of November 23, 2026, OpenAI recommends GPT-6.2 Sol for everyday coding and GPT-6.2 Astra for demanding work, such as tracing a bug across services (OpenAI). In both, /model switches models during a session and --model sets one at launch.

Model, November 23, 2026Maker's descriptionAPI price per million tokens, input / output
GPT-6.2 AstraDemanding work across code, apps or research$8 / $40
GPT-6.2 SolEveryday coding, writing and work across several sources$2 / $10
GPT-6.1 SolPerformance close to GPT-6 Astra at a lower cost$2 / $10
GPT-6.1 TerraFast and efficient, for writing, visual understanding and computer use$1 / $5
GPT-6 LunaFocused, repeatable tasks$0.10 / $0.50
Claude Fable 5.2Most capable, for tasks larger than a single sitting$8 / $40
Claude Opus 5.5Claude Code's default, for complex reasoning$4 / $20
Claude Sonnet 5.5Daily coding$2 / $10
Claude Haiku 5.5Simple tasks$0.10 / $0.50 for prompts up to 100,000 tokens

Natively, each app runs its own maker's models on your plan. Auto adds models from every leading provider to every coding agent you use, these two included, listed with their prices at autorouter.com/models. How to change the model in Claude Code explains its aliases, flags and settings, and which model to use for which task compares the lineups.

Which did better in Auto's hands-on test?

Claude Code passed all 12 bug-fix runs and Codex passed 11, and both passed every test-writing run. The tasks were four real bugs that click's maintainers fixed between May and October 2026, plus one request to write tests for a module, and the maintainers' own tests decided pass or fail. The one miss was Codex's first run of the help bug, where its change made --help stop working on any command with a parameter named help, the case the bug report was about. Codex was faster on four of the five tasks and cheaper on all five.

Task (3 runs each, November 9, 2026)Passed: Codex / Claude CodeMedian time: Codex / Claude CodeMedian cost: Codex / Claude Code
A parameter named help breaks --help (#2819)2 / 385 s / 69 s$0.118 / $0.228
version_option ignores package_name (#3125)3 / 356 s / 71 s$0.078 / $0.271
Env var hint for a list or empty envvar (#3884)3 / 349 s / 51 s$0.070 / $0.217
Empty usage line with no arguments (#3360)3 / 345 s / 66 s$0.073 / $0.186
Write tests for _textwrap.py (90% coverage)3 / 373 s / 100 s$0.091 / $0.367
All 15 runs14 / 1557 s / 69 s$0.085 / $0.252 (mean)

How was the test run?

The full method, written before the counted runs, and every run as one line of data are published under CC BY 4.0: method.md and results.jsonl.

What can't this test show?

How do Codex CLI and Claude Code differ in features and setup?

Codex CLI and Claude Code have the same core features (MCP, subagents, skills, code review and an SDK) and both run in a terminal, an IDE, a desktop app and the cloud, with one configuration across their local surfaces. The Codex CLI's source is open, and Claude Code reads AGENTS.md when a repository has no CLAUDE.md, so one instruction file can serve both.

As of November 16, 2026CodexClaude Code
TerminalCodex CLI on macOS, Linux and Windows; open sourceClaude Code CLI on macOS 13+, Windows 10 1809+, Ubuntu 20.04+, Debian 10+ and Alpine 3.19+
Desktop appChatGPT desktop app for macOS, Windows and LinuxCode tab of the Claude desktop app for macOS, Windows, and Linux on Ubuntu and Debian
IDEExtension for VS Code, Cursor and WindsurfExtension for VS Code and a plugin for JetBrains IDEs
CloudCodex Cloud, which keeps working while your computer sleepsClaude Code on the web, which keeps going after you disconnect
Project instructionsAGENTS.mdCLAUDE.md, or AGENTS.md from v2.1.277
Shared featuresMCP, subagents, skills, code review, an SDKMCP, subagents, skills, code review, the Agent SDK

To install either CLI on a Mac or Linux machine, run its installer, then start it in a project folder and sign in:

# Codex: sign in with ChatGPT on first run
curl -fsSL https://chatgpt.com/codex/install.sh | sh
codex

# Claude Code: sign in with your Claude account on first run
curl -fsSL https://claude.ai/install.sh | bash
claude

Both also install with Homebrew (brew install --cask codex, brew install --cask claude-code), and Codex with npm (npm install -g @openai/codex). On native Windows, Claude Code runs without its command sandbox, which needs WSL 2 (Anthropic). How to install Claude Code on a Mac walks through every step.

Where does Cursor fit next to Codex and Claude Code?

Cursor is an AI code editor with its own agent, and Codex and Claude Code both run inside it: the Codex IDE extension supports Cursor, and Claude Code runs in Cursor's terminal or through its extension. As of November 23, 2026, Cursor sells Free, Plus at $8, Premium at $30, Super at $100 and Ultra at $200 a month; its included usage covers Cursor's own models, and Claude, GPT and Gemini models bill from prepaid credit at API list price on Premium and above (Cursor).

So if you want Claude or GPT models on a subscription, Codex or Claude Code inside Cursor runs on your ChatGPT or Claude plan, while Cursor's own agent bills those models per token. Auto works with Cursor too. Cursor vs Claude Code compares the editor and the agent in full.

Should you pick Codex or Claude Code?

Pick by the plan you already pay for and the models you want, because the two overlap on most features and both fixed real bugs in Auto's test. Or use both with Auto, which uses the AI subscriptions you already pay for in every coding agent you use.

Pick Codex if:

Pick Claude Code if:

Use both with Auto if:

Auto Free connects two subscriptions for $0 a month.

Can you use Codex and Claude Code together?

Yes. With Auto, either app can run on either plan; without it, you can still run both in one repository with one set of instructions and send each task to the app whose plan has room.

Auto, the Mac app for all your coding agents, connects the AI subscriptions you already pay for, so either app can run on any plan you connect. When one account reaches its limit, Auto moves on to the account with the most room left before it spends any credit. It adds models from every leading provider to every coding agent you use (Claude Code, Codex, Cursor, etc.), plus one more choice, Auto, which picks a model for each task by how hard it is; you pick it from the model menu in Codex or with /model in Claude Code. Auto Free connects two subscriptions; Pro connects any number, includes usage each month and adds every other model at the provider's price plus 10%. Auto runs on macOS 14 or later and is in beta, and requests pass through its servers on their way to each provider (privacy). How AutoRouter picks a model covers the full order.

Without Auto, give both apps one set of instructions. Codex reads AGENTS.md before doing any work, and Claude Code v2.1.277 or later reads AGENTS.md when the repository has no CLAUDE.md. If you keep a CLAUDE.md, import the shared file at its top and add anything only Claude Code needs below it:

@AGENTS.md

## Claude Code only

Run `pnpm test` before you finish a task.

If you already run Claude models in Codex through OpenRouter, paste your settings to see what carries over to Auto (how the two compare); if you run GPT models in Claude Code through a LiteLLM proxy just for yourself, one prompt has your coding agent carry its model list over and stop it. How to use Claude in Codex and GPT in Claude Code covers every setup and what each bills.

Questions

Is Codex better than Claude Code?

Neither is better at everything, and Auto's test is too small to crown one. On five click tasks, Claude Code passed 15 of 15 runs and Codex 14 of 15, while Codex was faster and cost about a third as much at API prices. Which suits you depends on the plan you pay for, the models you prefer and how much a more thorough run is worth to you.

Is Codex cheaper than Claude Code?

On a $20 plan both cost the same, and Claude Pro held more usage at API prices in Wokey's November 16 to 23, 2026 measurements, about $707 a month against about $191 for ChatGPT Plus in Codex. Per task at API list prices on November 9, 2026, Codex on GPT-6.1 Sol cost $0.085 on average and Claude Code on Claude Opus 5.5 $0.252, mostly because Claude Code wrote more output at a higher price per token. Above $20, Codex's Pro tiers start at $100 and Claude's Max at $100.

Are ChatGPT Codex, OpenAI Codex and Codex CLI the same thing?

Yes, they all name OpenAI's coding agent, which comes with ChatGPT plans. The Codex CLI is its terminal version, beside the ChatGPT desktop app, the IDE extension, Codex Cloud and iOS, and all of them draw on the same plan limits (OpenAI, OpenAI). Comparing "Codex CLI vs Claude Code" is comparing two terminal agents with the same core features.

Can you use Codex or Claude Code without a subscription?

Yes, both accept pay-as-you-go billing. Codex with an API key charges usage at API rates and leaves out cloud features such as GitHub code review, and Claude Code with an Anthropic Console account bills at standard API rates; Claude Code isn't on Claude's Free plan. Auto Pro also works with no subscription at all and gives every model, with usage included each month.

Can you use a Claude plan in Codex?

With Auto, yes. Auto connects the AI subscriptions you already pay for, so Codex can run on your Claude plan and Claude Code on your ChatGPT plan, and when one account reaches its limit, Auto moves on to the account with the most room left. It runs on macOS 14 or later and works with the Codex app and CLI, the Claude Code CLI, Cursor, Claude Desktop, T3, OpenCode, Pi and Terminal. OpenCode vs Claude Code covers the open-source agent.

Sources