Claude Code vs OpenAI Codex vs Cursor: Usage-Limit Handoff Tools (baton, CarryOn, Friday, ccx & AGENTS.md)
Short answer: When Claude Code hits its 5-hour or weekly quota mid-branch (or a subagent orchestrator like T3 Code drains a 5-hour Max window in ~30 minutes), do not re-explain your repository from scratch or burn $6,671 in two weeks of ad-hoc Codex credit top-ups. Keep a shared AGENTS.md (with a 1-line CLAUDE.md pointer) and commit a 7-section HANDOFF.md (/en/recipes/usage-limit-handoff-claude-code-to-codex/), or automate the switch with open-source handoff tools: baton / agent-baton (codeprakhar25/agent-baton & niketkal/baton), CarryOn (MarShaikh/carryon), Friday (splashxmoon/friday), Automater Lite (v0.1.26), or ccx. Model your exact stack cost in our free calculator (/en/calculator/) or grab the $19 Stretch Your AI Plan / $39 All-3 Playbooks Bundle (/en/packs/).
Compare Claude Code, OpenAI Codex & Cursor handoff workflows: AGENTS.md + HANDOFF.md vs baton, CarryOn, Friday, Automater Lite & ccx.
Verdict
Pick Claude Code if…
you want frontier terminal reasoning (Claude Opus 5.5 at 58 on Artificial Analysis v5, with v2.1.311 auto-compaction before the 1M-context wall) and pair it with warm-cache /compact before 1-hour breaks plus Spotify-style cheap-model routing (~90% token reduction).
Pick OpenAI Codex if…
you want to pick up a paused Claude Code branch via AGENTS.md + HANDOFF.md (or baton / ccx) using your ChatGPT Plus ($20/mo, ~15–160 GPT-6.1 Sol local messages per 5h) or Pro ($100–$500/mo, no 5h cap) allowance — with strict turn ceilings on background cloud tasks.
Pick Cursor if…
you want an interactive IDE fallback on a separate weekly usage pool (Plus $8/mo, Premium $30/mo), the Cursor Agent SDK for CI workflows, and project-scoped .mcp.json files to avoid 30,000-token startup bloat.
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] |
| 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 |
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
FAQ
How do baton (agent-baton), CarryOn, Friday, Automater Lite and ccx compare to a plain git HANDOFF.md?
1) Plain AGENTS.md + HANDOFF.md in git (/en/recipes/usage-limit-handoff-claude-code-to-codex/) requires zero install, works across every CLI/IDE, and commits your diff + 7-section state directly to your feature branch. 2) baton / agent-baton (github.com/codeprakhar25/agent-baton and github.com/niketkal/baton) installs hooks in ~/.claude/settings.json or watches rollout JSONL logs, warns before the quota threshold, and runs `baton pickup --to codex`. 3) CarryOn (agent-carryon v0.2.1, github.com/MarShaikh/carryon) syncs encrypted .claude/settings.json, skills and session history across machines and detects the 5-hour reset window. 4) Friday (github.com/splashxmoon/friday) coordinates Claude Code, Codex, Cursor and Gemini CLI on a local task board with automatic limit handoffs. 5) Automater Lite (v0.1.26) tracks remaining quota windows and cloud-archives sessions. 6) ccx (@aaron0x10) gives a one-click macOS menu-bar context switch between Claude Code and Codex.
Why did a single T3 Code session burn a 5-hour Claude Max limit in 30 minutes, and how did a user spend $6,671 on Codex in two weeks?
Multi-agent wrappers like T3 Code spawn subagents that re-read full repository files on every turn (@DeepakNesss reported hitting the Claude Max 5-hour cap in ~30 minutes on a single payment-bug session). Similarly, on OpenAI Codex, @clhdev documented a single 1-hour background cloud task consuming 49% of a weekly ChatGPT Pro limit, and @DrCraigHorne published receipts showing US$6,671 spent across 73 extra credit top-ups in two weeks on top of a $200/mo ChatGPT Pro plan. Fix: follow Spotify engineering's pattern (@AnnatarXBT — 90% token reduction) by blocking frontier models from opening raw files directly and delegating search/boilerplate to Haiku, Sonnet or DeepSeek V4.1 Flash.
What is the ~/Downloads/AGENTS.md prompt-injection vulnerability and how do I stay safe?
Security researchers and The Hacker News (26 Oct 2026) demonstrated that coding agents walk up parent directories looking for AGENTS.md or CLAUDE.md instructions. If you launch Codex or Claude Code inside ~/Downloads (or any folder containing an untrusted downloaded AGENTS.md), hidden prompt-injection instructions inside that file hijacked Codex into running attacker shell commands in over 80% of controlled tests. Always launch coding agents inside dedicated git repositories and inspect any third-party AGENTS.md before running an agent.
How do I calculate whether two $20 plans + HANDOFF.md beat a $200/month Max/Pro plan?
Plug your weekly coding hours and active subscriptions into our free AI Cost Calculator (/en/calculator/). For most solo builders, pairing Claude Pro ($20/mo) + ChatGPT Plus ($20/mo) or Cursor Plus ($8/mo) with our git HANDOFF.md workflow costs $28–$40/month and gives two independent reset clocks — and our $19 Stretch Your AI Plan pack (/en/packs/) includes the ready-made CLAUDE.md, AGENTS.md and fallback routing templates.
Should I pick Claude Code or OpenAI Codex or Cursor?
Claude Code: pick it if you want frontier terminal reasoning (Claude Opus 5.5 at 58 on Artificial Analysis v5, with v2.1.311 auto-compaction before the 1M-context wall) and pair it with warm-cache /compact before 1-hour breaks plus Spotify-style cheap-model routing (~90% token reduction). OpenAI Codex: pick it if you want to pick up a paused Claude Code branch via AGENTS.md + HANDOFF.md (or baton / ccx) using your ChatGPT Plus ($20/mo, ~15–160 GPT-6.1 Sol local messages per 5h) or Pro ($100–$500/mo, no 5h cap) allowance — with strict turn ceilings on background cloud tasks. Cursor: pick it if you want an interactive IDE fallback on a separate weekly usage pool (Plus $8/mo, Premium $30/mo), the Cursor Agent SDK for CI workflows, and project-scoped .mcp.json files to avoid 30,000-token startup bloat.