9io.ai / Blog

Claude Code vs Codex vs Cursor: limits, plans and benchmarks

Claude Code vs Codex vs Cursor, plus Pi, as of 30 October 2026: the top plans side by side, how usage limits reset, independent benchmarks and which to pick.

Key takeaways

  • Claude Code with Opus 5.5 leads Terminal-Bench 4.0 at 64.8% and ties Codex with GPT-6 Astra on Real-SWE.
  • GPT-6.1 Sol in Codex costs $0.79 a Real-SWE attempt, against $13.95 for Opus 5.5 in Claude Code.
  • Cursor Ultra’s $200 covers Grok and Composer, while Claude, GPT and Gemini cost API prices on top.
  • OpenAI doubled Codex allowances on Pro 100 and Pro 500 on 29 October; Pro plans have no five-hour limit.
  • Claude’s weekly limit resets at a fixed time per account, and Cursor’s new plans refresh a pool weekly.

Claude Code vs Codex vs Cursor, as of 30 October 2026, comes down to which models you need and how you want to pay. On the two third-party benchmarks that run each vendor’s own agent, Claude Code with Claude Opus 5.5 leads Terminal-Bench 4.0 at 64.8%, ahead of Codex at 58.2%, and the two are level on Real-SWE. Codex is far cheaper per task. GPT-6.1 Sol in Codex costs $0.79 a Real-SWE attempt, against $13.95 for Opus 5.5 in Claude Code.12 Cursor suits teams that want an editor with several labs’ models, but its new plans include only Grok and Composer, and Claude, GPT and Gemini cost API prices on top.3

All four tools here are agents that read a repository, edit files and run commands. Claude Code and Codex run in terminals, IDEs and their makers’ clouds. Cursor is a code editor that SpaceX has owned since August, sold to new customers since 12 October as part of The X Subscription, a bundle with Grok and X.45 Pi, from Earendil, is a minimal open-source terminal agent.6

Below are the models, benchmarks and prices, the top plans side by side and how usage limits reset, then features, Pi and a decision table. Sources are public and dated on or before 30 October 2026. We haven’t run our own benchmarks, and every figure links to its source.

Claude Code vs Codex vs Cursor vs Pi at a glance

The table summarises the four tools as of 30 October 2026, and the later sections give the sources.

Claude Code Codex Cursor Pi
Made by Anthropic OpenAI Cursor, part of SpaceX since 14 August 2026 Earendil
Kind of tool Terminal agent, also in VS Code, JetBrains, a desktop app and the web Agent in a CLI, an IDE extension, the ChatGPT apps and OpenAI’s cloud AI code editor with a CLI and cloud agents Minimal terminal agent that you extend yourself
Source code Proprietary CLI is open source (Apache 2.0) Proprietary Open source (MIT)
Models Claude models, Opus 5.5 by default OpenAI models, GPT-6.1 Sol by default in the CLI, plus custom providers Grok and Composer in the plan; Claude, Gemini, GPT-5.6 and others at API prices Most hosted providers, compatible endpoints and local models
Price for one developer $20 to $200 a month Limited on Free, then $8 to $500 a month Free, then $8 to $200 a month, plus API prices for other labs’ models Free, plus whatever the model costs
Used at work, JetBrains, May to July 2026 39% 16% 12% Not reported
Used in the past year, Stack Overflow 2026 65.5% 29.5% 25.5% 4.4%

Anthropic publishes the Claude Code repository under an all-rights-reserved licence,7 OpenAI publishes the Codex CLI under Apache 2.0,8 and Pi is MIT-licensed.6

The two usage rows come from different surveys, so compare tools within a row. In JetBrains’ reweighted survey of more than 15,000 professional developers, Claude Code’s use at work rose from 18% in January and Codex’s from 3%, while Cursor’s fell from 18%. Claude Code was the most-used AI coding tool for 31% of them.9 Stack Overflow’s figures are shares of the 12,255 respondents who answered its question on coding agents.10 OpenAI reported more than 5 million weekly active Codex users on 2 June,11 and Earendil says hundreds of thousands of people use Pi every week.12

Which models each agent can run

Claude Code runs Claude models through Anthropic’s API, Amazon Bedrock, Google Cloud, Microsoft Foundry or an LLM gateway.13 Claude Opus 5.5 is the default on every Claude plan and on the API.14 It arrived on 22 September, Sonnet 5.5 on 28 September and Haiku 5.5 on 7 October.15 Fable 5.1 is never the default. On Max plans it has its own weekly limit, listed as 50% of the plan’s weekly limits, and on Pro it runs only on paid usage credits.16 Real-SWE and Terminal-Bench both ran Z.ai’s GLM-5.3 inside Claude Code, which shows that other labs’ models can be wired into it.21

Codex runs OpenAI’s models. OpenAI’s guide calls GPT-6 Astra its most capable model and GPT-6.1 Sol near-Astra performance at a lower cost. GPT-6.1 Terra, added on 26 October, is pitched at writing, visual understanding and computer use, and GPT-6 Luna at focused, repeatable tasks.1718 At DevDay on 29 September, OpenAI put Sol’s token prices at a fifth of Astra’s.19 GPT-6.1 Sol has been the Codex CLI’s default since version 0.161.0 on 7 October, and GPT-5.5 left Codex for ChatGPT sign-ins on 14 October.18 The CLI can also use other providers, including local models through Ollama or LM Studio.20

