Claude Code vs OpenAI Codex (Oct 2026)
TL;DR · 🥊 Head-to-head
Tie on price, pick on models
Same $20 / $100 ladder. Claude Code for Claude models. Codex for a free start and no 5-hour cap at $100+.
Read the full short answer
Short answer: Anthropic and OpenAI now charge the same price ladder for their coding agents: $20 to start, $100 for heavy use, and $20 or $100 per team seat. So pick on models and limits, not price. Choose Claude Code if Claude Opus and Sonnet are the models you trust, or if you'd use Max's included API credits. Choose Codex if you want to start free or at $8, want no five-hour cap at $100+, or want automatic GitHub code review and cloud tasks built into your $20 plan.
3 updates since this was published
New Nov 13, 2026: Codex did not go unlimited. Nov 12 brought a banked reset you redeem yourself, and in December ChatGPT and Codex start sharing one allowance. OpenAI's Codex lead also put Pro at 10x, 20x and 50x Plus on Nov 8. Codex usage limits explained.
Update Nov 26, 2026: OpenAI now gave numbers. Compared to last week, GPT-6.2 Astra hits limits 40% faster and Sol 25% faster, and everyone on Go, Plus, Pro and Business gets one banked reset. The new math and how to win it back.
Nov 25, 2026: Codex users got an email that some GPT-6.2 Astra and Sol usage, including Ultrafast, had been undercounted. The meter is corrected, so Codex limits may hit sooner at the same price. Claude Code's own limits are a separate pool. The GPT-6.2 usage fix.
Prices verified on official pricing pages and help docs Oct 20, 2026. Reliability data from both official status pages, Sep 21 to Oct 20. Prices change often; confirm with the linked sources. Plan prices re-checked on the official pricing pages Nov 26, 2026.
Side by side
| Claude Code (Anthropic) | Codex (OpenAI) | |
|---|---|---|
| What it is | Agentic coding tool: terminal CLI, VS Code and JetBrains extensions, desktop app, and the web | Coding agent in the ChatGPT desktop app, on the web (Codex cloud), in the CLI, an IDE extension, and on iOS |
| Free tier | None: Claude Code isn't on Claude Free | Free ($0) and Go ($8/mo): limited Codex in the desktop app on GPT-6 Luna, subject to rollout |
| Entry paid | Claude Pro $20/mo, or $17/mo billed annually ($200 up front) | ChatGPT Plus $20/mo: all surfaces, cloud tasks, automatic code review, Slack integration |
| Heavy use | Max $100/mo: 5x Pro usage every five hours and every week, plus $100 a month in API credits. Ultra $200/mo: 10x Pro usage per week, no five-hour limit for verified accounts, plus $200 a month in API credits | Pro at $100, $200 or $500/mo. Pro plans currently have no five-hour limit (weekly limits still apply). Ultrafast mode on Pro $500 only. Plus $100, $200 or $500 a month in API credits; Pro $100 and $500 usage doubled Oct 29 (what changed) |
| Models in plan | Opus, Sonnet and Haiku on Pro and up. Fable via usage credits on Pro, up to 50% of weekly limits on Max and Ultra | GPT-6.1 Sol, GPT-6 Sol and GPT-6 Luna on Plus, with limited GPT-6 Astra; full Astra allowance on Pro $100 and $200 |
| Limits on the $20 plan | Rolling five-hour window plus weekly limits, shared with Claude chat | Rolling five-hour window plus weekly limits, shared with ChatGPT Work. OpenAI estimates 15 to 160 local GPT-6.1 Sol messages per five hours on Plus |
| When you run out | Wait, upgrade to Max, or turn on usage credits at API rates | Wait, upgrade to Pro, or buy ChatGPT credits; you can also run local chats on an API key |
| API-key mode | Pay-as-you-go through an Anthropic Console account | CLI, SDK and IDE extension at API prices; no cloud features (GitHub review, Slack) |
| Teams | Team: Standard $20/seat annual ($25 monthly), Premium $100 ($125 monthly) with 5x usage, 2 to 150 people. Enterprise $20/seat + API usage | Business: Standard $20/seat annual ($25 monthly), Premium $100 ($125 monthly) with 5x usage and no five-hour limit, 2 to 200 people. Codex-only seats are legacy (workspaces created before June 24, 2026) |
| Project instructions | CLAUDE.md, or an existing AGENTS.md | AGENTS.md (nested files supported) |
Sources: claude.com/pricing · Claude Code docs · Codex pricing · chatgpt.com/pricing · ChatGPT Pro tiers · ChatGPT Business overview. Checked Oct 20, 2026. Anthropic renamed Max 5x to Max ($100) and Max 20x to Ultra ($200) on Oct 30, 2026; Claude plans re-checked Nov 2, 2026. OpenAI says Pro $200 includes more usage than Pro $100 but doesn't publish exact multiples on its pricing page, so we don't either. ChatGPT Pro changes (canceled Pro $200 cut, doubled Pro $100 and $500, API credits) checked Oct 30, 2026 on the Pro tiers page and API credits page.
What a team of 5 pays
| Claude Team | ChatGPT Business | |
|---|---|---|
| 5 standard seats, monthly billing | $125/mo | $125/mo |
| 5 standard seats, annual billing | $100/mo ($1,200/yr) | $100/mo ($1,200/yr) |
| 4 standard + 1 premium (annual) | $180/mo | $180/mo |
Same money either way. The real cost difference shows up in overage: Claude bills extra usage at API rates, and ChatGPT Business bills it as workspace credits. Codex-only seats with no fixed fee are now legacy (only workspaces that added them before June 24, 2026 keep them), so new teams pay per Standard or Premium seat.
Reliability: what the official status pages show
Update Nov 15, 2026: The table below still covers Sep 21 to Oct 20 only. On Nov 13 Anthropic logged two more Claude Code incidents: a login failure from 4:58 to 6:58 AM ET, and elevated errors on claude.ai, the Claude API and Claude Code from 8:09 to 10:38 AM ET. Root cause unpublished. Practical backup steps: Claude Code is down? Your backup plan.
We counted every incident that OpenAI and Anthropic posted against their coding agents on their own status pages from Sep 21 to Oct 20, 2026 (30 days, UTC). For Codex that's the Codex Web, Codex API, CLI, VS Code extension and "Codex in ChatGPT Desktop" components on status.openai.com. For Claude Code it's incidents tagged "Claude Code" on status.claude.com.
| Last 30 days | Claude Code | Codex |
|---|---|---|
| Incidents | 4 | 7 |
| Hours with an open incident (overlaps counted once) | 4.3 hours | 49.4 hours |
| Worst label | "Major" (elevated errors), all 4 | One 55-minute full outage (Sep 25); the rest degraded performance or partial outage |
| Biggest single incident | 2 h 5 min (Sep 29) | 25 h 14 min of degraded Work Mode in the ChatGPT desktop app (Oct 5 to 6) |
Fact check on a viral claim: a post on X said Codex had 42.7 hours of open incidents over two weeks versus 34 minutes for Claude Code. The status pages back that up for Oct 5 to Oct 19: 42.7 hours across 4 Codex incidents versus 34 minutes across 2 Claude Code incidents. But the window matters a lot. Start two days later (Oct 7 to Oct 20) and it's 17.5 hours versus zero; start one day later (Oct 6 to Oct 20) and it's 25.9 hours versus 18 minutes.
How to read this: open-incident hours are not downtime. Most Codex hours were "degraded performance", and more than half came from one incident in the ChatGPT desktop app, so the CLI, IDE extension, web and API components together logged 14.6 hours. Claude Code's incidents were shorter but every one was labeled major. Each company decides what to post and how to label it, and a status page can't show the errors you personally hit. Over this month Claude Code had fewer and shorter incidents; we'll refresh these numbers as new incidents come in.
All 11 incidents, with links (start date in UTC)
| Date | Tool | Incident | Open for | Status page label |
|---|---|---|---|---|
| Oct 14 | Codex | Degraded performance in Codex and ChatGPT Work | 2 h 47 min | degraded performance: Codex in ChatGPT Desktop |
| Oct 13 | Codex | Degraded performance in GPT-6.1 Sol Codex and Work mode | 8 h 18 min | degraded performance: CLI, Codex API, Codex Web, VS Code extension |
| Oct 7 | Codex | Unable to create new ChatGPT Work threads in latest version of desktop app | 6 h 21 min | partial outage: Codex in ChatGPT Desktop |
| Oct 6 | Claude Code | Elevated errors for Claude Opus 5.5 | 18 min | major |
| Oct 5 | Claude Code | Elevated errors for Claude Mythos 5.1 and Claude Fable 5.1 | 15 min | major |
| Oct 5 | Codex | Elevated Work Mode errors | 25 h 14 min | degraded performance: Codex in ChatGPT Desktop |
| Sep 29 | Codex | Elevated errors across ChatGPT, Codex, and the API including the Agents API | 5 h 21 min | degraded performance: CLI, Codex API, Codex Web, Codex in ChatGPT Desktop, VS Code extension |
| Sep 29 | Claude Code | Elevated errors on claude.ai, Claude Code, Claude Cowork and the Claude API | 2 h 5 min | major |
| Sep 25 | Codex | Issues with Codex | 55 min | full outage: CLI, Codex API, Codex Web, VS Code extension |
| Sep 23 | Codex | Mobile users unable to see Work Mode and the Model Picker | 24 min | degraded performance: Codex in ChatGPT Desktop |
| Sep 22 | Claude Code | Elevated errors for multiple models | 1 h 37 min | major |
Method: Codex durations use OpenAI's per-component impact windows; Claude Code durations run from Anthropic's first post to "resolved", because Anthropic's public data doesn't give per-component times. We left out OpenAI incidents that didn't list a Codex component, such as "Elevated error rates in Codex Cloud" (Oct 5 to 6, no component listed, and inside the Work Mode window anyway) and two "Dot in Codex" issues filed under ChatGPT. Data pulled Oct 20, 2026.
Where Claude Code wins
- Claude models at a flat price. Opus, Sonnet and Haiku are all in plan usage from $20. If Claude is your preferred coding model, this is the cheapest way to get it.
- Max includes API credits. Max adds $100 a month in Claude Platform credits (Ultra $200), useful if you also build on the API.
- Annual discount for individuals. Pro drops to $17/mo billed annually; ChatGPT Plus is monthly only.
- Lives in more editors. Official VS Code and JetBrains extensions, and the VS Code extension also installs in Cursor.
Where Codex wins
- You can start free. ChatGPT Free and Go ($8) include limited Codex in the desktop app; Claude Code starts at $20.
- No five-hour cap at $100. ChatGPT Pro plans currently have no five-hour Codex limit, only weekly limits. Claude Max ($100) still uses five-hour sessions; on Claude you need Ultra ($200, verified accounts) to drop it.
- Cloud features in the $20 plan. Plus includes Codex cloud tasks on the web and iOS, automatic GitHub code review, and the Slack integration.
- A top tier for speed. Pro $500 adds Ultrafast mode for GPT-6 Astra and GPT-6.1 Sol.
- Watch out: GPT-5.5 was retired from Codex with ChatGPT sign-in on Oct 14, 2026. If your workflow was tuned to it, test on GPT-6.1 Sol before you commit.
Verdict: who should pick which
Pick Claude Code if…
- Claude Opus or Sonnet produces the code you like best, and you want it at a flat monthly price.
- You already pay for Claude Pro or Max: Claude Code is included.
- You'd actually use Max's monthly API credits, or want the $17/mo annual price.
Pick Codex if…
- You want to try a coding agent for free or $8 before paying $20.
- You hit five-hour limits a lot and are ready for $100+: Pro removes that cap.
- You want automatic PR reviews, cloud tasks from your phone, and Slack hand-offs included in your plan.
- Your team has one or two heavy coders: ChatGPT Business lets you mix Premium seats (no five-hour limit) with Standard seats.
Honest caveat: "$20" doesn't buy the same amount of work on both. Neither vendor publishes a fixed message count, and usage depends on model, context size and task. Both plans can be cancelled monthly, so the best test is one real week of your own work on each. Since both read AGENTS.md, switching costs you almost nothing. Weighing Gemini too? Gemini CLI no longer works with Google AI plans for individuals; see Gemini CLI vs Claude Code. Comparing an AI IDE instead? See Claude Code vs Cursor, or let the quiz decide.
Ready to try one?
Every tool here can be cancelled monthly, so the fastest way to decide is a real task on each.
Claude Code
OpenAI Codex
FAQ
Is Claude Code or Codex cheaper?
At the paid tiers the list prices match: Claude Pro and ChatGPT Plus are both $20/month, Claude Max and ChatGPT Pro both start at $100/month, and team seats on Claude Team and ChatGPT Business are both $20/seat/month billed annually ($25 monthly), or $100 ($125 monthly) for premium seats. Codex is cheaper to start, because ChatGPT Free and Go ($8/month) include limited Codex access in the desktop app, while Claude Code isn't on Claude Free. Claude Pro is also $17/month if billed annually.
Does Codex have a free plan?
Yes, a limited one. OpenAI's Codex pricing page lists Free ($0) and Go ($8/month) with GPT-6 Luna at Standard speed in the desktop app, subject to rollout. The full set of surfaces (web, CLI, IDE extension, iOS) and cloud features like automatic code review start on Plus at $20/month. Claude Code has no free tier.
Which has better usage limits?
Neither publishes a fixed message count. On the $20 plans both use rolling five-hour windows plus weekly limits. The difference is at $100 and up: OpenAI says ChatGPT Pro plans currently have no five-hour limit for Codex (weekly limits still apply), while Claude Max ($100) gives 5x Pro usage per five-hour session and Claude Ultra ($200) gives 10x Pro usage per week with no five-hour limit for verified accounts. Max includes $100 a month in Claude Platform API credits and Ultra $200, and since Oct 28, 2026 ChatGPT Pro includes $100, $200 or $500 a month in OpenAI API credits. On Oct 29 OpenAI canceled a planned Pro $200 cut and doubled Work and Codex usage on Pro $100 and $500.
Can I use Codex or Claude Code with an API key instead of a subscription?
Yes, both. Codex with an API key works in the CLI, SDK and IDE extension at API prices, without cloud features like GitHub code review or Slack. Claude Code can switch to pay-as-you-go API credits through an Anthropic Console account.
Can Claude Code and Codex share project instructions?
Yes, through AGENTS.md. Codex uses AGENTS.md for custom instructions, including nested files in subfolders. Claude Code reads CLAUDE.md and can read an existing AGENTS.md in its place, so one file can serve both agents.
Which is more reliable, Claude Code or Codex?
Based on each company's own status page from Sep 21 to Oct 20, 2026, Claude Code had 4 incidents totaling 4.3 hours, all labeled major, while Codex had 7 incidents totaling 49.4 hours, mostly degraded performance, including one 25-hour Work Mode incident in the ChatGPT desktop app and one 55-minute full outage. Incident hours aren't the same as downtime, and results swing a lot with the time window you pick. See the incident table.
Which is better for teams?
Seat prices are identical: $20/seat billed annually or $25 monthly for standard seats, and $100 or $125 for premium seats with 5x usage. Claude Team covers 2 to 150 people; ChatGPT Business covers up to 200, and since Nov 2026 OpenAI's help pages say a new workspace can start with 1 seat (is that worth it?). Its old Codex-only seats with no fixed fee are now a legacy option, only for workspaces that added them before June 24, 2026; new teams choose Standard or Premium seats and can buy workspace credits for extra usage. Pick by which models your team prefers.
Ship your app: the rest of the stack
Picked your AI coding tool? These are the usual next costs. Free tiers first, and prices checked Oct 20, 2026 on each vendor's pricing page.
Code review
- CodeRabbitAI review on every pull request, in GitHub or GitLabFree for public repos; Essentials $24/user/mo billed annually ($30 monthly)
Hosting
- VercelNext.js and front-end appsHobby free (personal, non-commercial); Pro $20/mo per developer seat
- Netlify referralStatic sites and front ends, unlimited Pro membersFree; Personal $9/mo; Pro $20/mo with unlimited members
- RailwayBack ends, workers and databases with no server setupFree trial $5 credit; Hobby $5/mo incl. $5 usage; Pro $20/mo
- RenderHeroku-style web services, cron jobs and PostgresHobby $0 + compute; Pro $25/mo + compute
Database and auth
Domain name
- Cloudflare RegistrarDomains at cost with no markupWholesale price per TLD
- PorkbunCheap domains with free WHOIS privacyVaries by TLD
- NamecheapPopular registrar with hosting and email add-onsVaries by TLD
Editorial disclosure
Rankings are not for sale. Sponsored placements and affiliate links are always labeled, and they never change our recommendations, quiz results, prices, or comparison data. Links marked "referral" are affiliate links (Netlify): if you buy through them, we may earn a commission at no extra cost to you. Every other link is a plain link that pays us nothing, and pricing source links are never affiliate links. Editorial policy.