Claude Code, Cursor and OpenAI's Codex are the three coding agents most developers are choosing between this year, and all three publish a $20 entry price. That is where the similarity ends. One sells a session allowance, one sells message counts, one sells a dollar pool metered at API rates — and every one of them, once you pass the included amount, charges you the same thing: the model's API price per token.
So "which one costs less" is a question with a real answer, but not the one the pricing pages invite. It is not the sticker. It is what one agent task costs on the model you actually pick, times how many tasks you run in a month, and which published tier that lands in. We priced that with the same maths our AI Agent Cost Calculator runs, at the official token rates checked in September 2026.
Short version: for a daily driver — about twenty six-step tasks a working day — the API-equivalent is $36 to $90 a month depending on the model, so a $20 plan will run dry and a $100 tier will not. The vendor matters less than the model you leave it set to.
CalculatorAI is not affiliated with Anthropic, Cursor (Anysphere) or OpenAI. Prices and plan terms are quoted from the vendors' pricing pages as checked on the dates given below and change often; treat them as a snapshot, not a quote.
The pricing pagesThree ways to sell the same tokens
Each product bundles the agent with a subscription, and each subscription meters usage differently. That difference decides whether "you'll run out by Wednesday" or "you'll get a bill in arrears."
Claude Code
- Individual tiers
- Pro $20 · Max $100 · Max $200
- What the tier meters
- Usage per 5-hour session; Max is 5× or 20× Pro
- When you run out
- Enable extra usage at standard API rates, or wait for the window to reset
Cursor
- Individual tiers
- Pro $20 · Pro+ $60 · Ultra $200
- What the tier meters
- Two monthly pools: Cursor's own models, and third-party models at each model's API rate
- When you run out
- On-demand usage at the same API rates, billed in arrears, or upgrade
Codex
- Individual tiers
- Plus $20 · Pro $100 · Pro $200
- What the tier meters
- Local and cloud messages per 5-hour window; Pro is 5× or 20× Plus
- When you run out
- Buy additional credits, or use an API key at API pricing
| Tool | Individual tiers | What the tier meters | When you run out |
|---|---|---|---|
| Claude Code | Pro $20 · Max $100 · Max $200 | Usage per 5-hour session; Max is 5× or 20× Pro | Enable extra usage at standard API rates, or wait for the window to reset |
| Cursor | Pro $20 · Pro+ $60 · Ultra $200 | Two monthly pools: Cursor's own models, and third-party models at each model's API rate | On-demand usage at the same API rates, billed in arrears, or upgrade |
| Codex | Plus $20 · Pro $100 · Pro $200 | Local and cloud messages per 5-hour window; Pro is 5× or 20× Plus | Buy additional credits, or use an API key at API pricing |
Source: CalculatorAI · calculatorai.app · claude.com/pricing · cursor.com/docs/account/pricing · developers.openai.com/codex/pricing (redirects to learn.chatgpt.com/docs/pricing)
Three details on that table matter more than the prices:
- Claude Code and Codex meter by time window; Cursor meters by dollars. Anthropic sells "at least 5× more usage per 5-hour session than Free" on Pro and 5× or 20× that on Max. OpenAI publishes a table of local messages per five hours by model — roughly 25 to 200 on Plus for GPT-5.6 Terra, 250 to 2,000 for the cheaper Luna, and five times those on the $100 Pro tier. Cursor does not publish an included dollar figure at all; its documentation says only that different models "affect how quickly your included usage is consumed," and offers a rule of thumb — daily agent users "typically $60–$100/mo total usage."
- All three route the overflow to API rates. Anthropic's extra usage is "at standard API rates." Cursor's on-demand usage is "at the same API rates with pay-as-you-go billing." Codex sells additional credits and prices API-key use "based on API pricing," with a rate card of 5 to 250 credits per million input tokens depending on the model. Past the allowance, the three vendors are selling the same commodity.
- The model is the variable you control. Every tool lets you pick, and the choice moves the cost of the same task by 2× to 4× — more than any difference between the vendors' plans.
That is why the rest of this article prices tasks on models, then asks which tier absorbs them.
One taskWhat a coding-agent loop actually costs
A coding agent is not a chat message. It is a loop: read the file, propose a change, run the test, read the output, patch again. Every step resends the whole conversation so far — the system prompt and tool definitions, your request, and everything the agent has read and written since. That growing context is the cost, and it is why an agent bill is dominated by input tokens, not by the code it writes.
We modelled one task as a loop with a 2,000-token system prompt (instructions plus tool definitions, cached), a 300-token request, 350 output tokens per step and 600 tokens of tool result per step — a file read, a diff, a test log. Two shapes: a 6-step edit and a 14-step debug session.
Claude Sonnet 5
- Input / output per 1M tokens
- $2 / $10
- 6-step edit
- $0.059
- 14-step debug
- $0.239
GPT-5.6 Terra
- Input / output per 1M tokens
- $2 / $12
- 6-step edit
- $0.063
- 14-step debug
- $0.249
GPT-5.6 Sol
- Input / output per 1M tokens
- $4 / $20
- 6-step edit
- $0.118
- 14-step debug
- $0.479
Claude Opus 5
- Input / output per 1M tokens
- $5 / $25
- 6-step edit
- $0.148
- 14-step debug
- $0.599
| Model | Input / output per 1M tokens | 6-step edit | 14-step debug |
|---|---|---|---|
| Claude Sonnet 5 | $2 / $10 | $0.059 | $0.239 |
| GPT-5.6 Terra | $2 / $12 | $0.063 | $0.249 |
| GPT-5.6 Sol | $4 / $20 | $0.118 | $0.479 |
| Claude Opus 5 | $5 / $25 | $0.148 | $0.599 |
Source: CalculatorAI · calculatorai.app · CalculatorAI AI Agent Cost Calculator maths, drafts/claude-code-vs-cursor-vs-codex-numbers.mts
Two things to read off that table. First, the mid-tier models are nearly interchangeable on price: Sonnet 5 and GPT-5.6 Terra are within 7% of each other on both shapes. Second, the 14-step task costs four times the 6-step task, not 2.3× — because each extra step carries everything before it. A debug session that wanders is expensive in a way a long chat is not.
Σ over steps k = 0…n−1 of ( system + request + k × (output + tool result) )6 × 2,300 + 950 × (0+1+2+3+4+5) = 28,050 input tokens + 2,100 outputinput tokens × input rate + cached system × cache rate + output tokens × output rateOne monthThe API-equivalent of three real workloads
Multiply the task cost by how many tasks you run. We priced three intensities over 22 working days: 5 tasks a day (an occasional helper), 20 a day (a daily driver), and 50 a day (all day, with several agents or automations running).
Claude Sonnet 5
- 5 tasks / day
- $8.99
- 20 tasks / day
- $35.95
- 50 tasks / day
- $89.88
GPT-5.6 Terra
- 5 tasks / day
- $9.63
- 20 tasks / day
- $38.51
- 50 tasks / day
- $96.27
GPT-5.6 Sol
- 5 tasks / day
- $17.98
- 20 tasks / day
- $71.91
- 50 tasks / day
- $179.76
Claude Opus 5
- 5 tasks / day
- $22.47
- 20 tasks / day
- $89.88
- 50 tasks / day
- $224.70
| Model | 5 tasks / day | 20 tasks / day | 50 tasks / day |
|---|---|---|---|
| Claude Sonnet 5 | $8.99 | $35.95 | $89.88 |
| GPT-5.6 Terra | $9.63 | $38.51 | $96.27 |
| GPT-5.6 Sol | $17.98 | $71.91 | $179.76 |
| Claude Opus 5 | $22.47 | $89.88 | $224.70 |
Source: CalculatorAI · calculatorai.app · CalculatorAI calculation, September 2026
Switch the workload to 14-step tasks and every cell roughly quadruples: a daily driver on Sonnet 5 goes from $36 to $146 a month, and on Opus 5 from $90 to $364. The shape of your tasks — how many tool calls before the agent is done — is worth more than the vendor's discount.
A daily driver on a mid-tier model
Twenty six-step tasks a working day, 22 days, Claude Sonnet 5 or GPT-5.6 Terra with the system prompt cached. Roughly $36–$39 of API usage a month — comfortably past a $20 allowance, comfortably inside a $60 or $100 tier.
The fitWhich tier each workload lands in
Put the two tables together. For each workload, the cheapest published tier whose price is at least the API-equivalent is the one that could contain it; anything below it will overflow into extra usage, credits or on-demand billing.
5/day, Sonnet 5 or Terra
- API-equivalent
- $9–$10
- Claude Code
- Pro $20
- Cursor
- Pro $20
- Codex
- Plus $20
5/day, Sol
- API-equivalent
- $18
- Claude Code
- Pro $20
- Cursor
- Pro $20
- Codex
- Plus $20
5/day, Opus 5
- API-equivalent
- $22
- Claude Code
- Max $100
- Cursor
- Pro+ $60
- Codex
- Pro $100
20/day, Sonnet 5 or Terra
- API-equivalent
- $36–$39
- Claude Code
- Max $100
- Cursor
- Pro+ $60
- Codex
- Pro $100
20/day, Sol
- API-equivalent
- $72
- Claude Code
- Max $100
- Cursor
- Ultra $200
- Codex
- Pro $100
20/day, Opus 5
- API-equivalent
- $90
- Claude Code
- Max $100
- Cursor
- Ultra $200
- Codex
- Pro $100
50/day, Sonnet 5 or Terra
- API-equivalent
- $90–$96
- Claude Code
- Max $100
- Cursor
- Ultra $200
- Codex
- Pro $100
50/day, Sol
- API-equivalent
- $180
- Claude Code
- Max $200
- Cursor
- Ultra $200
- Codex
- Pro $200
50/day, Opus 5
- API-equivalent
- $225
- Claude Code
- Above $200
- Cursor
- Above $200
- Codex
- Above $200
| Workload | API-equivalent | Claude Code | Cursor | Codex |
|---|---|---|---|---|
| 5/day, Sonnet 5 or Terra | $9–$10 | Pro $20 | Pro $20 | Plus $20 |
| 5/day, Sol | $18 | Pro $20 | Pro $20 | Plus $20 |
| 5/day, Opus 5 | $22 | Max $100 | Pro+ $60 | Pro $100 |
| 20/day, Sonnet 5 or Terra | $36–$39 | Max $100 | Pro+ $60 | Pro $100 |
| 20/day, Sol | $72 | Max $100 | Ultra $200 | Pro $100 |
| 20/day, Opus 5 | $90 | Max $100 | Ultra $200 | Pro $100 |
| 50/day, Sonnet 5 or Terra | $90–$96 | Max $100 | Ultra $200 | Pro $100 |
| 50/day, Sol | $180 | Max $200 | Ultra $200 | Pro $200 |
| 50/day, Opus 5 | $225 | Above $200 | Above $200 | Above $200 |
Source: CalculatorAI · calculatorai.app · CalculatorAI calculation from the vendors' published tiers, September 2026
The pattern is plain once it is laid out:
- 01At the light end, all three $20 plans hold. Five tasks a day on a mid-tier model is under $10 of tokens. The choice between them is about the editor and the workflow, not the bill.
- 02A daily driver on a mid-tier model sits in a gap. $36–$39 is too much for any $20 plan and far less than $100. Cursor is the only vendor with a tier in between — Pro+ at $60 — which is exactly the segment its own documentation describes ("daily agent users typically $60–$100/mo").
- 03Opus 5 or Sol as the default model is what pushes people up a tier. Twenty tasks a day on Opus is the same $90 as fifty a day on Sonnet. The premium model costs roughly two to two and a half times the mid-tier on identical work.
- 04Above $200 a month the vendors converge. Every product's top tier overflows into API-rate billing, so the bill is the API bill plus whatever the subscription included. At that point the honest comparison is the API itself — see Claude Pro vs Max vs API and ChatGPT Plus vs Pro vs API for the break-even arithmetic on each side.
The catchesFour line items the sticker hides
Session windows are not monthly budgets
Claude Code and Codex reset every five hours (with weekly ceilings on top). A heavy Tuesday afternoon can hit the wall while the month's total is well inside the plan — and an idle weekend does not bank anything for Monday.
Cursor's allowance is not published
The included dollar amount per plan is not stated on the pricing page; it is consumed at each model's API rate, so a plan that lasts a month on a mid-tier model can run out in a week on a premium one. Check the usage dashboard before assuming.
Cursor Teams adds a per-token fee on third-party models
A $0.25-per-million-token Cursor Token Rate applies to third-party models on Teams and Enterprise. On our 20-task daily driver that is about $3.30 a month of 6-step tasks, or $13.60 of 14-step ones — small, but on top of the model's own rate.
Prompt caching is doing a third of the work
The figures above cache the system prompt. Turn caching off — or use a client that does not cache tool definitions — and the same Sonnet 5 month goes from $35.95 to $46.90. Long conversations without caching are where bills surprise people.
The modelSonnet-class or Opus-class is the real decision
Sonnet 5 · GPT-5.6 Terra
$0.06 per six-step task. A daily driver costs $36–$39 a month at API rates and fits the second tier of every vendor. Leave the agent here for routine edits, tests and refactors.
Opus 5 · GPT-5.6 Sol
$0.12–$0.15 per six-step task. The same daily driver costs $72–$90 a month, and fifty tasks a day breaks every $200 tier. Reserve it for the tasks where the mid-tier model actually fails.
Every one of these tools lets you set a default model and switch per task. The cheapest configuration on all three is the same: a mid-tier default, the premium model on demand. A team that leaves Opus or Sol as the default is choosing to pay roughly two to two and a half times as much for the majority of tasks that did not need it — that is the model-routing decision that dominates every AI bill, and coding agents are where it shows up first.
The decisionA rule that survives the next price change
If your usage is genuinely unknown, run a month on the $20 tier of whichever editor you prefer, then read the usage page and put the token counts into the AI Subscription vs API Calculator. It answers the question these pricing pages avoid: at your volume and your model, is the subscription a discount or a convenience fee?
Frequently asked questions
Which is cheapest: Claude Code, Cursor or Codex? For light use, all three start at $20 a month and none of them runs out. For a daily driver on a mid-tier model, the work is worth about $36–$39 of tokens a month; Cursor's $60 Pro+ is the only tier priced between $20 and $100. For heavy use on premium models, every product overflows into API-rate billing, so the bill converges on the API bill.
What does one coding-agent task cost? At September 2026 API rates, a six-step task with a cached system prompt costs about $0.06 on Claude Sonnet 5 or GPT-5.6 Terra, $0.12 on GPT-5.6 Sol and $0.15 on Claude Opus 5. A 14-step debug session costs about four times that, because every step resends the whole context.
Does Claude Code's $20 Pro plan include enough for daily coding? Anthropic sells usage per five-hour session rather than a token budget, so it depends on how bursty the day is. As a ceiling: twenty six-step tasks a day on Sonnet 5 is about $36 of API usage a month, which exceeds the $20 plan price, so a daily driver should expect to hit limits or enable extra usage at API rates.
How does Cursor bill when the included usage is gone? Cursor's documentation says you can add on-demand usage and "continue at the same API rates with pay-as-you-go billing," billed monthly in arrears, or upgrade the plan. The included amount per plan is not published as a dollar figure.
Is the Codex API cheaper than a ChatGPT plan? API use is billed per token at the model's rate, with a credits table from 5 to 250 credits per million input tokens. Whether it beats Plus or Pro depends on volume and model — our ChatGPT Plus vs Pro vs API comparison works through the break-even.
Why do agent tasks cost so much more than chat? Because an agent resends the whole conversation on every tool call. A 14-step task sends about 120,000 tokens of input for under 5,000 tokens of output; a chat question sends a few hundred. Input volume, not code volume, sets the bill.
Sources and calculation method
- Anthropic, Claude pricing page (Pro $20 monthly / $17 annual; Max from $100 with 5× or 20× Pro usage; extra usage "at standard API rates"), checked September 16, 2026.
- Cursor, "Pricing" documentation (Pro $20, Pro Plus $60, Ultra $200; two usage pools; on-demand usage "at the same API rates"; Teams $40 Standard / $120 Premium; $0.25 per million tokens Cursor Token Rate on third-party models for Teams and Enterprise), checked September 16, 2026.
- OpenAI, Codex pricing documentation (included in Free, Go $8, Plus $20, Pro from $100 with 5× and 20× tiers, Business $20–$25 per user; local messages per five hours by model; additional credits; API use at API pricing with a 5–250 credits-per-million-input-tokens rate card), checked September 16, 2026.
- Model rates: official standard API prices as recorded in CalculatorAI's model table, verified September 9, 2026 — Claude Sonnet 5 $2/$10, Claude Opus 5 $5/$25, GPT-5.6 Terra $2/$12, GPT-5.6 Sol $4/$20 per million input/output tokens, cached input at one tenth of the input rate.
- Method: every task figure is produced by the same function the AI Agent Cost Calculator runs, with the parameters stated in the article; the script is kept as an editorial artifact. Assumptions bias the numbers downward: no retries, no images or long files in context, a cached system prompt, and 22 working days. Real sessions with larger repositories or uncached tools cost more.