Cursor plans include usage of Grok 4.7, 4.6 and 4.5 and Cursor’s Composer 2.5, which its docs call Cursor models. Anthropic’s four current Claude models, Google’s Gemini 4 Argon, 3.1 Pro and 3.8 Flash, OpenAI’s GPT-5.6 Sol, Terra and Luna, and Meta’s Muse Wonder are available at each provider’s API price. Models from DeepSeek, Z.ai and Moonshot are hidden by default.3 SpaceX completed its purchase of Cursor on 14 August.4 Two weeks later, OpenAI said it would wind down its contract supplying models to Cursor, proposed 12 November 2026 as the shutoff date and said it would provide no future models.21 OpenAI’s help article, updated on 27 October, still calls 12 November a proposed date, and Cursor lists no GPT-6 model.223 Our post on Cursor alternatives covers the options for teams that rely on GPT models in Cursor.

Pi works with almost any model. Its 1.4.0 documentation, released on 21 October, covers API keys for Anthropic, OpenAI, Google, DeepSeek, Mistral, xAI, Moonshot, OpenRouter and many other providers, subscription sign-in through /login, local GGUF models through llama.cpp, and any OpenAI-, Anthropic- or Google-compatible endpoint.6

Claude Code vs Codex vs Cursor on benchmarks

Four leaderboards cover these tools, and they measure different things. The Terminal-Bench team’s leaderboard and Specific Labs’ Real-SWE run models inside agents such as Claude Code and Codex, so they compare the products. Vals runs every model in one minimal harness, which ranks the models alone, and CursorBench is Cursor’s own test of models inside Cursor. Only CursorBench is vendor-reported, and neither product benchmark tests Cursor or Pi.

Terminal-Bench 4.0 and Real-SWE: Claude Code against Codex

Terminal-Bench is hosted by Stanford, Harbor and the Laude Institute, and its team runs the leaderboard itself, with an eight-hour limit per task and 95% confidence intervals. OpenAI, Anthropic, Z.ai, SpaceX AI and the Laude Institute support those runs with grants.123 The table shows the leaderboard on 30 October 2026, with each run’s total cost.

Agent and model Terminal-Bench 4.0 Cost of the run
Claude Code, Claude Opus 5.5 at max effort 64.8% ± 3.1 $4.7k
Claude Code, Claude Sonnet 5.5 at max effort 61.8% ± 2.9 $7.3k
Codex, GPT-6 Astra at max effort 58.2% ± 2.8 $3.3k
Codex, GPT-6.1 Sol at max effort 58.2% ± 3.1 $0.6k
Claude Code, Claude Fable 5.1 at max effort 57.9% ± 3.8 $6.2k
Grok Build, Grok 4.7 at xhigh effort 37.6% ± 3.5 $3.7k

Real-SWE 1.1, from Specific Labs, uses 25 tasks from private production codebases that it licensed from real companies. Each model runs five times per task in a native harness at its highest effort, scored as pass@1, and the ranges are one standard error either side. The tasks are private, with samples on request.2 Cost per resolved task is our arithmetic, Specific’s estimated cost per attempt divided by the resolution rate.

Agent and model Resolved One standard error either side Cost per attempt Cost per resolved task
Claude Code, Claude Opus 5.5 56.80% 53.5% to 60.1% $13.95 $24.56
Codex CLI, GPT-6 Astra 56.00% 54.4% to 57.6% $3.78 $6.75
Claude Code, Claude Sonnet 5.5 51.20% 49.0% to 53.4% $10.09 $19.71
Codex CLI, GPT-6.1 Sol 47.20% 44.8% to 49.6% $0.79 $1.67
Claude Code, Claude Fable 5.1 45.60% 42.5% to 48.7% $14.24 $31.23
Grok Build, Grok 4.7 28.00% 25.3% to 30.7% $2.66 $9.50

Both put Claude Code with Opus 5.5 first. On Terminal-Bench it leads Codex by 6.6 points, and the confidence intervals don’t overlap. On Real-SWE it is 0.8 points ahead of GPT-6 Astra with overlapping ranges, so treat those two as level. Codex costs far less. Astra resolves a Real-SWE task for about $6.75 and GPT-6.1 Sol for $1.67, against $24.56 for Opus 5.5, and the Sol run on Terminal-Bench cost $0.6k against $4.7k. Both benchmarks used each model’s highest effort, the most expensive setting, and our post on how reasoning effort changes cost per task shows how far a lower one moves the bill.

Vals: the models in one shared harness

Vals runs every model on Terminal-Bench 4.0 through mini-swe-agent, a minimal harness with one bash tool and no step or cost limit. It averages three runs over 66 tasks, allows eight hours per task and gives no partial credit.24 The scores rank the models, and they don’t measure Claude Code or Codex, which add planning, subagents, context management and permission checks. Figures are from Vals’ update of 29 October 2026, and cost per solved task is our arithmetic as above.

