The sticker price understates the real monthly bill for every agentic coding tool on the market. All four of the tools teams compare most often, Claude Code, OpenAI Codex, GitHub Copilot, and Cursor, now meter your work by tokens or credits on top of a flat plan, or in place of one. That shift means the number on the pricing page tells you less than how you use the tool does.
| Tool | Entry-level paid plan | Heavy-use plan | What actually prices the bill |
|---|---|---|---|
| Claude Code (Anthropic) | $20/mo (Pro) | $100-$200/mo (Max 5x / 20x) | API per-token rates when used with an API key; subscription caps plus usage credits |
| OpenAI Codex | $20/mo (Plus) | $100+/mo (Pro 5x / 20x) | Token-credit billing since April 2026; cached input at ~10% of fresh input |
| GitHub Copilot | $10/mo (Pro) | $100/mo (Max) | GitHub AI Credits bundle ($15 to $200/mo) consumed by agent and chat features |
| Cursor | $20/mo (Pro) | Pro+ and Ultra tiers above Pro | Usage-metered overage billed in arrears beyond the plan |
Here is the verdict you can act on: if your real question is "what will this cost my team," budget for the metered layer, not the plan, and check the official pricing page before you commit because every one of these vendors reprices on a schedule. On identical agentic workloads the tools land in a similar band. The difference between a $40 month and a $400 month on any of them is how many output tokens you let the agent write, which model you point it at, and whether you cache the context you reuse.
The rest of this guide walks each tool's actual billing, then the levers that turn a runaway line item into a forecastable one. If you want the Claude-specific picture first, our breakdown of Claude Code cost has the plan-by-plan detail and the hidden limits.
Why the sticker price stopped being the real cost
Agentic coding tools used to be straightforward to price. You paid a monthly seat and got autocomplete. That era ended when the tools became agents. An agent does not insert a suggestion. It reads files, runs shell commands, opens pull requests, and writes thousands of tokens per task instead of dozens.
The result is that these products now behave economically like inference workloads, and inference is where AI budgets concentrate. Mirantis's guide to optimizing inference costs notes that the split leans about 80% of AI budget to inference and 20% to training once a system reaches production. Every prompt, every generated token adds to the meter, and spend scales with adoption rather than staying fixed.
Two forces pull the real cost in opposite directions. The first is that raw inference keeps getting less expensive. The second is that agents burn far more of it.
On the falling side, Gartner predicted in March 2026 that running inference on a model with a trillion parameters will cost its provider more than 90% less in 2030 than in 2025, and that large language models will become up to 100 times more cost efficient within four years. Mirantis cites the Stanford AI Index to the same effect, with GPT-3.5-level inference falling more than 280-fold between late 2022 and late 2024.
On the rising side, the same Gartner analyst notes that a query to an agentic assistant can cost five to thirty times more tokens than a plain generative AI query. Moore's-law-style gains on the token price are real, but they get swamped when one agent turn consumes the token budget of thirty old-style requests. The companies that operate frontier labs must also turn a profit, and Gartner's framing is blunt: the customer will not see all of the falling cost.
There is a second wrinkle hiding inside "inference cost." LessWrong contributor Aaron Scher showed, using ArtificialAnalysis data, that the same open-weight model can cost ten times more at one provider than another, and that smaller models are dramatically less expensive to serve: an 8-billion-parameter model at well under $1 per million tokens, a 70B model around $0.20, and the biggest 405B around $0.90 at the least expensive providers. Proprietary frontier models carry a bigger markup. None of that variance shows up on a pricing page that lists a single dollar figure, which is why you look at the meter instead.
Claude Code: plan first, per-token when you go the API route
Anthropic does not sell Claude Code as its own line item. It ships inside every paid Claude plan, and it also runs on the API and bills per token. For an individual that means Pro at $20 a month (or $17 billed annually), Max 5x at $100, or Max 20x at $200. Teams need a Team Premium seat at $125 a month, or $100 annually, because the less expensive Team Standard seat does not include Claude Code. Enterprise is $20 per seat plus usage billed at API rates.
Here is the part that surprises people. When Claude Code authenticates with an API key or a Console account, it bills at standard API rates regardless of any subscription you hold. Anthropic's current rate card sets the per-million-token prices as follows: Haiku 4.5 at $1 input and $5 output, Sonnet 5 at $2 input and $10 output (an introductory rate, with the durable Sonnet tier at $3 and $15), Opus 5 at $5 and $25, and the top Fable 5 tier at $10 and $50. Output runs about five times input on every tier. That means the tokens the agent writes are the expensive ones.
Prompt caching matters more here than anywhere else in this guide. A cache read on the Claude API costs roughly a tenth of the base input rate, so the large codebase context an agent reloads on every turn drops from, say, $3 per million tokens to about $0.30. On agentic coding the same context loads over and over, which makes caching the single biggest single-variable dial on the Claude bill.
A defensive warning worth repeating from our Claude Code cost guide: if you have an API key set as an environment variable, Claude Code authenticates with it and bills per token even while you pay for a subscription. Check which billing path is active with the status command before a long session, or you will pay twice.
OpenAI Codex: a flat plan wrapped around a token meter
Codex is not a separate subscription. It is included in your ChatGPT plan, from Free through Enterprise, and it is OpenAI's flagship agentic coding product across web, CLI, and IDE extension. The individual tiers are Free at $0, Go at $8, Plus at $20, and Pro starting at $100 with the 5x and 20x usage options. Business shifts to shared credits for Codex access, and Enterprise replaces fixed limits with an organization-wide credit pool.
What changed recently is the metering. As of April 2, 2026, OpenAI moved Plus, Pro, and Business off per-message billing. Codex now consumes credits, and credits are tokens: input tokens, cached input tokens, and output tokens. Cached input costs roughly a tenth of fresh input, the same shape as Anthropic's caching. Output runs six to eight times input depending on the model, which is why OpenAI's documentation warns that a heavy migration sprint looks nothing like a normal month even on the same plan.
Two concrete numbers put the meter in scope. One credit works out to roughly four cents. A typical task on the flagship model burns five to forty-five credits, a near tenfold spread between a light fix and a heavy refactor. OpenAI's own estimate for active use lands around $100 to $200 per developer per month on the subscription tiers. That is above the Plus sticker price precisely because heavy agentic work consumes the metered layer, not just the seat.
There is a separate path for teams that want pure per-token cost. Run Codex with your own API key and you pay OpenAI's standard token rates with no included allowance. For the Codex-optimized model that is about $1.75 per million input tokens and $14 per million output tokens. Independent estimates put the API ahead of Plus below roughly ten to forty sessions a month and ahead of Pro 5x below fifty to two hundred sessions; above that, the flat subscription wins. The official rate card shifts with each model release, so pull the live numbers before you budget.
GitHub Copilot: the most plan-forward, with a credit meter behind it
GitHub Copilot prices like a seat product first. The individual plans are Free at $0 with a limited monthly allowance and 2,000 completions, Pro at $10, Pro+ at $39, and Max at $100. Business and Enterprise are per-seat with organization controls and audit logs. Of the four tools here, Copilot has the lowest explicit entry price and the deepest set of included plans.
The meter still exists. Copilot's agent mode, chat, code review, cloud agent, CLI, and third-party agent delegation all consume GitHub AI Credits, which bundle as $15 a month of credits on Pro, $70 on Pro+, and $200 on Max. Those credits sit on top of the base plan price, so the working cost is the seat plus what the agent features actually burn. The lists on the plans page make the model pool explicit, including Anthropic's Opus and Sonnet tiers and OpenAI's Codex models, which is notable because it means you can send a task to a less expensive model inside Copilot rather than buying a second tool.
Copilot Free is genuinely functional for light use but the free chat-and-agent allowance is small enough that any daily agent work pushes a team to Pro quickly. MCP servers work on every tier including Free, which keeps the entry cost for experimentation at zero.
Cursor: a subscription you meter past every month
Cursor's pricing is Hobby free, Pro at $20, Pro+ at three times the Pro agent limits, Ultra at twenty times, and a Teams plan at $40 per user per month, with Enterprise custom. The FAQ states the mechanic plainly: every plan includes a set amount of model usage, and on-demand usage lets you keep going after that allowance is gone, billed in arrears.
That sentence is the real cost story for Cursor. The bill does not stop at $20. Heavy agent sessions run past the included amount, and the overage shows up on the next invoice. Cursor is also unique in this group because it lets you switch between models from multiple vendors inside one session, including Anthropic, OpenAI, Google, and its own Composer model. That flexibility is useful for sending routine tasks to a lighter model, but it also means the effective cost depends on which model you leave selected.
Teams is where the governance value sits: centralized billing, usage analytics, privacy mode, and SSO. The paid tiers include MCP support, skills, and hooks from Pro upward, and Bugbot, the agentic code reviewer, is billed on usage rather than bundled in.
How the four billing models compare
Put side by side, the four tools split into two families that behave differently under load.
Claude Code and Codex are agent-first: they treat per-token burn as the core billing unit. Claude does this explicitly on the API and through capacity limits on subscriptions. Codex did it explicitly on April 2, 2026 when it scrapped per-message pricing for tokens. In both cases the vendor publishes a rate card for cache and output that maps directly to cost.
Copilot and Cursor are IDE-first products that bolted a credit or usage meter onto a seat. Copilot bundles the meters as credits and publishes the allowance per plan. Cursor metes usage in arrears above the plan. Both still expose the underlying token economics in what they cap and what they charge past the cap.
For planning, that difference matters less than the shared truth: a developer who lets the agent run long on the frontier model will blow past the entry tier. The plan price is a floor, not a ceiling, and the metered layer sets the ceiling.
What actually moves the monthly number
Four variables explain most of the spread between the least expensive and most expensive month on any of these tools. Each maps to a specific part of the token meter.
Output tokens. On Claude every tier prices output at roughly five times input, and on Codex the output multiplier runs six to eight times. Because an agent writes code, the write side of the meter dominates. Instructing brevity and capping response length attacks the most expensive tokens you buy.
Model choice. The Claude tier table spans a tenfold spread, Haiku to the top tier. The same task on a lighter model costs a fraction of the same task on the flagship. Cursor and Copilot make the switch visible in-session, which is exactly why model choice matters: send routine refactors to a less expensive model and reserve the frontier model for the hard reasoning.
Cache behavior. Every vendor in this group prices cached input at about a tenth of fresh input. Agentic coding is the highest-leverage case for caching because the same codebase context loads on every turn. Keep stable content, system prompts, and project context at the front of the prompt, and the repeated read drops to the discounted rate. A silent cache miss re-bills that content at the full input price with nothing to tell you.
Parallel agents and context size. Every parallel agent instance keeps sending its conversation with each request until it exits. A long-lived session balloons context, and each subsequent turn re-sends all of it. Fewer concurrent agents and smaller contexts hold the input side of the meter down, and they do it without changing a single line of code.
Gartner's warning threads through all four: an agentic query costs five to thirty times more tokens than a generative one. None of these tools change that physics. They only meter it differently.
A worked comparison: one developer, one task, four tools
A concrete example frames the decision. Take a developer running five agentic sessions a day where each session loads a 100,000-token repository context, mostly cached, and writes about 8,000 output tokens. The task is the same regardless of tool; only the pricing surface differs.
On Claude Code at API rates with a mid-tier model, output at $15 per million tokens on top of discounted cached input lands the coding portion around $1.20 a day on output alone, roughly $25 a month with the cache working, and higher if a cache miss bills the full input. On a Max subscription that same daily work sits inside the $100 or $200 plan until you pass the weekly cap, at which point usage credits bill at API rates anyway.
On Codex, that workload burns credits each session. At five to forty-five credits per task and roughly four cents a credit, the daily work is a few dollars, which is why OpenAI's own guidance puts active use near $100 to $200 per developer per month on the subscription tiers rather than at the $20 sticker.
On Copilot, the base Pro seat covers completions, but the agent features draw from the $15 monthly AI credits. Five sessions a day at the heavier end of the scale will exceed that bundle, and the difference rolls onto the invoice or forces a move to Pro+ at $39.
On Cursor, the $20 Pro plan includes a set amount of agent usage, and anything past it bills in arrears. A moderately heavy agent day consumes that allowance quickly, which is exactly the pattern the FAQ describes.
On all four the plan is a small part of the answer. The metered layer, shaped by output volume, model, and cache, decides the real number. Estimate your own bill with a quick token count per task and your daily session count before you commit, and treat the official pricing page for each tool as the source of live rates because the rate cards change on a schedule.
How to cut the cost on any of them
The levers are the same no matter which of the four you run, because they all price tokens. Work through them in order of impact.
Send each task to the smallest model that does it. This is the biggest decision you make and it costs nothing. Classification, extraction, and routine refactors do not need a frontier model. Keep the strongest model for open-ended architecture work. On every tool in this group a lighter model is dramatically less expensive per token, and the LessWrong data on open-weight models shows how far the low end can go.
Cache aggressively, then verify the hits. All four price cached input at about a tenth of fresh input. Keep stable context at the front of the prompt and watch the hit rate. A silent cache miss re-bills the whole context at full input price with no notification. On agentic coding this alone frequently halves the input side of the bill.
Constrain output length. The write side of the meter is the expensive side on every tool. Tell the agent to be brief and cap the response. An unconstrained long answer is the priciest line item you can generate.
Cap parallel agents and context. Every concurrent agent keeps consuming tokens until it exits, and a ballooning conversation re-sends everything on every turn. Compact sessions instead of letting them grow.
Give every dollar an owner. Untracked token spend grows on its own. When nobody can attribute a cost to a team, a feature, or a customer, nobody is accountable for trimming it. Tooling that maps spend to the people and products that generate it turns the other levers from advice into practice. This is the same discipline covered in our guide to AI cost governance for budgets and attribution, and our companion piece on LLM cost optimization lays out the full set of tactics at pillar scale.
Which tool is the least expensive fit for you
The honest answer is that the least expensive tool is usually the one you already have, used well, but the starting points differ by circumstance.
Individual, light use: Copilot Free or Go-class plans keep the entry cost at zero or near it. Any of the tools works if agentic volume stays low enough to stay inside the included allowance.
Individual, daily agentic work: Codex Plus at $20 and Claude Code Pro at $20 are the practical defaults. Budget for the metered layer above the sticker, because daily agent sessions on the frontier model exceed the plan.
Team of five to fifty: Cursor Teams at $40 per user per month bundles the governance controls, SSO, and usage analytics. Copilot Pro+ and Max add organization controls at $39 and $100. Claude Code Team Premium runs $125 per seat and is the priciest of the three at the team tier.
Multi-editor teams: Copilot has the broadest editor support across the group, so it wins when your team spans editors beyond a VS Code fork.
Enterprise: Every vendor sells a custom tier with pooled usage, audit logs, and access controls. The real difference is pricing model: Claude and Copilot keep a per-seat floor with usage on top, while Codex and Cursor lean further into shared credits and pooled usage, which favors uneven usage across a large team.
Comparison shopping between two of these products, say which of Claude Code and Cursor fits a given workflow, is a different question addressed well by the builders' own comparisons, and our guide to Claude vs GPT vs Gemini API pricing covers the raw model rate structure when you want to compare the underlying inference cost rather than the seat.
Frequently asked questions
Which agentic coding tool is the least expensive? The entry price is lowest on GitHub Copilot at $10 and Copilot Free at $0, followed by Claude Code and Codex at $20 and Cursor at $20. On the metered layer the ordering depends on usage, so there is no fixed winner; the way you drive each tool decides the real monthly cost.
Do Claude Code, Codex, Copilot, and Cursor bill per token? Yes, in different wrappers. Claude bills per token on the API and through capacity on subscriptions. Codex moved to token-based credits on April 2, 2026. Copilot consumes GitHub AI Credits. Cursor meters on-demand usage past the plan and bills in arrears.
Why does my agentic coding bill exceed the plan price? Because output tokens are the expensive direction on every vendor's meter, and the included allowance covers only part of the work. When you pass it, you pay overage at token rates.
Is cached input less expensive? Yes. All four vendors price cached input at roughly a tenth of fresh input, which makes prompt caching the highest-leverage cost lever on an agentic workload.
Which model should I run for a routine task? The smallest model that can complete the task. Frontier models cost several times more per token, and matching the model to the task is the single biggest saving available on any of these tools.
The takeaway
The true cost of agentic coding was never the plan price. It is the token meter behind the plan, and every serious tool now prices by that meter. Output tokens, model choice, caching, and parallel agent count decide whether a developer costs $20 a month or $200, often on the same subscription.
Treat the four tools as close competitors on sticker price and as very different products on the meter. Send each task to the model that fits it, cache the context you reuse, cap what the agent writes, and give the spend an owner, and the bill becomes predictable on any of them. Rate cards change on a schedule, so check each vendor's official pricing page for live figures. Learn the billing and model-choice levers that keep agentic coding spend predictable and apply them before the meter runs, not after.