Claude Code vs Codex
Opens the official site at claude.com.
Opens the official site at chatgpt.com.
Pricing checked
Claude Code: review score 87.9 from 2,247 public reviews. Codex: review score 54.5 from 996 public reviews. ShipRanked has not published a hands-on test for either tool. The review score is aggregated from public ratings. It is not a hands-on result.
Start in an app builder, then move to a coding agent. If the code started in Lovable, Bolt, v0, or Replit, the guide covers getting that repository onto your computer.
Read next: how these plans meter usage. The guide lists the published price, the window or credit meter, and what the vendor does when you hit it.
Claude Code vs Codex vs Cursor is the three-way page for a $20 budget. Which $20 plan lasts longest compares ChatGPT Plus, Claude Pro, legacy Cursor Pro, and the free plans on published prices and limits.
Switching on the $20 plan is the section for the question people ask after a week on one of these bills: stay, switch, or move up.


The short version
- Claude Code comes with Claude Pro at $20 a month, or $17 a month billed annually. Codex comes with ChatGPT Plus at $20 a month. The two meters are separate.
- Claude Code: Pro is $20/mo, or $17/mo annual. It includes Claude Code on a shared five-hour and weekly limit. Anthropic publishes no message count. Free leaves Claude Code off.
- Codex: Plus is $20/mo and includes Codex. The pricing page estimates 35–285 local GPT-6.1 Terra messages per five hours, and says that range is not a fixed quota. Weekly limits may also apply.
- Switch the $20 plan when you want the other model. Move to Claude Max from $100, or Codex Pro from $100, when the five-hour window is what stops the work. Keep project rules in AGENTS.md. Claude Code loads that file when no CLAUDE.md is present.
Launch-ready audit
Built with Lovable, Bolt, v0, Replit, Base44, or Supabase? We check the app and send a written report plus a pull request within 72 hours of repo access, or your money back.
Get your app launch-readySwitching on the $20 plan
Claude Pro and ChatGPT Plus both sit at $20 a month. Pro includes Claude Code. Plus includes Codex. The meters are separate, so a wait on one does not refill the other. ShipRanked has not hands-on tested either tool. This section uses the prices and limits each vendor prints. It does not time a plan.
Checked .
Which to pick
| Situation | Pick | Why |
|---|---|---|
| You want Claude’s models in the repo | Claude Pro | Pro is the $20 plan that includes Claude Code. The five-hour window and the weekly cap are shared with Claude chat. Anthropic publishes no message count. |
| You want a published message range | ChatGPT Plus | Plus lists 35–285 local GPT-6.1 Terra messages per five hours, and 15–160 for GPT-6.1 Sol. OpenAI calls those figures estimates. |
| The five-hour window stops the work | Move up, on the plan you already use | Claude Max is $100 a month for 5x Pro every five hours and every week. Codex Pro, from $100 a month, currently has no five-hour limit. The other $20 plan has its own meter. It does not extend the one that just ran out. |
| You need both models in the same week | Keep both, at $40 | Pro and Plus are separate subscriptions. One plan’s reset does not add messages to the other. |
Price
Claude’s pricing page lists Pro at $17 a month when billed annually, $200 up front, or $20 when billed monthly. The comparison table includes Claude Code on Pro, Max, and Ultra, and leaves it off Free. Max is $100 a month. Ultra is $200 a month. The FAQ says Claude Code is included in all paid plans and shares that plan’s limits.
Codex’s pricing page lists Plus at $20 a month, described as a few focused coding sessions each week. Go is $8 a month. Pro plans are $100, $200, or $500 a month. Free is $0. There is no separate Codex subscription. Plus includes Codex on the web, in the CLI, in the IDE extension, and on iOS, plus cloud integrations such as automatic code review.
Documented usage limits
Claude’s pricing FAQ says activity across Claude on the web, desktop, and mobile, and Claude Code, draws from the same pool. Most accounts have a limit that resets on a rolling five-hour window, and paid plans add weekly limits. How much you can do depends on the length of the chat, the model, and the features, so there is no fixed message count. The comparison table lists Pro as 1x every five hours and every week. Ultra lists no five-hour limit for a verified account, and 10x Pro usage every week. The FAQ says Pro gives at least 5x more usage per five-hour session than Free.
Codex’s pricing page prints an estimate of local messages per five-hour period for Plus. GPT-6.1 Terra is 35–285. GPT-6.1 Sol is 15–160. GPT-6 Luna is 350–3,000. GPT-6 Astra is 5–45. The page says these are not fixed message limits, that similar tasks can use different amounts, and that cloud tasks may use more of the allowance than local messages. Local messages and cloud chats share the allowance. Weekly limits may also apply. Pro plans currently have no five-hour limit. The Plus card names GPT-6.1 Sol and GPT-6 Luna. The feature table also marks GPT-6.1 Terra as available on Plus. Fast mode uses included subscription limits at 2.5 times Standard for the same model. /status shows the remaining limit in the CLI.
Gotchas
- A switch is a new subscription, or a plan change inside one vendor. Claude’s FAQ says an upgrade takes effect right away and unused time is credited, and a downgrade takes effect at the end of the current billing period. Chats, projects, and files stay on the Claude account. That page does not move a ChatGPT thread.
- Claude Code on Pro spends the same pool as Claude chat. A long chat and a long coding session share the five-hour window.
- On Codex, if the limit hits during an active turn, the agent can finish that turn, subject to fair use. Plus can buy credits and keep the same plan. Any user can run extra local chats with an API key, charged at API rates. Image generation uses included limits about 3–5 times faster on average than similar turns without it, and it is off the Free plan.
- Codex’s pricing page says a smaller AGENTS.md makes the allowance last longer, and that every MCP server adds context. The message range is an estimate of local messages, so a cloud task can spend the same Plus bill faster.
When to switch
Switch from Codex on Plus to Claude Code on Pro when the work should run on Claude’s models and the five-hour window plus the weekly cap is enough. Switch from Claude Code on Pro to Codex on Plus when you want OpenAI’s agent and a published estimate of local messages. Terra is the wider coding estimate on that table. Sol and Astra are narrower.
Stay when the model you already have is the one you want and the window still covers the week. Move up when the five-hour window is the thing that stops the work. On Claude, that is Max at $100 or Ultra at $200, or usage credits at standard API rates on the same plan. On Codex, that is Pro from $100, which currently has no five-hour limit, or credits bought on Plus. The meter details for both, including what each vendor does at the limit, are on what happens when you hit an AI coding limit. The wider $20 comparison, including legacy Cursor Pro, is which $20 plan lasts longest.
Move the project context
Keep the project rules in AGENTS.md in the repository. Codex’s guide says it reads AGENTS.md before it works. In each directory from the project root down to the working directory, it checks AGENTS.override.md, then AGENTS.md, then any names in project_doc_fallback_filenames. Files closer to the working directory come later and override earlier guidance. Codex stops once the combined size reaches project_doc_max_bytes, 32 KiB by default.
Claude Code’s memory docs say it can read a repository’s AGENTS.md. By default it loads that file when the working directory and the directories above it have no CLAUDE.md, .claude/CLAUDE.md, or CLAUDE.local.md. If one of those is present, Claude reads the CLAUDE.md files only. Direct reading requires Claude Code v2.1.277 or later. A CLAUDE.local.md counts, so adding one in a repo that relies on AGENTS.md stops the default load.
Handing a Codex repo to Claude Code: leave AGENTS.md where it is. On v2.1.277 or later, with no CLAUDE.md above the working directory, Claude loads it. If the repo already has a CLAUDE.md, put @AGENTS.md at the top of that file, or set Project instructions to claude-md-and-agents-md so both load. Run /context and look under Memory files.
Handing a Claude Code repo to Codex: put the rules you still want in AGENTS.md. Codex’s config page does not list CLAUDE.md as a default filename. project_doc_fallback_filenames in config.toml are extra names to try when AGENTS.md is missing at a directory. Set that list if you want Codex to try CLAUDE.md.
Sources
- Claude pricing. Pro at $20 a month or $17 a month annual, Claude Code on paid plans and off Free, the shared five-hour and weekly limits, and what happens at a limit.
- Codex pricing. Plus at $20, the local-message estimates, what happens at a limit, and the note to keep AGENTS.md small.
- Custom instructions with AGENTS.md. How Codex discovers AGENTS.md, the 32 KiB combined cap, and fallback filenames.
- Codex advanced configuration.
project_doc_max_bytesandproject_doc_fallback_filenames. - Claude Code memory. When CLAUDE.md loads, when AGENTS.md loads instead, and how to import one from the other.
Side by side
| Fact | ||
|---|---|---|
| Price | Included with Claude Pro at $20/mo ($17/mo annual) | Go $8/mo, Plus $20/mo. Free is $0. Pro is $100, $200, or $500/mo. |
| Where it runs | Terminal and desktop | Terminal, IDE, desktop, and web |
| Model choice | On the Anthropic API, /model opus, sonnet, and haiku resolve to Opus 5.5, Sonnet 5.5, and Haiku 5.5. /model fable resolves to Fable 5.2, except in a Claude apps gateway session, where that alias resolves to Fable 5 until you select claude-fable-5-2. Fable 5.2 needs Claude Code v2.1.321 or later. No Fable model is the account default. This is not a bring-any-provider tool. | OpenAI models. The pricing page lists GPT-6.1 Sol, GPT-6 Astra, GPT-6 Sol, GPT-6 Luna, GPT-5.6 Sol, and GPT-5.6 Luna. GPT-5.5 retired from Codex with ChatGPT sign-in on October 14, 2026. API-key sessions were not part of that retirement. The default depends on the CLI or IDE version. Sign in with ChatGPT, or use an API key. Not a bring-any-provider tool. |
| Open source | Closed source | The CLI is Apache-2.0. Hosted Codex is included with ChatGPT plans. |
| Best fit | Hands-on scores are on the Claude Code page. Tests cover Add a feature and tests, and Fix a known bug. | Hands-on scores are on the Codex page. Tests cover Add a feature and tests, and Fix a known bug. |
Where these tools are tested
Add a feature plus tests to a real project
The task is a real project and a written feature spec. The tool can change the code and add tests. Hands-on checks, when a test is published, include checks the tool does not see.
Fix a known bug in a real project
The task plants a known bug in a real project. The tool has to find and fix it, without breaking the rest of the app or rewriting the feature.
Questions
- Should I switch from Codex to Claude Code on the same $20 plan?
- Switch when you want Claude’s models and you can work inside a five-hour window plus a weekly cap. Claude Pro is $20 a month, or $17 a month billed annually, and it includes Claude Code. Stay on ChatGPT Plus, also $20 a month, when you want Codex and a published estimate: 35–285 local GPT-6.1 Terra messages per five hours. OpenAI calls that range an estimate, and weekly limits may also apply. The meters are separate. ShipRanked has not hands-on tested either tool, so this page does not say which allowance lasts longer. Public review scores are cited separately and do not measure the allowance.
- What are the documented usage limits on the $20 plans?
- Claude’s pricing FAQ says Claude chat and Claude Code share one pool. Most accounts have a rolling five-hour window, and paid plans add a weekly limit. Anthropic publishes no message count. Codex’s pricing page estimates local messages per five hours on Plus: 35–285 for GPT-6.1 Terra, 15–160 for GPT-6.1 Sol, and 350–3,000 for GPT-6 Luna. Those figures are estimates. Cloud tasks can use more, local messages and cloud chats share the allowance, and weekly limits may also apply.
- What happens when the $20 allowance runs out?
- On Claude, the pricing FAQ says you can wait for the reset, move to a higher plan, or turn on usage credits at standard API rates. Max is $100 a month for 5x Pro usage every five hours and every week. Ultra is $200 a month for 10x weekly usage, with no five-hour limit for a verified account. On Codex Plus, the agent can finish an active turn when the limit hits, subject to fair use. Plus can buy credits and keep the same plan, or run extra local chats with an API key at API rates. Pro, from $100 a month, currently has no five-hour limit.
- How do I move project context between Codex and Claude Code?
- Keep the rules in AGENTS.md in the repository. Codex reads that file before it works. Claude Code’s memory docs say it loads AGENTS.md when the working directory and the directories above it have no CLAUDE.md, .claude/CLAUDE.md, or CLAUDE.local.md. That direct read requires Claude Code v2.1.277 or later. If a CLAUDE.md is already there, put @AGENTS.md at the top, or set Project instructions to claude-md-and-agents-md so both files load. Codex does not treat CLAUDE.md as a default name. project_doc_fallback_filenames in config.toml are extra names it tries when AGENTS.md is missing at a directory.
- Has ShipRanked tested Claude Code or Codex?
- Claude Code: review score 87.9 from 2,247 public reviews. Codex: review score 54.5 from 996 public reviews. ShipRanked has not published a hands-on test for either tool. The review score is aggregated from public ratings. It is not a hands-on result.