Model Available in Terminal-Bench 4.0 Cost per task Cost per solved task
Claude Opus 5.5 Claude Code (default), Cursor 65.15% $13.20 $20.26
Claude Sonnet 5.5 Claude Code, Cursor 64.14% $16.51 $25.74
GPT-6 Astra Codex 59.60% $9.58 $16.07
Claude Fable 5.1 Claude Code, Cursor 58.08% $17.18 $29.58
Gemini 4 Argon Cursor 57.58% $17.64 $30.64
GPT-6.1 Sol Codex (CLI default) 55.05% $1.72 $3.12
GPT-6.1 Terra Codex 49.49% $2.04 $4.12
GPT-5.6 Sol Codex, Cursor 37.88% $7.98 $21.07
Claude Haiku 5.5 Claude Code, Cursor 36.36% $3.12 $8.58
Grok 4.7 Cursor 28.79% $18.01 $62.56

On this harness Opus 5.5 leads GPT-6.1 Sol by 10.1 points and GPT-6 Astra by 5.55. Sol solves a task for about $3.12 in tokens against $20.26 for Opus 5.5, about 6.5 times as many solved tasks per dollar at API prices. Gemini 4 Argon, which Cursor offers at API prices, scores 57.58%, and Grok 4.7, which Cursor calls its most capable model, scores 28.79%.244 Pi can call the Claude, GPT and Gemini models here through each provider’s API.

CursorBench: models inside Cursor

CursorBench 4.0 is Cursor’s own benchmark, built from ambiguous, multi-file tasks taken from real Cursor sessions.25 It shows how models do inside Cursor, and the effort setting matters as much as the model. The table shows the leading entries and a few others for comparison.

Model and effort CursorBench 4.0 Cost per task
Claude Opus 5.5, max 57.8% $13.43
Claude Opus 5.5, extra high 56.0% $6.98
Claude Opus 5.5, high 56.0% $3.97
Claude Sonnet 5.5, max 55.5% $7.05
Claude Sonnet 5.5, extra high 53.1% $2.81
Gemini 4 Argon, high 52.9% $4.57
Claude Fable 5.1, max 51.8% $17.28
Grok 4.7, extra high 46.3% $6.01
GPT-5.6 Sol, max 41.7% $8.23
Composer 2.5 27.7% $0.68

Opus 5.5 at high effort scores 1.8 points below max for under 30% of the cost per task. Claude models hold the top five places, and Gemini 4 Argon is the best model from another lab. Treat these numbers as vendor-reported. Cursor builds the benchmark and sells its own models on the same leaderboard, and the page doesn’t say how many tasks it has or how they are graded. Its changelog’s last entry is dated 7 October, though Gemini 4 Argon has joined the leaderboard since. Check any leaderboard against your own tasks, as in our post on measuring model drift yourself.

Plans, prices and usage limits as of 30 October 2026

Claude Pro and ChatGPT Plus cost $20 a month. Cursor’s new entry plans cost $8 for Plus, which runs only Grok and Composer, and $30 for Premium, which adds cloud agents and other labs’ models. The three vendors meter use in different ways, so seat prices don’t buy equal amounts of work. The table lists monthly US prices before tax, as of 30 October 2026.

Claude Code Codex Cursor
Free Not included on Claude Free Free and Go ($8) get GPT-6 Luna in the desktop app, subject to rollout Free, with limited use of Cursor’s own models
Entry plan Pro, $20 ($17 billed annually) Plus, $20 Plus, $8, or Premium, $30
Heavier individual plans Max 5x $100, Max 20x $200 Pro 100, Pro 200 and Pro 500, at $100, $200 and $500 Super $100, Ultra $200
Team seat Standard $25 ($20 annually), Premium $125 ($100 annually) Business Standard $25 ($20 annually), Business Premium $125 ($100 annually) Premium, Super or Ultra seats at $30, $100 or $200
Enterprise $20 a seat billed annually, 20-seat minimum, plus usage at API rates Contact sales Custom, with pooled usage
Past the included usage Usage credits at API rates Credits, or an API key at API rates Prepaid credit at API rates

Sources are Anthropic’s pricing page,16 OpenAI’s Codex pricing page and help centre,262728 and Cursor’s pricing documentation.3 Pi itself is free, and you pay the model provider.

Claude. Max gives 5 or 20 times Pro’s usage per five-hour session, and a Team Premium seat gives 5 times a Standard seat. Claude chat and Claude Code share one pool, Anthropic publishes no fixed message counts, and paid plans can turn on usage credits at standard API rates.16

Codex. OpenAI publishes ranges of local messages per five hours on Plus and Business Standard, 5 to 45 with GPT-6 Astra, 15 to 160 with GPT-6.1 Sol, 35 to 285 with GPT-6.1 Terra and 350 to 3,000 with GPT-6 Luna. Cloud tasks can use more, and Fast mode uses the allowance at 2.5 times the standard rate.26

Cursor. Every paid plan on The X Subscription has one weekly pool for Cursor models, shared with Grok’s own apps, and Premium, Super and Ultra get 4, 15 and 50 times Plus’s pool. From Premium up, Claude, GPT and Gemini are billed at API list price from prepaid credit, and Teams and Enterprise add a Cursor Token Rate of $0.25 per million tokens on eligible third-party models.3 Legacy plans, Pro at $20, Pro+ at $60, Ultra at $200 and Teams at $40 or $120 a seat, still work for existing subscribers and include a monthly allowance for third-party models.29

