Claude Code vs Codex vs Cursor: how to choose a coding agent
We compared Claude Code, Codex, Cursor, Copilot and Antigravity on pricing, usage limits and independent measurements. Four things decide the choice.
Summary. Claude Code, OpenAI’s Codex, GitHub Copilot, Cursor and Google’s Antigravity offer the same thing today: an agent that reads your code, edits files and runs commands. On 6 November 2026 we read the five tools’ documentation and their plan and pricing pages, the measurements of Artificial Analysis and Terminal-Bench, a research note from METR and SemiAnalysis’s test of subscription plans.
- All five run in the same places. Each has an agent that works in the terminal, in the editor and in the cloud. Cursor and Antigravity come with their own editor; Claude Code, Codex and Copilot plug into yours.
- The real difference is the models. Claude Code runs on Anthropic’s models and Codex on OpenAI’s; Copilot, Cursor and Antigravity offer models from several providers. In Cursor, Claude, GPT and Gemini are not included in the monthly fee: you pay for them separately at API prices.
- The plans meter usage differently. Claude Pro and ChatGPT Plus both cost $20 a month; both meter usage in five-hour windows, with no fixed number of messages. Copilot meters with monthly AI credits, Cursor with a weekly pool, and Antigravity with separate meters for each model family. Only Copilot says how many dollars a subscription is worth at API prices.
- In the measurements, the model matters more than the tool. The best results of the 4 tools Artificial Analysis measured were within 8.5 points of each other; in Claude Code, choosing Haiku 5.5 instead of Opus 5.5 cost 24.4 points. What decides the choice is where you work, which models you need to use, how the plan meters you and what your team uses.
Do the five tools do the same job today?
On this blog we have covered the parts of a coding agent one at a time: rules files, hooks, skills, cloud agents, auto mode and sandboxes, scheduled runs and agent SDKs. In the model selection post we used measurements to show which model to pick for which job. This post goes back to a more basic question: which tool should you choose?
The short answer is yes: the tools describe themselves in almost the same words. Claude Code is an agent that reads your code, edits files and runs commands. Codex inspects files, changes them and runs the tools on your machine. Copilot researches the repository, proposes a plan, edits files and runs tools. Cursor’s agent reads the project, edits files and runs terminal commands. Antigravity, too, edits code turn by turn and runs tools. With capabilities this alike, four things decide the choice:

None of the four makes one tool better for everyone; each one leads a different reader to a different tool. Below we take them in turn: where the tools run, which models they offer, what their plans cost and how they meter you, and what independent measurements say.
Where does each tool run?
All five have an agent that runs in the terminal, an editor side and an agent that runs in the cloud. The difference is where the work is centred:
| Tool | Terminal | Editor and desktop | Cloud and mobile |
|---|---|---|---|
| Claude Code | claude | Extensions for VS Code and Cursor, a JetBrains plugin; the Code tab of the Claude desktop app | Claude Code on the web, the Claude app for iOS and Android, Slack |
| Codex | Codex CLI | Extension for VS Code, Cursor and Windsurf; JetBrains and Xcode integrations; the ChatGPT desktop app | Codex Cloud, ChatGPT on the web and on mobile; automatic code review on GitHub, Slack |
| GitHub Copilot | Copilot CLI | VS Code, Visual Studio, JetBrains, Eclipse and Xcode; the GitHub Copilot app | Copilot cloud agent (you assign the work on GitHub.com), GitHub Mobile |
| Cursor | Cursor CLI (agent) | Cursor’s own editor; JetBrains through ACP | Cloud Agents, the iOS app, Slack |
| Antigravity | Antigravity CLI (agy) | Antigravity IDE and the desktop app; extensions for VS Code, Visual Studio, JetBrains, Zed, Xcode and Eclipse | Remote Agents: on Google AI Pro and Ultra, rolling out gradually |
Source: the tools’ documentation, 6 November 2026. Since 18 June 2026, Google has not served Gemini CLI to Google AI subscribers or to free users; Antigravity CLI took its place, and Gemini CLI still works with a paid API key.
The short way to read the table: Cursor and Antigravity come with their own editor, while Claude Code, Codex and Copilot plug into yours. The Claude Code and Codex extensions also install in Cursor, so you can work in Cursor and use either of them as your agent. Copilot’s centre is GitHub: according to its own documentation, a change can start as an issue, be handed to an agent, come back as a pull request, get reviewed and be merged.
All five have an agent in the cloud, but not on every plan. Cursor’s Plus plan has no Cloud Agents; Antigravity’s Remote Agents are only on Google AI Pro and Ultra. If you use Codex with an API key, cloud features such as GitHub code review and Slack are off. We covered how cloud agents work and which work to send to the cloud in a separate post.
Which models can you use in which tool?
This is the most concrete difference between the tools. Claude Code and Codex come with their own company’s models; Copilot, Cursor and Antigravity offer models from several providers in one place:
| Tool | Models | Other providers |
|---|---|---|
| Claude Code | Anthropic: Fable 5.1, Opus 5.5, Sonnet 5.5, Haiku 5.5. The default model on Pro, Max, Ultra, Team and Enterprise is Opus 5.5 | Claude models also through Amazon Bedrock, Google Cloud and Microsoft Foundry, on some of them in an earlier version. Anthropic does not support routing to non-Claude models |
| Codex | OpenAI: GPT-6 Astra, GPT-6.1 Sol, GPT-6.1 Terra, GPT-6 Luna. On the Free and Go plans, only GPT-6 Luna, in the desktop app | With an API key, another provider or gateway compatible with the Responses API |
| GitHub Copilot | Models from Anthropic, OpenAI, Google, xAI and other providers on the same plan. On Free and Student, automatic model selection only | On paid plans, Anthropic’s Claude agent and OpenAI’s Codex agent also run on the Copilot subscription (preview) |
| Cursor | Its own models: Grok 4.7, Grok 4.6, Grok 4.5 and Composer 2.5, from the weekly pool | Claude, GPT and Gemini are not in the pool; from Premium up, at the model’s API list price, paid from prepaid credit |
| Antigravity | Google: Gemini 4 Argon and Gemini 3.8 Flash. On the free plan and Google AI Plus, Gemini 3.8 Flash | Claude Sonnet 5.5 and Opus 5.5, on paid Google AI Pro and on Ultra |
Source: the tools’ model and pricing pages, 6 November 2026. Copilot’s list of models changes with the plan; the full list is on its own page.
The question here is which provider’s models you need to use. If your company has an agreement with a provider, or a rule about data, the list gets shorter on its own. If you want Claude models, you can find them in Claude Code, Copilot, Cursor or Antigravity; but in Cursor you pay for their tokens at API prices on top of the monthly fee. If you want to try models from several providers in the same tool, Copilot, Cursor and Antigravity offer that.
If you don’t want to be tied to any provider, OpenCode is an open-source option: it runs with the API key of whichever provider you choose, and the OpenCode Go subscription ($10/month) is optional. We used measurements to show which model is enough for which job in the model selection post. The measurements below point the same way: changing the model within one tool can make a bigger difference than changing the tool.
How do pricing and usage limits work?
We read the prices and limits on each tool’s own pages on 6 November 2026. Prices are for monthly billing, in the currency the page states; we left annual discounts out. The limits are given the way the pages state them:
| Tool | Individual plans, monthly | Team plan, per user per month | How usage is metered |
|---|---|---|---|
| Claude Code | Pro $20 · Max $100 · Ultra $200 | Team: Standard $25 · Premium $125 | Pro: a five-hour session limit and a weekly limit; on Max, both are 5 times Pro’s. Ultra: no five-hour limit, a weekly limit 10 times Pro’s. The limits are shared with Claude chat |
| Codex | Plus $20 · Pro $100, $200 or $500 | Business $25 | On Plus, estimated local messages per five hours: GPT-6.1 Sol 15–160, GPT-6 Astra 5–45; a weekly limit may also apply. Pro has no five-hour limit. Usage is shared with ChatGPT Work |
| GitHub Copilot | Pro $10 · Pro+ $39 · Max $100 | Business $19 · Enterprise $39 | Monthly AI credits: Pro 1,500, Pro+ 7,000, Max 20,000; one credit is $0.01. They renew on the first day of each month; on paid plans, code completions use no credits |
| Cursor | Plus $8 · Premium $30 · Super $100 · Ultra $200 | Teams: $30, $100 or $200 | A weekly pool for Cursor’s models: Premium 4, Super 15 and Ultra 50 times Plus’s. Claude, GPT and Gemini are not in the pool; from Premium up, at API list price |
| Antigravity | Google AI Plus $4.99 · Pro $19.99 · Ultra $99.99 or $199.99 | Gemini Enterprise Standard and Plus: from $30 | On the free plan and Plus, a quota that refreshes weekly. On Pro, a quota that refreshes every five hours, up to a weekly limit; on Ultra, the highest quota. Gemini models and Claude and GPT models have separate meters |
Source: the Claude, Codex, GitHub Copilot, Cursor, Antigravity, Antigravity pricing and Google AI pages, 6 November 2026. Google AI prices are the ones the page shows with the United States selected as the country. Claude’s free plan does not include Claude Code; Codex’s Free and Go ($8) plans have only GPT-6 Luna, in the desktop app.
Claude and Codex start at the same price and meter usage in a similar way: in five-hour windows. On Claude, every plan also has a weekly limit; OpenAI writes that a weekly limit may apply in Codex too. Neither gives a fixed number of messages that fit in a window. According to Anthropic, how fast you reach the limit depends on the model you use, the length of the chat and the size of the files; OpenAI also writes that the ranges it gives for Plus are estimates, not fixed limits. In Claude Code, /usage shows how much you have left; in Codex CLI, /status does. The other three tools meter usage in other units:

Copilot’s unit is a credit tied to the dollar. According to GitHub, one AI credit is $0.01, and the model’s token price decides how many credits you spend: a quick question to a lightweight model uses a fraction of a credit, while a long cloud agent session with a large model across many files uses far more. Credits renew on the first day of the month, and unused ones don’t carry over to the next.
In Cursor, the plan is a weekly pool for Cursor’s own models, shared by the agent in the editor, the CLI and Cloud Agents. According to its documentation, Cursor is sold today as part of The X Subscription, together with Grok and X, and shares the pool with Grok. If you use Claude, GPT or Gemini, you pay for those models’ tokens at API list price on top of the monthly fee. If you are on an older Cursor plan such as Pro or Pro+, your plan keeps working as it is.
Antigravity’s plan is a Google AI subscription. According to its documentation, on Pro the quota refreshes every five hours, up to a weekly limit; on the free plan and Plus it refreshes once a week. Its models page shows separate five-hour and weekly meters for Gemini models and for Claude and GPT models.
You can also work with an API key instead of a subscription; then you pay per token. By Anthropic’s own figures, across enterprise deployments Claude Code costs about $13 per developer per active day on average, $150–$250 a month; for 90% of users the daily cost stays below $30.
So how many dollars of usage is a subscription worth at API prices? We give a figure only where the vendor states it, or where an independent measurement with a published method found it; we add no estimate of our own:
| Tool | The plan’s own usage, at API prices | API or cloud credit added to the plan |
|---|---|---|
| Claude Code | Not stated in the documentation | On Max $100 a month, on Ultra $200; on Team $20 or $100 per seat, at most $500 per team. Not usable in interactive Claude Code; usable in the Agent SDK |
| Codex | Not stated in the documentation | On Pro, as much as the plan’s price: $100, $200 or $500; on Business $20 or $100 per seat, at most $500 per team. Used on the OpenAI API |
| GitHub Copilot | Pro $15 · Pro+ $70 · Max $200; per user, Business $19 · Enterprise $39 | Not stated in the documentation |
| Cursor | Not stated in the documentation | Not stated in the documentation |
| Antigravity | Not stated in the documentation | Google Cloud credit: on Google AI Pro $10 a month, on the two Ultra plans $40 or $100 |
Source: the GitHub Copilot, Copilot model pricing, Anthropic, OpenAI, Cursor, Antigravity and Google AI pages, 6 November 2026. The Copilot figures are our own multiplication: the monthly number of credits GitHub states, times a credit’s dollar value ($0.01). “Not stated in the documentation”: on the pages we read that day, we found no sentence that gives this in dollars. In Antigravity, AI credits beyond the quota are spent at Gemini Enterprise prices; no dollar value is stated for the quota itself.
Copilot is the only tool that gives the plan’s own usage in dollars. For $10, Pro gives 1,500 credits worth $15, or 1.5 times the plan’s price; the ratio is 1.8 on Pro+ and 2 on Max, and on Business and Enterprise the credits match the plan’s price. Credits are spent at the model’s token price, and for the two models we checked, GitHub’s price is the same as the provider’s own API price: per million tokens, $4 input and $20 output for Claude Opus 5.5 (Anthropic), $2 and $10 for GPT-6.1 Sol (OpenAI). Of Pro’s $15, $5 is a “flex” allotment; GitHub writes that it may change as the models’ prices and efficiency change.
Claude and Codex don’t give the coding usage inside a subscription in dollars; OpenAI says plainly not to estimate a subscription’s work from API token prices. Their higher plans, though, also come with API credit equal to the plan’s price: Claude’s Max and Ultra plans, and ChatGPT’s three Pro plans. This credit is a separate benefit, apart from the subscription’s limits. According to Anthropic, it can’t be used in interactive Claude Code but can be used in the Agent SDK; OpenAI’s credit is for building apps and agents with the OpenAI API.
We found only one independent measurement with a published method: the limit test SemiAnalysis published on 5 October 2026; SemiAnalysis sells AI data and analysis to subscribers. The other figures we found were individuals’ accounts of their own usage and calculators whose method was unclear. SemiAnalysis sends each token type in separate trials and measures how far the plan’s usage meter moves, then converts that into dollars at API list prices, using the ratios of its own agent workload; the detailed results are open to paying subscribers. In the free part of the article, for the plans that cost $200 a month that day, it writes: Anthropic’s plan still had half its limit left after $2,485 worth of Fable 5.1, while OpenAI’s plan ran out completely after $2,897 worth of Astra.
These figures don’t carry over one to one to today’s plans. First, they describe that day’s plans: SemiAnalysis measured OpenAI’s Pro 200 after OpenAI had halved its value. OpenAI’s help page now says that this reduction, announced on 29 September 2026, has been cancelled, that Pro 100 and Pro 500 now include twice their previous Work and Codex usage, and that on Pro 200 the lower allowance was doubled. Second, the dollar value changes with the model and the work; SemiAnalysis, too, shows the same plan’s value changing with the model and the workload. On Artificial Analysis, the cost per task of two runs with similar scores ranged from $1.50 to $11.73. So how many dollars of API a plan is worth does not, on its own, tell you how much work you will get done with it.
Do independent measurements say which one is better?
We left out the tools’ own “we are the best” measurements and looked at three sources from outside the companies that make the tools. In these measurements the model is not measured alone but together with the harness around it; the harness is the agent’s tools, permissions and working loop. The sources are Artificial Analysis’s Coding Agent Index, Terminal-Bench’s own leaderboard and a research note from METR. We covered what benchmarks can and cannot measure in general in the SWE-bench post.
Artificial Analysis is a company that measures coding agents on software engineering tasks by score, cost, tokens and time. Its Coding Agent Index is the average of three benchmarks: FrontierCode (100 tasks), which asks for changes to real open-source repositories; Terminal-Bench 4.0 (66 tasks), worked in the terminal; and SWE-Atlas-QnA (124 tasks), which asks the agent to read code and explain its behaviour. Each task is attempted 3 times, and each row is not a model but a pairing of tool and model. The data on the page is dated 5 November 2026. Of our five tools, 4 were measured; Cursor is not among them:
| Tool and model (effort) | Score | Cost per task | Time per task |
|---|---|---|---|
| Claude Code · Opus 5.5 (max) | 61.7 | $11.42 | 61 min |
| Claude Code · Sonnet 5.5 (max) | 59.3 | $13.30 | 80 min |
| Claude Code · Haiku 5.5 (max) | 37.3 | $2.67 | 71 min |
| Codex · GPT-6 Astra (max) | 54.7 | $7.04 | 25 min |
| Codex · GPT-6.1 Sol (max) | 54.1 | $1.50 | 24 min |
| Codex · GPT-6 Luna (max) | 31.1 | $0.16 | 21 min |
| GitHub Copilot · Copilot Fusion (max) | 59.9 | $5.59 | 36 min |
| Antigravity CLI · Gemini 4 Argon (high) | 53.2 | $11.73 | 35 min |
| OpenCode · GLM-5.3 (max) | 48.9 | $5.23 | 56 min |
Source: Artificial Analysis Coding Agent Index v2.0, data of 5 November 2026. The score is the equally weighted average of three benchmarks: 290 tasks, 3 attempts each. Cost is at the API’s token prices; time is the agent’s own working time. Copilot Fusion is a router that chooses between Anthropic and OpenAI models. We left out the rows of models that are not publicly available.
The table says three things. First, the highest score is in Claude Code’s Opus 5.5 row, but the gap between the best rows of the 4 tools measured is 8.5 points. Second, changing the model within one tool makes an even bigger difference: in Claude Code there are 24.4 points between Opus 5.5 and Haiku 5.5, and in Codex 23.6 between GPT-6 Astra and GPT-6 Luna. Third, close scores come at very different costs: in Codex, GPT-6.1 Sol is only 0.6 points behind Astra, while Astra costs 4.7 times as much per task.
There are also things the table cannot tell you. Most rows were measured at max; in Claude Code these models default to medium. In Claude Code’s Opus 5.5 row, 76 of 870 attempts were finished by switching to another Claude model after the model refused on safety grounds, and they were scored that way. The section that compares the same model across different tools has not been published yet; the page says “coming soon”. The cost column is at API prices too; Artificial Analysis itself writes that many users reach these tools through a subscription.
Of our five tools, only Claude Code and Codex are on Terminal-Bench 4.0’s own leaderboard. The leaderboard attempts each of its 66 tasks 5 times (330 trials) and gives the result with a 95% confidence interval. Claude Code scored 64.85% ± 3.11 with Opus 5.5 and 61.82% ± 2.94 with Sonnet 5.5; these two intervals overlap. Codex scored 58.18% with both GPT-6 Astra and GPT-6.1 Sol, and Claude Code’s Opus 5.5 interval stayed above both. The total cost of Codex’s two runs, however, was $3,267 with Astra and $634 with Sol: the same score at 5.2 times the cost. These rows were added in September 2026.
This version is itself disputed. Epoch AI’s assessment of 4 September 2026 says that 30 of the 66 tasks have publicly reported scoring errors, and rates Terminal-Bench 4.0 “Flawed”.
One study measures the tool’s contribution directly: a note of 13 February 2026 by METR, a nonprofit that studies AI agents. METR ran the same model both in its own simple agent loop and in Claude Code or Codex, and looked at how long a task the model could finish. The result: neither Claude Code with Opus 4.5 nor Codex with GPT-5 did better than METR’s own loop. In METR’s bootstrap test, Claude Code came out ahead in 50.7% of samples and Codex in 14.5%, and neither difference is statistically significant. In METR’s own words, this is a research note that has gone through less review, and it was written before today’s models. METR also points out that these tools are mostly used interactively, with a person keeping an eye on the work.
The three sources agree: at the top, the tools are close to each other, and both the score and the bill depend more on the model and the effort you choose. “Which one is better” has no answer for everyone; it has an answer for your work. Artificial Analysis also writes that two agents with similar scores can be strong in different places across repository, terminal and question-answering tasks.
Which one fits your situation?
Your situation decides the choice more than the tool itself. Each pairing below rests on a fact from the tool’s own documentation; none of them is right for every reader:

You can also use more than one tool, and the tools make that easy themselves: the extensions of Claude Code and Codex install in Cursor, Copilot’s paid plans run the Claude and Codex agents on the same subscription, and OpenCode Go can be used inside Claude Code and Codex. Before you decide, do as OpenAI recommends: start with a task you know well and compare the result with what you need. Since two agents with similar scores can be strong at different work, trying the same task in two tools gives you the answer for your own work.
Whichever agent you choose, the code reaches GitHub as a pull request, and it has to be read before it is merged. That is where diffox works: it reviews the pull request, writes the problems it finds as comments on the relevant line, and marks each one as Critical, Warning or Suggestion. It leaves the merge decision to the team; it never blocks a merge.
Frequently asked questions
Which is better, Claude Code or Codex?
In two independent measurements, at max, Claude Code running Opus 5.5 scored higher: on Artificial Analysis, Claude Code scored 61.7 points and Codex 54.7; on Terminal-Bench, Claude Code 64.85% and Codex 58.18%. In the same measurements Codex was cheaper and faster: with GPT-6.1 Sol, $1.50 and 24 minutes per task, against $11.42 and 61 minutes for Claude Code with Opus 5.5. METR, for its part, measured that neither tool was clearly better than a simple agent running the same model. Which one suits you depends on the model you want to use, your subscription and the kind of work you do.
What is the difference between Claude Code and Cursor?
Claude Code is Anthropic’s coding agent: it runs with Claude models in the terminal, in an editor extension, on the desktop and in the cloud, and it comes with your Claude subscription. Cursor is a tool with its own editor: its plan gives you a weekly pool for Cursor’s own models (Grok and Composer), and from Premium up you pay for Claude, GPT and Gemini separately at API list price. The two can also be used together: the Claude Code extension installs in Cursor.
What are Claude Code’s usage limits?
The Pro and Max plans have a five-hour session limit and a weekly limit; on Max, both are 5 times Pro’s. On Ultra, verified accounts have no five-hour limit, and the weekly limit is 10 times Pro’s. The limits are shared with Claude chat: everything you do in either place counts against the same limits. Anthropic gives no fixed number of messages; how fast you reach the limit depends on the model, the length of the chat and the size of the files. The /usage command shows how much you have left.
What are Codex’s usage limits?
For Plus and Standard Business, OpenAI gives the number of local messages you can send in five hours as a range per model: 15–160 with GPT-6.1 Sol, 5–45 with GPT-6 Astra and 350–3,000 with GPT-6 Luna. These are estimates, not fixed limits, and a weekly limit may also apply. The Pro plans currently have no five-hour limit. Cloud tasks can use more of your allowance than local messages, and usage is shared with ChatGPT Work. In Codex CLI, /status shows your remaining limits.
How much does Claude Code cost?
Claude Code comes with Claude’s paid plans; as of 6 November 2026, billed monthly, Pro is $20, Max $100 and Ultra $200. Paid annually, Pro comes to $17 a month. For teams, the Team plan’s Standard seat is $25 and its Premium seat $125. The free plan does not include Claude Code. Anthropic doesn’t say how many dollars the plans’ Claude Code usage is worth at API prices; the monthly API credit of Max and Ultra ($100, $200) is a separate benefit, and it can’t be used in interactive Claude Code. With an API key you pay per token; by Anthropic’s own figures, across enterprise deployments the average cost is about $13 per developer per active day.
What is the best coding agent?
There is no single answer for everyone. In Artificial Analysis’s measurement, the tools’ best results are close, within 8.5 points; the model and effort you choose decide more of the score and the cost. When you choose, look at four things: where you work, which provider’s models you need to use, how the plan meters you and what your team already uses. If you have a Claude subscription, Claude Code is the shortest path; with a ChatGPT subscription, Codex; if your team is on GitHub, Copilot; if you want a tool with its own editor, Cursor; and with a Google AI subscription, Antigravity.
Can diffox review a pull request opened by a coding agent?
Yes. Whichever agent writes the code, the change reaches GitHub as a pull request; diffox reviews that pull request, writes the problems it finds as comments on the relevant line, and marks each one as Critical, Warning or Suggestion. It leaves the merge decision to the team; it never blocks a merge.