Claude Code vs Codex vs Cursor: Usage Limits, Compaction & Handoffs
Short answer: Pick Claude Code (Pro $20/mo, Max $100/mo, Ultra $200/mo with no 5-hour limit for verified accounts) for deep terminal refactors with Claude Opus 5.5 (58 on Artificial Analysis Intelligence Index v5), where v2.1.311 auto-compacts before the 1M-context wall β but always compact before a 1-hour break so an expired prompt cache does not burn 100% of your 5-hour quota on resume. Pick OpenAI Codex (included in ChatGPT Plus $20/mo for ~15β160 GPT-6.1 Sol local messages per 5 hours, or Pro $100β$500/mo with no 5-hour cap) when you want local CLI + cloud PR delegation and GPT-6.1 Terra (51 on Index v5) for computer-use tasks. Pick Cursor (Free, Plus $8/mo for Grok models, Premium $30/mo on a weekly pool) for interactive diff review and routing boilerplate edits to cheap models like DeepSeek V4.1 Flash (~1/4 the cost of GPT-6.1 Terra). When any agent nears its cap, commit HANDOFF.md + AGENTS.md (/en/recipes/usage-limit-handoff-claude-code-to-codex/) to switch agents in 2 minutes, test your stack in our free calculator (/en/calculator/), or grab the $19 Stretch Your AI Plan / $39 All-3 Bundle (/en/packs/).
Claude Code vs Codex vs Cursor under usage limits: 5-hour vs weekly caps, cold-cache compaction fixes, Terra vs Opus 5.5 cost, and AGENTS.md handoffs.
What changed Β· 2026-11-03 Plan changes 29 Oct to 3 Nov: Claude Max and Ultra, more Codex on Pro, one ChatGPT and Codex allowance from December
- Vendor page Claude: Max 5x is now Max ($100/mo, 5x Pro every 5 hours and every week) and Max 20x is now Ultra ($200/mo, 10x Pro weekly, no 5-hour limit for verified accounts).
- Vendor page OpenAI, 29 Oct: Pro 100 and Pro 500 now include twice their previous Work and Codex allowance; the Pro 200 cut is cancelled and lower Pro 200 allowances doubled to match. Plus is unchanged.
- Vendor page OpenAI, from December: Plus, Pro and Business share one token-based allowance across ChatGPT and Codex. Instant chat doesn't draw from it; see the combined total in Settings, Usage.
Vendor page Β· checked 2026-11-09 How to read Claude's 5x and 20x labels
- Anthropic's pricing page now lists four plans: Free, Pro ($20), Max ($100) and Ultra ($200). It no longer shows a plan called 20x.
- There are two meters: a 5-hour session limit and a weekly limit. Max gives 5x Pro's usage on each one.
- Ultra gives 10x Pro's usage each week, with no 5-hour limit for verified accounts.
- Max and Ultra also have a separate weekly limit for Fable. Your weekly reset is a fixed time set for your account, shown in Settings > Usage.
- How fast you hit a limit depends on the model, chat length and file size, and Anthropic says other limits may apply. Checked 9 Nov 2026; plans can change.
Sources: claude.com pricing Claude Help: What is the Max plan? Claude Help: Claude Code with your plan
Verdict
Pick Claude Code ifβ¦
you want the highest-scoring reasoning model in your terminal (Claude Opus 5.5 at 58 on Artificial Analysis v5, with Sonnet for routine steps) and use v2.1.311 auto-compaction plus warm-cache /compact before 1-hour breaks.
Pick OpenAI Codex ifβ¦
you already pay for ChatGPT Plus ($20/mo) or Pro ($100β$500/mo, no 5-hour limit) and want to hand off terminal or cloud GitHub PR tasks on GPT-6.1 Sol (55 on v5) and GPT-6.1 Terra (51 on v5) when Claude Code hits a 5-hour window.
Pick Cursor ifβ¦
you want an interactive AI IDE with a weekly usage pool (Plus $8/mo, Premium $30/mo), the Cursor Agent SDK for CI workflows, and fast diff review alongside cheap API models.
Side by side
Of 6 rows we can compare by the numbers:
- Claude Code leads 1 of 6
- OpenAI Codex leads 1 of 6
- Cursor leads 0 of 6
- 4 tied
| Criterion | Claude Code | OpenAI Codex | Cursor |
|---|---|---|---|
| What it is | Anthropic's agentic coding tool for the terminal and IDE. | OpenAI's coding agent across ChatGPT, IDE, CLI and cloud; included in ChatGPT plans. | AI code editor with agents. |
| Free tier | No | Yes | Yes |
| Paid from | $20/mo | $8/mo | $8/mo |
| Plans (USD per month) | Pro: $20/mo ($17/mo billed annually ($200 up front)) Max: $100/mo (5x Pro usage every 5 hours and every week; monthly billing only) Ultra: $200/mo (10x Pro weekly usage, no 5-hour limit for verified accounts; monthly billing only) Team Standard: $25/mo (per seat; $20/mo billed annually; 2 to 150 seats) Team Premium: $125/mo (per seat; $100/mo billed annually; 5x Standard usage) Enterprise: contact sales ($20/seat/mo billed annually plus usage at API rates; 20-seat minimum; via sales) | Free: free (limited Codex in the desktop app (GPT-6 Luna), subject to rollout; no Codex Cloud) Go: $8/mo (limited Codex in the desktop app (GPT-6 Luna), monthly allowance (size not published by the vendor); no Codex Cloud) Plus: $20/mo (Codex on web, CLI, IDE extension and iOS; 5-hour and weekly allowances (weekly size not published by the vendor)) Pro: $100/mo ($100, $200 or $500/mo tiers; no 5-hour limit, weekly allowance (size not published by the vendor); Ultrafast on $500; monthly billing) Business: $25/mo (per user; $20/mo billed annually; 2+ users) Enterprise / Edu: contact sales | Free: free (limited chat and agent requests) Plus: $8/mo (Grok models only; usage pool shared with Grok) Premium: $30/mo (4x Plus usage; other companiesβ models are paid from prepaid credit) Super: $100/mo (15x Plus usage) Ultra: $200/mo (50x Plus usage) Teams: $30/mo (from $30 per user) Enterprise: contact sales |
| Pricing note | Not on Free; included in Pro ($20/mo, or $17/mo billed annually), Max ($100/mo), Ultra ($200/mo), Team seats ($25 standard or $125 premium per seat/mo) and Enterprise. Shares usage limits with Claude chat. | No separate Codex subscription: it is included in ChatGPT plans and shares their usage. Free $0 and Go $8/mo (limited: desktop app, subject to rollout, no Codex Cloud), Plus $20/mo, Pro $100, $200 or $500/mo, Business $25/user/mo ($20 billed annually, 2+ users); Enterprise/Edu via sales. Signing in with an API key bills at API rates, without cloud features. | Free; Plus $8/mo (Grok models only), Premium $30/mo, Super $100/mo, Ultra $200/mo; Teams from $30/user/mo; Enterprise custom. Sold as The X Subscription; third-party models cost extra at API list price. |
| Pricing checked We read every price ourselves on the vendor's official pricing page, in US dollars, and record the date. Prices can change after that date. | 2026-11-03 | 2026-11-03 | 2026-10-18 |
| Usage limits (vendor page) | Claude Code draws from the same pool as Claude chat: Pro ($20/mo) and Max ($100/mo, 5x Pro) each have a 5-hour session cap plus a weekly cap, while Ultra ($200/mo, 10x Pro weekly) has no 5-hour limit for verified accounts (subagent orchestrators opening full files can burn a 5-hour window in ~30 min, and compacting after the ~1-hour prompt-cache expiry re-reads context at full weight). v2.1.311 (Oct 2026) adds automatic context compaction before the 1M-context wall; Spotify engineering reported cutting Claude Code token burn ~90% by routing routine file reads to cheaper models. A user report on X (29 Oct 2026) says v2.1.299+ auto-compacts idle 200K+ token sessions after ~54 minutes, before the prompt cache expires, so a resumed session does not re-bill the whole context. [support.claude.com, 2026-11-03] | Codex shares one allowance with ChatGPT Work: on Plus and Standard Business OpenAI lists ~15β160 GPT-6.1 Sol, 5β45 GPT-6 Astra or 350β3,000 GPT-6 Luna local messages per 5 hours plus a weekly cap; Pro 100/200/500 have no 5-hour cap, though heavy background Codex cloud tasks can consume up to 49% of a weekly pool in 1 hour and unattended credit top-ups have reached $6,671 over two weeks. Never run Codex inside ~/Downloads where untrusted parent AGENTS.md files can inject commands. On 29 Oct 2026 OpenAI doubled the Work and Codex allowance on Pro 100 and Pro 500 and cancelled the Pro 200 cut (lower Pro 200 allowances doubled to match); Plus is unchanged. From December 2026, Plus, Pro and Business draw ChatGPT and Codex from one token-based allowance (Instant chat doesn't count). [developers.openai.com, 2026-11-03] | The X Subscription (Free, Plus, Premium, Super, Ultra, and Teams seats): every paid plan includes one weekly pool of usage for Cursor models (Grok 4.7, Grok 4.6, Grok 4.5, and Composer 2.5), shared across Cursor, Grok Bot, and the Grok apps. Third-party models aren't included. On Premium and above they're billed at API list price from your prepaid credit. Unused included usage does not roll over on either kind of plan. [cursor.com, 2026-11-03] |
| Same $20, how long it lasts (user reports, not our test) | Pro ($20): one user says it lasts "hours" on the work that emptied Codex Plus in under 20 minutes. In a 4-bug Γ 10-run test, Claude Code used ~78k tokens per fix vs Codex ~65k; new tokens were nearly tied, the gap was re-reads. | Plus ($20): one user reports the limit gone in under 20 minutes on GPT-6 Astra Medium, twice; another reports one Vercel-to-VPS migration (high effort) used 70% of a weekly limit. | No $20 tier on The X Subscription (Plus $8, Premium $30). One user reports 35% of weekly usage gone in 4 hours on Auto. |
| API credits included (OpenAI, checked 8 Nov 2026) | β | Same OpenAI API credits as the ChatGPT plan (Pro or Business). They're for API use, not extra Codex usage in ChatGPT. | β |
| Payment methods | unverified | unverified | unverified |
| Output quality (provisional) The average of our provisional editorial scores (out of 10) across the rankings each tool appears in. Not a hands-on test yet. | 9/10 Best in this row | 8/10 | 8.7/10 |
| Ease of use (provisional) | 6/10 | 7/10 | 7/10 |
| Value for price (provisional) | 6/10 | 8/10 Best in this row | 7.7/10 |
| Reliability & trust (provisional) | 8/10 | 8/10 | 7/10 |
| Avg. global score (provisional) | 72/100 | 76/100 | 76/100 |
| Appears in rankings | 3 | 2 | 3 |
Sources for the user-report rows: @Im_IrushiK on X @dng_notes on X r/ChatGPTCoding: 70% of a weekly limit @AGTPinsights on X OpenAI Docs: API credits for ChatGPT subscribers
Scores average our provisional editorial estimates across the rankings each tool appears in. Payment fields stay "unverified" until tested. Methodology
Hitting $20/mo message caps mid-week?
Model your quota waste in 30 seconds or copy our 2-minute agent handoff spec.
Rankings that include all of them
Related pages
Best AI coding tools to fix bugs and get unstuck
Best AI coding agent for a real task in your repo
AI usage limits: ChatGPT, Claude, Codex & more
Cursor vs Claude Code
Claude Code vs Codex vs Jules: which coding agent?
Codex vs Cursor: which AI coding tool to pick?
Claude Code vs OpenAI Codex vs Cursor: Usage-Limit Handoff Tools (baton, CarryOn, Friday, ccx & AGENTS.md)
FAQ
Why does compacting a Claude Code session after a break eat 100% of my 5-hour Pro limit?
Because Anthropic prompt cache expires after roughly 1 hour of inactivity. If you resume a 600k-token session the next morning and run /compact, Claude Code must re-read the entire uncached history at full token weight and then pay output tokens to summarize it. Fix: run /compact before you step away while the cache is warm, cap context with CLAUDE_CODE_AUTO_COMPACT_WINDOW=200000, or commit HANDOFF.md and start a fresh session.
How do GPT-6.1 Terra, DeepSeek V4.1 Flash and Claude Opus 5.5 compare on coding cost vs intelligence?
On the October 2026 Artificial Analysis Intelligence Index v5 (60% private test sets), Claude Opus 5.5 leads at 58, followed by GPT-6 Astra (57), GPT-6.1 Sol (55), GPT-6.1 Terra max (51), Kimi K3.1 Pro (46) and DeepSeek V4.1 Flash (32). On the Vals Index coding and agentic benchmarks, DeepSeek V4.1 Flash ties GPT-6.1 Terra at roughly 1/4 the API token cost, while Spotify engineers reported cutting Claude Code token burn by ~90% by routing routine file edits and test runs to cheap models and saving Opus for architecture.
How do I switch from Claude Code to Codex or Cursor mid-task without re-explaining the repo?
Follow our free 15-minute recipe at /en/recipes/usage-limit-handoff-claude-code-to-codex/: keep one shared AGENTS.md at the repo root (with a 1-line CLAUDE.md pointing to it), commit your work on a feature branch, and have the outgoing agent write a 7-section HANDOFF.md before the limit hits. Then open Codex CLI or Cursor and run: "Read AGENTS.md and HANDOFF.md, run the test command, confirm the next step in one sentence, then continue."
Should I pay $200/month for Max/Ultra or combine two $20 plans with a handoff workflow?
A $200/month plan can still burn out in 3 days if background trackers or uncompacted 1M-context loops run unattended. For most solo developers and small teams, pairing Claude Pro ($20/mo) + ChatGPT Plus ($20/mo, includes Codex) or Cursor Plus ($8/mo) with a clean AGENTS.md + HANDOFF.md workflow costs $28β$40/month and gives two independent quota pools. Use our free calculator at /en/calculator/ or the $19 Stretch Your AI Plan pack (/en/packs/) to model your exact weekly token burn.
Should I pick Claude Code or OpenAI Codex or Cursor?
Claude Code: pick it if you want the highest-scoring reasoning model in your terminal (Claude Opus 5.5 at 58 on Artificial Analysis v5, with Sonnet for routine steps) and use v2.1.311 auto-compaction plus warm-cache /compact before 1-hour breaks. OpenAI Codex: pick it if you already pay for ChatGPT Plus ($20/mo) or Pro ($100β$500/mo, no 5-hour limit) and want to hand off terminal or cloud GitHub PR tasks on GPT-6.1 Sol (55 on v5) and GPT-6.1 Terra (51 on v5) when Claude Code hits a 5-hour window. Cursor: pick it if you want an interactive AI IDE with a weekly usage pool (Plus $8/mo, Premium $30/mo), the Cursor Agent SDK for CI workflows, and fast diff review alongside cheap API models.