For ten developers on monthly billing, entry team seats cost $250 a month on Claude Team Standard or ChatGPT Business Standard (10 × $25) and $300 on Cursor Premium seats (10 × $30). Heavier seats cost $1,250 on Claude Team Premium or ChatGPT Business Premium (10 × $125) and $1,000 on Cursor Super seats (10 × $100), plus API prices for any Claude, GPT or Gemini use in Cursor. Annual billing brings the Claude and ChatGPT seats down to $20 and $100. Paying per token is the other route. Anthropic puts the average Claude Code cost across enterprise deployments at about $13 per developer per active day and $150 to $250 a month, with 90% of users under $30 a day.30 Claude Enterprise has a 20-seat minimum, so the same ten developers would pay $400 a month for seats, billed annually, plus about $1,500 to $2,500 in usage. Our post on what coding agents cost per engineer works through budgets for teams of 1, 5 and 25.

Cursor Ultra vs Codex Pro vs Claude Max: the top plans compared

There is no plan called Codex Pro. Codex comes with ChatGPT plans, so Cursor Ultra vs Codex Pro means Cursor Ultra against ChatGPT Pro, which OpenAI sells as Pro 100, Pro 200 and Pro 500.27 The table adds Pro 200 because it costs the same $200 as Cursor Ultra and Claude Max 20x. At $100, the matching plans are Claude Max 5x, ChatGPT Pro 100 and Cursor Super. Prices are monthly in US dollars before tax, as of 30 October 2026.

Claude Max 20x ChatGPT Pro 200 ChatGPT Pro 500 Cursor Ultra
Price $200 a month, billed monthly $200 a month, billed monthly $500 a month, billed monthly $200 a month, or $2,000 a year
Included usage, as the vendor puts it 20 times Pro’s usage per five-hour session More than Pro 100 The most of the Pro plans; 25 times Plus at launch on 29 September 50 times Plus’s weekly pool
Five-hour limit Yes No No No
Weekly limit Yes, with a separate Fable limit of 50% of it Weekly allowance Weekly allowance One weekly pool
Models the allowance covers All Claude models, Fable 5.1 within its own limit GPT-6 Astra, GPT-6.1 Sol, Terra and Luna The same, plus Astra and Sol Ultrafast Grok 4.7, 4.6 and 4.5 and Composer 2.5
Other labs’ models No No No Claude, GPT and Gemini at API list price
Monthly API credits $200, not for interactive Claude Code $200, not for Codex $500, not for Codex None stated
After the allowance Usage credits at API rates Credits, an instant reset or an API key Credits, an instant reset or an API key Prepaid credit

Sources are Anthropic’s pricing page and help centre,163132 OpenAI’s help centre and DevDay recap,273319 and Cursor’s pricing documentation.3

None of the three publishes its allowance in tokens or dollars, and each multiple refers to the same vendor’s cheaper plan, so the multiples don’t compare across vendors. On 29 October, OpenAI doubled the Codex allowance on Pro 100 and Pro 500 and cancelled a cut to Pro 200 announced on 29 September, so every Pro 200 subscriber now has the higher allowance.34 It hasn’t published a new multiple of Plus for Pro 500.

The plans also cover different models. Claude Max covers every Claude model up to its limits. ChatGPT Pro covers OpenAI’s models in Codex, and Pro 500 adds Ultrafast, which uses the allowance at 8 times the standard rate.27 Cursor Ultra covers Grok and Composer, so Claude Opus 5.5 in Cursor costs $4 per million input tokens and $20 per million output tokens on top of the $200.3

  • Claude Max 20x fits a developer who works mostly in Claude models, Fable included.
  • ChatGPT Pro 200 fits heavy Codex use without a five-hour limit, and Pro 500 adds Ultrafast and OpenAI’s largest allowance.
  • Cursor Ultra fits a developer who lives in Cursor and mostly uses Grok 4.7 and Composer 2.5, or who runs several agents and Automations, the users Cursor describes for the plan.3

How usage limits reset in Claude Code, Codex and Cursor

The three vendors count usage over different windows, and the reset rules decide when a developer who hits a limit can carry on. This table follows each vendor’s documentation as of 30 October 2026.

Claude Codex, on ChatGPT plans Cursor
Five-hour window On every plan, resetting every five hours On Plus and Business Standard, starting with your first message after the last window ends. None on Pro or Business Premium None
Weekly window Resets at a fixed time each week assigned to your account A weekly usage period, with the reset time shown in settings The X Subscription’s pool refreshes weekly; legacy plans reset monthly instead
Early resets Occasional free limit resets Banked resets from promotions and referrals, and paid instant resets on Plus and Pro None documented; prepaid credit instead
Where to check Settings > Usage, or /usage in Claude Code Settings > Usage, or /status in the Codex CLI The grok.com dashboard, or the Spending tab on legacy plans

Claude. Anthropic describes a rolling five-hour session window. Paid plans add weekly limits, which reset at a day and time assigned to your account that stays the same however you use Claude.1635 Max plans have a separate weekly limit for Fable, and Team limits apply per member, so one person hitting a limit doesn’t stop anyone else.3536 Anthropic occasionally gives eligible plans a free limit reset, which restores the five-hour or the weekly limit at once without moving the weekly schedule. You apply it from Settings > Usage on the web or in Claude Desktop, and it counts in Claude Code too.37 Claude Code’s docs say the first message after a break longer than the cache lifetime reprocesses your whole context, and since version 2.1.304 it warns Pro and Max users when resuming an inactive conversation would use a noticeable share of the five-hour limit.3015 Our prompt caching guide explains what a cold cache costs.

Codex. OpenAI says limits may apply over a five-hour window and a weekly window, and where both apply you need allowance left in both. A new five-hour window starts with your first message in Work or Codex after the previous one ends, so you can hit it early with weekly usage left. Pro plans and Business Premium seats have no five-hour limit.3828 OpenAI’s docs give no fixed weekly reset day and point to Settings > Usage for reset times, and /status shows remaining limits in the CLI.3826 A banked reset, handed out in promotions and for referrals, refreshes both windows and moves your weekly reset date.3834 A paid instant reset, offered to some personal Plus and Pro accounts, starts a new weekly period at your first request afterwards, with the next automatic reset seven days later.39

Cursor. On The X Subscription the included pool refreshes weekly, and the usage page in the grok.com dashboard shows the next reset date. Prepaid credit doesn’t reset with the pool, and each top-up lasts until it is used or expires, currently 365 days after purchase. Legacy plans reset monthly with the billing cycle, and a team’s members all reset together on the team’s cycle. Unused included usage doesn’t roll over on either kind of plan.40

AGENTS.md, subagents, MCP and cloud agents compared

On features, the four tools have largely converged. This table is as of 30 October 2026.

Feature Claude Code Codex Cursor Pi
Reads AGENTS.md Yes, since 18 September, when there is no CLAUDE.md Yes, per directory, with AGENTS.override.md Yes, in the root and subdirectories Yes, as well as CLAUDE.md
Subagents Yes, plus agent teams (experimental) and dynamic workflows Yes, on by default Yes, in the editor, CLI and cloud agents Not built in; added through extensions
MCP Yes, 2026-07-28 revision by default Yes, stdio and streamable HTTP with OAuth Yes, stdio, SSE and streamable HTTP with OAuth Yes, since 1.0
Cloud or background work Cloud sessions, routines, Projects (beta), Code Review on Team and Enterprise Codex Cloud, automatic code review Cloud agents, Projects, Bugbot None built in
IDE integration VS Code and JetBrains extensions, desktop app Extension for VS Code, Cursor and Windsurf; JetBrains and Xcode integrations It is the editor None; RPC and an SDK for building your own
Default permission handling Auto mode, where a classifier model reviews actions Operating-system sandbox plus an approval policy Sandbox setting in the CLI No sandbox and no approval before each tool call

Sources are the vendors’ documentation for each feature.1341164243446

AGENTS.md is now common ground. Claude Code 2.1.277, released on 18 September, reads AGENTS.md as the project instructions when a repository has no CLAUDE.md, and version 2.1.281 extended that to Bedrock, Vertex AI, Foundry and gateways on 23 September.15 If a repository has both files, Claude Code reads only CLAUDE.md, unless that file imports AGENTS.md or you change its Project instructions setting.45 Codex, Cursor and Pi read AGENTS.md natively,42446 and the format is now stewarded by the Agentic AI Foundation under the Linux Foundation.46 One AGENTS.md at the repository root can therefore serve a team that uses all four tools, and our post on AGENTS.md vs CLAUDE.md includes a template.

MCP support differs by protocol revision. All four can use MCP servers, though Pi only added it in 1.0 after ruling it out.47 Claude Code negotiates the stateless 2026-07-28 revision by default with HTTP servers and, since 6 October, with local stdio servers.15 A Cursor staff member said on 21 September that Cursor’s client speaks the 2025-11-25 revision and earlier, and on 25 September that there was no timeline for the new one. Neither that thread nor Cursor’s changelog had an update by 30 October.48 If you run an MCP server for a mixed team, keep the older revision working. Our stateless MCP migration guide covers which clients speak which revision, and making one MCP server work in Claude, ChatGPT, Cursor and VS Code covers the OAuth differences.

Default permissions differ sharply. Since version 2.1.283, Claude Code starts interactive terminal and VS Code sessions in auto mode, where a second model reviews actions instead of asking you. Manual mode and a Bash sandbox are also available.49 Codex runs local commands inside an operating-system sandbox by default and asks before going beyond it.50 Cursor’s CLI has a sandbox mode that you can switch on or off.44 Pi’s own security guide says it can read, change and run files with your account’s permissions without asking before each tool call, and it calls a container, virtual machine or sandbox usually the strongest practical option.6 Whichever you pick, the files that configure these agents can run code when a repository opens, which our post on agent config files that run code covers.

Pi vs Codex and Claude Code: a harness you own

Pi’s README calls it a minimal, extensible agent harness. It skips sub-agents and plan mode, and you add what you need through extensions, skills and packages. It runs interactively, in print or JSON mode, over RPC or inside your own program through a TypeScript SDK.6

Against Codex, the trade is control against guardrails. Codex sandboxes commands by default and includes OpenAI usage in a ChatGPT plan.5026 Pi has no sandbox and no approval step before each tool call, but it runs nearly any model and you can change its code.6 ChatGPT Plus and Pro subscribers can still use their plan in Pi through Sign in with ChatGPT, where OpenAI lists Pi among its open-source integrations. That usage counts toward your plan’s limits, and Settings > Usage lets you cap each app’s share of your weekly usage.51

Claude subscribers can use Pi too. Anthropic’s help centre says third-party apps still draw from a subscription’s limits, and since 7 October Max and Team plans have included monthly API credits, $100 on Max 5x, $200 on Max 20x and $20 or $100 per Team seat, pooled up to $500.32 The credits cover the Claude API and the Agent SDK but not interactive Claude Code. Everyone with an API key in the linked Console organisation shares the balance, so the credits also pay for Pi calling Claude with such a key. Pi ships a setting that warns when Anthropic subscription sign-in may draw on paid extra usage,6 so check your usage page after the first long session.

Pi suits engineers who want to own the agent, mix vendors to control cost or embed an agent in a product. For a team that wants permissions, updates and the surrounding tools handled by the vendor, Claude Code or Codex is the safer default.

The best AI coding agent for each kind of team

If your team… Start with Because
Works in the terminal and wants the top third-party benchmark results Claude Code Claude Code with Opus 5.5 ranks first on Terminal-Bench 4.0 and Real-SWE, and Claude models lead CursorBench 4.0
Already pays for ChatGPT, or watches cost per task Codex It comes with ChatGPT plans, and GPT-6.1 Sol in Codex costs $0.79 a Real-SWE attempt
Needs GPT-6 Astra or GPT-6.1 Sol Codex, or Pi with an OpenAI key or ChatGPT sign-in Cursor has no GPT-6 model, and Claude Code is built around Claude models
Works in an editor and wants several labs’ models in one place Cursor It offers Grok, Composer, Claude, Gemini and GPT-5.6, though only Grok and Composer are in the new plans’ pool and OpenAI’s models may leave on 12 November
Wants an open-source agent it can modify or embed Codex CLI or Pi They are Apache 2.0 and MIT licensed, and Pi runs nearly any provider’s model
Needs guardrails on by default Claude Code or Codex Claude Code reviews actions with a classifier and Codex sandboxes commands, while Pi has neither built in
Uses a mix of tools Any of them All four read AGENTS.md

Before you commit, work through this list:

  1. Start from where your developers work. Terminal-first teams should trial Claude Code and Codex, and editor-first teams Cursor alongside the VS Code extensions of the other two.
  2. List the models you need. GPT-6 means Codex or Pi, Claude-heavy work is cheapest on a Claude plan, and several vendors in one editor means Cursor.
  3. Price the tier your heaviest users need. Anthropic pitches Max at people who work with Claude all day, OpenAI says Plus covers a few focused coding sessions each week, and Cursor suggests Super for daily Agent users.16263 Compare Max, Pro or Ultra against what the same work would cost on API keys.
  4. Note when each limit resets. Find each developer’s weekly reset time in their usage settings before a release week, and decide in advance who may buy credits or resets.
  5. Put shared instructions in AGENTS.md first. The trial is fairer when every tool reads the same project rules.
  6. Run the same real tasks through two tools for two weeks. Count merged changes and review time, and check each vendor’s usage page every few days.
  7. Put 12 November in the calendar. It is OpenAI’s proposed date for ending its model supply to Cursor.

How this comparison was put together

  • Product facts come from vendors’ documentation, pricing pages, help centres and changelogs as of 30 October 2026.
  • Benchmarks come from the Terminal-Bench team (read on 30 October), Specific Labs (Real-SWE 1.1, October 2026), Vals (updated 29 October) and Cursor (CursorBench 4.0, read on 30 October). Only Cursor’s results are vendor-reported. Vals no longer publishes the fallback-adjusted scores this post quoted on 7 October, so we’ve dropped them.
  • Cost per solved task is our arithmetic, cost per task divided by the pass rate, at the API list prices each benchmark used. Subscribers pay flat fees, so these figures compare efficiency and don’t predict a bill.
  • Surveys are JetBrains (18 August 2026) and Stack Overflow (6 October 2026).
  • Not covered: our own benchmark runs (we didn’t do any for this post), latency, GitHub Copilot and Gemini CLI, enterprise discounts and data-retention terms.

Prices, limits and model line-ups in this market change every few weeks, and corrections are welcome at admin@9io.ai.


  1. Terminal-Bench, “Terminal-Bench 4.0” leaderboard, read 30 October 2026, https://www.tbench.ai/ ↩↩↩

  2. Specific Labs, “Introducing Real-SWE 1.1”, October 2026, https://withspecific.com/benchmarks/real-swe ↩↩↩

  3. Cursor, “Models & Pricing”, https://cursor.com/docs/models-and-pricing, “Pricing and plans”, https://cursor.com/help/account-and-billing/pricing, and “Pricing”, https://cursor.com/pricing ↩↩↩↩↩↩↩↩↩

  4. Cursor, “Cursor is now a part of SpaceX”, 14 August 2026, https://cursor.com/blog/joining-spacex, and Cursor blog, “Introducing Grok 4.7”, 21 September 2026, https://cursor.com/blog ↩↩↩

  5. SpaceXSI, “Introducing The X Subscription”, 12 October 2026, https://x.ai/news/x-subscription ↩

  6. Earendil, Pi 1.4.0 release, 21 October 2026, https://github.com/earendil-works/pi/releases/tag/v1.4.0, and its documentation (README, providers, models, settings and security), https://github.com/earendil-works/pi/tree/v1.4.0/packages/coding-agent, including “Run Pi safely”, https://github.com/earendil-works/pi/blob/v1.4.0/packages/coding-agent/docs/security.md ↩↩↩↩↩↩↩↩↩

  7. Anthropic, claude-code repository licence, https://github.com/anthropics/claude-code/blob/main/LICENSE.md ↩

  8. OpenAI, openai/codex repository, https://github.com/openai/codex ↩

  9. JetBrains Research, “AI Coding Agents: Adoption Trends”, 18 August 2026, https://blog.jetbrains.com/research/2026/08/ai-coding-agent-adoption-2026/ ↩

  10. Stack Overflow, “AI coding agents”, 2026 Developer Survey data, https://survey.stackoverflow.co/2026/ai/data/ai-code-agent, and “The results of the 2026 Developer Survey are here!”, 6 October 2026, https://stackoverflow.blog/2026/10/06/the-results-of-the-2026-developer-survey-are-here/ ↩

  11. OpenAI, “Codex is becoming a productivity tool for everyone”, 2 June 2026, https://openai.com/index/codex-for-knowledge-work/ ↩

  12. Earendil, “Pi 1.0”, 1 October 2026, https://earendil.com/posts/pi-1-0/ ↩

  13. Anthropic, “Platforms and integrations”, Claude Code docs, https://code.claude.com/docs/en/platforms ↩↩

  14. Anthropic, “Model configuration”, Claude Code docs, https://code.claude.com/docs/en/model-config ↩

  15. Anthropic, “Claude Code changelog”, versions 2.1.257 to 2.1.312 (1 September to 27 October 2026), https://code.claude.com/docs/en/changelog ↩↩↩↩

  16. Anthropic, “Plans & pricing”, https://claude.com/pricing, and “Claude Code”, https://claude.com/product/claude-code ↩↩↩↩↩↩↩

  17. OpenAI, “Models”, ChatGPT Work and Codex docs, https://learn.chatgpt.com/docs/models ↩

  18. OpenAI, “ChatGPT & Codex changelog”, entries from 14 September to 29 October 2026, https://learn.chatgpt.com/docs/changelog ↩↩

  19. OpenAI, “DevDay 2026 Recap”, 29 September 2026, https://openai.com/index/devday-2026-recap/ ↩↩

  20. OpenAI, “Advanced configuration”, Codex docs, https://learn.chatgpt.com/docs/config-file/config-advanced ↩

  21. OpenAI, “Our decision on Cursor following its acquisition by SpaceX”, 28 August 2026, https://openai.com/index/our-decision-on-cursor-following-its-acquisition-by-spacex/ ↩

  22. OpenAI Help Center, “Using OpenAI models in Cursor”, updated 27 October 2026, https://help.openai.com/en/articles/20001506-using-openai-models-in-cursor ↩

  23. Terminal-Bench, “Terminal-Bench 4.0”, 28 August 2026, https://www.tbench.ai/news/terminal-bench-4-0 ↩

  24. Vals AI, “Terminal-Bench 4.0”, updated 29 October 2026, https://www.vals.ai/benchmarks/terminal-bench-4 ↩↩

  25. Cursor, “CursorBench 4.0”, read 30 October 2026, https://cursor.com/cursorbench ↩

  26. OpenAI, “Pricing”, ChatGPT Work and Codex docs, https://learn.chatgpt.com/docs/pricing ↩↩↩↩↩

  27. OpenAI Help Center, “About ChatGPT Pro tiers”, updated 29 October 2026, https://help.openai.com/en/articles/9793128-about-chatgpt-pro-tiers ↩↩↩↩

  28. OpenAI Help Center, “ChatGPT Business overview”, updated 29 October 2026, https://help.openai.com/en/articles/8792828-chatgpt-business-overview ↩↩

  29. Cursor docs, “Legacy Cursor plans”, https://cursor.com/docs/account/pricing/legacy-cursor-plans ↩

  30. Anthropic, “Manage costs effectively”, Claude Code docs, https://code.claude.com/docs/en/costs ↩↩

  31. Anthropic Help Center, “What is the Max plan?”, https://support.claude.com/en/articles/11049741-what-is-the-max-plan ↩

  32. Anthropic Help Center, “Use the Claude Agent SDK with your Claude plan”, update of 7 October 2026, https://support.claude.com/en/articles/15036540-use-the-claude-agent-sdk-with-your-claude-plan, and “Monthly API credits for Max and Team plans”, https://support.claude.com/en/articles/17154008-monthly-api-credits-for-max-and-team-plans ↩↩

  33. OpenAI Help Center, “API credits benefit for eligible ChatGPT subscriptions”, https://help.openai.com/en/articles/20001626-api-credits-benefit-for-eligible-chatgpt-subscriptions ↩

  34. OpenAI Help Center, “ChatGPT release notes”, entries of 11 June, 29 September and 29 October 2026, https://help.openai.com/en/articles/6825453-chatgpt-release-notes ↩↩

  35. Anthropic Help Center, “What is the Pro plan?”, https://support.claude.com/en/articles/8325606-what-is-the-pro-plan, “What is the Max plan?”, https://support.claude.com/en/articles/11049741-what-is-the-max-plan, and “Use Claude Code with your Pro or Max plan”, https://support.claude.com/en/articles/11145838-use-claude-code-with-your-pro-or-max-plan ↩↩

  36. Anthropic Help Center, “What is the Team plan?”, https://support.claude.com/en/articles/9266767-what-is-the-team-plan ↩

  37. Anthropic Help Center, “What is a limit reset?”, https://support.claude.com/en/articles/17007452-what-is-a-limit-reset ↩

  38. OpenAI Help Center, “Managing usage with GPT-6 Astra in Work and Codex”, updated 29 October 2026, https://help.openai.com/en/articles/20001516-managing-usage-with-gpt-6-astra-in-work-and-codex ↩↩↩

  39. OpenAI Help Center, “Paid weekly Work and Codex rate limit resets”, https://help.openai.com/en/articles/20001507-paid-weekly-work-and-codex-rate-limit-resets ↩

  40. Cursor help, “Usage and limits”, https://cursor.com/help/models-and-usage/usage-limits ↩

  41. Anthropic, “Run agents in parallel”, Claude Code docs, https://code.claude.com/docs/en/agents ↩

  42. OpenAI, “AGENTS.md” and “Subagents”, Codex docs, https://learn.chatgpt.com/docs/agent-configuration/agents-md and https://learn.chatgpt.com/docs/agent-configuration/subagents ↩↩

  43. OpenAI, “Model Context Protocol” and “Codex IDE extension”, Codex docs, https://learn.chatgpt.com/docs/extend/mcp and https://learn.chatgpt.com/docs/codex/ide ↩

  44. Cursor docs, “Rules”, “Subagents”, “Model Context Protocol (MCP)”, “Cloud Agents”, “Projects” and “CLI”, https://cursor.com/docs/rules, https://cursor.com/docs/subagents, https://cursor.com/docs/mcp, https://cursor.com/docs/cloud-agent, https://cursor.com/docs/agent/projects and https://cursor.com/docs/cli/overview ↩↩↩

  45. Anthropic, “How Claude remembers your project”, Claude Code docs, https://code.claude.com/docs/en/memory ↩

  46. AGENTS.md, https://agents.md/ ↩

  47. Earendil, “You said no MCP”, 29 September 2026, https://earendil.com/posts/you-said-no-mcp/ ↩

  48. Cursor community forum, “MCP client cannot connect to modern-only 2026-07-28 Streamable HTTP servers”, 21 to 25 September 2026, https://forum.cursor.com/t/mcp-client-cannot-connect-to-modern-only-2026-07-28-streamable-http-servers-legacy-initialize-rejected/172536, and Cursor changelog, https://cursor.com/changelog ↩

  49. Anthropic, “Choose a permission mode”, Claude Code docs, https://code.claude.com/docs/en/permission-modes ↩

  50. OpenAI, “Sandbox”, Codex docs, https://learn.chatgpt.com/docs/sandboxing ↩↩

  51. OpenAI, “Sign in with ChatGPT”, https://learn.chatgpt.com/docs/sign-in-with-chatgpt ↩

Frequently asked questions

Is Claude Code better than Codex?

On the Terminal-Bench 4.0 leaderboard, Claude Code with Opus 5.5 resolves 64.8% of tasks against 58.2% for Codex with GPT-6 Astra or GPT-6.1 Sol, and on Real-SWE the two are level at 56.80% and 56.00%. Codex is much cheaper per task. GPT-6.1 Sol in Codex costs $0.79 a Real-SWE attempt, against $13.95 for Opus 5.5 in Claude Code.

Is Cursor better than Claude Code?

They suit different teams. Cursor is a code editor whose plans include Grok and Composer, with Claude, Gemini and GPT-5.6 at API prices on top, while Claude Code is a terminal-first agent whose Claude plan covers Claude usage up to its limits. Claude models hold the top five places on Cursor’s own CursorBench 4.0.

What is the difference between Codex and Cursor?

Codex is OpenAI’s coding agent, used from a CLI, an IDE extension, the ChatGPT apps or OpenAI’s cloud, and it runs OpenAI models such as GPT-6 Astra and GPT-6.1 Sol. Cursor is an AI code editor owned by SpaceX that offers models from several labs but no GPT-6 model, and OpenAI has proposed ending its model supply to Cursor on 12 November 2026.

Cursor Ultra vs Codex Pro: which gives more usage?

There is no plan called Codex Pro. Codex usage comes with ChatGPT Pro, sold as Pro 100, Pro 200 and Pro 500, and Pro 500 has OpenAI’s largest allowance with no five-hour limit. Cursor Ultra costs $200 and includes 50 times the weekly Grok and Composer usage of Cursor’s $8 Plus plan, and neither vendor publishes its allowance in tokens, so the two can’t be compared directly.

When do Claude Code, Codex and Cursor usage limits reset?

Claude’s session limit resets every five hours, and its weekly limit at a fixed time each week assigned to your account. On ChatGPT Plus and Business Standard, a new five-hour Codex window starts with your first message after the last one ends, and Settings > Usage shows when the weekly limit resets. Cursor’s new plans refresh a weekly pool, and legacy Cursor plans reset monthly with the billing cycle.

Pi vs Codex: what is the difference?

Codex is OpenAI’s agent, with an operating-system sandbox on by default and usage included in ChatGPT plans. Pi is an MIT-licensed terminal harness from Earendil that runs almost any provider’s model, including OpenAI’s through an API key or a ChatGPT plan, but it has no sandbox or approval step, and its own guide points to a container or virtual machine.

Work with us

Building something like this?

9io is a small team of senior engineers with a fractional CTO. We work by the hour, and plans start at $5,000. Send us a note about your product. The reply comes from the person who'd do the work.