Blank white background with no objects or features visible.

We’re sharing complimentary access to the full Gartner Hype Cycle for AI Governance 2026. Get your copy →

Claude Code Pricing Explained: Plans, Token Costs, and How to Cut Spend

By Ashish Dubey

Updated: October 31, 2026

Published: October 31, 2026

TL;DR:

Claude Code is billed two different ways, and most surprise invoices come from not knowing which one you are on.

  • Two billing models: a flat subscription seat (Pro, Max, Team, Enterprise) with a shared usage allowance, or pay-as-you-go per token through the Claude Console or a cloud provider.
  • Plans start at $20/mo (Pro) and run to $200/mo (Max 20x); Team seats are $25/mo standard and $125/mo premium, and Enterprise is $20/seat/mo on an annual, 20-seat minimum with usage billed on top.
  • Tokens are the real meter. Under every plan the cost is driven by model choice — Opus 5.5 output is 40x the price of Haiku 5.5 — plus how much context each request carries.
  • The honest per-developer number is roughly $13 per active day and $150–250 per month, staying under $30 a day for about 90% of users.
  • You cut spend with model routing, prompt caching and context hygiene — and you make spend visible and enforceable per developer by routing Claude Code through an AI gateway.

The two ways Claude Code is billed

Before any number means anything, you have to know which meter is running. Claude Code charges by API token consumption underneath, but how that reaches your card depends on how your developers sign in.

  • Subscription seats (Pro, Max, Team, Enterprise). Usage draws from a per-seat allowance that resets on a five-hour rolling window and a weekly window. That allowance is shared with Claude chat and Cowork, so a heavy chat day eats into the same bucket as coding.
  • Pay-as-you-go (Claude Console or a cloud provider). Every token is billed to a workspace or your cloud account at list API rates. There is no allowance and no cap unless you set one.

A team can mix both: each developer is metered according to the method they authenticated with. The plan table below is the subscription side; the token table after it is what actually accrues underneath.

Claude Code plans and prices

PlanPrice (monthly)Claude CodeHow usage is meteredBest for
Free$0LimitedSmall allowance, resets oftenTrying it out
Pro$20 ($17 billed annually)IncludedSeat allowance shared with Claude chat + Cowork; 5-hour + weekly windowsIndividual developers
Max 5xFrom $100Included~5x the Pro allowanceHeavy individual use
Max 20x$200Included~20x the Pro allowanceAll-day agent workflows
Team (Standard)$25 ($20 annually)IncludedPer-seat allowance, managed in the admin consoleMost teams
Team (Premium)$125 ($100 annually)IncludedLarger per-seat allowanceHeavy team use
Enterprise$20/seat (annual, 20-seat min)Included + usageSeat allowance; overage billed at API ratesOrgs needing controls
Console / APIPay-as-you-goPer tokenBilled per token to a workspaceAPI-metered teams
  • Subscription allowances are shared across Claude Code, Claude chat and Cowork — the same five-hour and weekly windows cover all three.
  • Annual billing lowers the effective monthly price (Pro $20 → $17, Team Standard $25 → $20, Premium $125 → $100).
  • On Amazon Bedrock, Google Vertex or Microsoft Foundry, Claude Code is billed per token to your cloud account, and spend controls live in your cloud console — not in Anthropic’s.

For the usage limits behind each plan — the five-hour window, the weekly cap and what happens when you hit them — see Claude Code limits explained.

The token prices behind every plan

Whichever plan you are on, the underlying cost is per million tokens (MTok) and depends entirely on the model. This is the single biggest lever on your bill.

ModelInput /MTokOutput /MTokCache read /MTokCache write /MTok
Opus 5.5$4$20$0.20$5.00
Sonnet 5.5$2$10$0.10$2.50
Haiku 5.5 (≤100K prompt)$0.10$0.50$0.01$0.125
Haiku 5.5 (>100K prompt)$0.50$2.50$0.05$0.625
Fable 5.1$10$50$0.25$12.50
  • Batch processing is 50% cheaper than real-time for work that can wait.
  • Cached input is ~10x cheaper to read than fresh input — which is why a long, warm session is far cheaper per message than a cold one.
  • US-only inference is billed at 1.1x standard, and Opus 5.5 fast mode is 2x — small multipliers that add up across a fleet.

Choosing the right tier for each task is a cost decision in its own right; we break the trade-offs down in Opus vs Sonnet vs Haiku: a cost-vs-capability routing guide.

So what does a developer actually cost?

Across enterprise deployments the average works out to about $13 per developer per active day and $150–250 per developer per month, and stays under $30 a day for roughly 90% of users. The long tail is real, though: one developer running Opus all day across multiple repositories can spend several times the median.

Two habits explain most unexpectedly high bills: long sessions that are never cleared (so every message re-sends the whole conversation), and Opus left as the default model when Sonnet would have done the job. Both are fixable, and both are easier to catch when you can see spend per developer. For a deeper breakdown by agent, see what AI coding agents actually cost per developer.

How to cut Claude Code spend

The levers, in rough order of impact:

  1. Match the model to the job. Sonnet handles most coding well at a fifth of Opus output cost; reserve Opus for architecture and multi-step reasoning, and push simple subagent tasks to Haiku.
  2. Lean on prompt caching. Repeated system prompts and file context read from cache at ~10x less. Keeping a session warm within its cache lifetime (one hour on a subscription, five minutes on the API) avoids re-paying for the same context — the real cost math is here.
  3. Clear between unrelated tasks. A fresh session stops you paying to re-send stale context on every message.
  4. Batch what can wait for the 50% discount, and keep agent teams small — each teammate runs its own context window.
  5. Make spend visible per developer, so you can act on the two outliers instead of guessing across the whole team.
Want one cost number per developer across Claude Code, Cursor and Codex — not three dashboards?

Where the bill actually shows up

The hardest part of Claude Code pricing is not the rate card — it is seeing and capping spend once thirty developers are using it. Where you do that depends on how they sign in.

Billing routeHow it is meteredWhere you see spendWhere you cap it
Pro / MaxSeat allowance/usage in the CLIUsage credits + a spend limit
Teams / EnterprisePer-seat allowanceOrg analytics spend reportAdmin spend limits
Console (API)Per tokenConsole usage pageWorkspace spend limits
Cloud (Bedrock / Vertex / Foundry)Per token to your cloudCloud billing consoleCloud budgets, or an AI gateway

On the subscription plans the controls are reasonable. On the Console and especially on cloud providers, per-developer attribution is not built in — which is exactly the gap an AI gateway fills.

Cutting spend with the TrueFoundry AI Gateway

Routing Claude Code through the TrueFoundry AI Gateway puts every completion on a path you control, whichever plan or provider sits behind it. That gives you four things the native billing does not, all at once:

  • Per-developer attribution. Every request resolves to an individual, so spend reports and rate limits mean something — covered in cost tracking for Claude Code.
  • Model policy. Cap which models a developer may reach, so Opus is a deliberate choice rather than an accidental default.
  • One cost view across tools. Claude Code, Cursor and Codex land in the same dashboard — one bill instead of four.
  • Spend limits and governance that hold without developer cooperation, as in Claude Code governance with an AI gateway.

If you are choosing where to route it, we compared the options in the best AI gateway for Claude Code.

A worked example

Thirty engineers on Max 20x at $200/mo is $6,000/mo in subscriptions — predictable, but with no per-developer visibility and no model control. Move the same team onto Console billing behind the gateway and the picture changes: you see that three developers drive 60% of token spend because Opus is their default, you set a model policy that routes routine edits to Sonnet, and the monthly number drops while the two genuine power users keep Opus. The subscription hid the distribution; the gateway surfaced it.

The honest limit: a gateway governs model choice, attribution and spend. It does not change Anthropic’s per-token rates — it just makes sure you only pay them where they earn their keep.

Ready to see per-developer Claude Code spend in one place?

Gotchas worth knowing

  • The subscription allowance is shared. Claude Code, Claude chat and Cowork draw from the same five-hour and weekly windows, so a heavy chat day can throttle coding.
  • Cache lifetime differs by plan. It is one hour on a subscription but drops to five minutes on the API and cloud providers — so the same workflow re-pays for context far more often on pay-as-you-go.
  • The /usage dollar figure is an estimate computed locally at list price. If your org pays contracted rates, it will not match your invoice unless an admin sets the rate override.
  • Cloud-provider usage is invisible to Anthropic’s dashboards. On Bedrock, Vertex or Foundry you get per-user attribution only through OpenTelemetry or an LLM gateway.
  • Long idle sessions still cost money — scheduled tasks and background check-ins re-send your full context on their interval even when you are not typing.

Subscription or pay-as-you-go: which is cheaper for you

The two billing models cross over at a predictable point, and knowing roughly where saves a lot of guesswork. A subscription seat is a flat fee for an allowance; pay-as-you-go is a variable bill for exactly what you burn. For a developer whose usage sits comfortably inside a Max seat’s allowance, the subscription is both cheaper and predictable. For a developer who barely touches it, a Pro seat or light API usage wins. The trouble starts at the two tails: a heavy user on Pro hits limits and loses time, while a light user on Max 20x pays $200/mo for a fraction of the allowance.

A rough way to decide for a team: if most developers are steady daily users, buy seats sized to the median and handle the heavy tail with usage credits; if usage is spiky or concentrated in a few people, meter everyone on the API behind a gateway and set per-developer spend limits so the spiky users are capped rather than throttled. The one combination to avoid is buying everyone the top seat “to be safe” — that pays the maximum for the median, which is exactly backwards.

What actually drives the bill

Token spend is not uniform across a session; a handful of behaviours account for most of it, and each has a direct fix:

Cost driverWhy it costsThe lever
Opus as the default modelOpus output is $20/MTok vs Sonnet’s $10 and Haiku’s $0.50Default to Sonnet; reserve Opus for hard reasoning
Long, uncleared sessionsThe full conversation is re-sent on every requestClear between unrelated tasks
Cache misses after a breakA cold cache reprocesses the whole context at full priceKeep sessions warm; the subscription TTL is 1 h vs 5 min on API
Agent teamsEach teammate runs its own context window (~7x tokens)Keep teams small; use Sonnet for teammates
Idle background workScheduled tasks and check-ins re-send context while idleDisable unused loops and check-ins

Notice that four of the five are about context size, not request count — which is the single most counter-intuitive thing about agentic coding cost. A one-line question in a session that has been open all day can cost more than a fresh, focused task, because the one-liner drags the whole day’s context along with it. The real cost math on caching makes the warm-vs-cold difference concrete, and model routing is covered in the Opus vs Sonnet vs Haiku guide.

Related reading

Conclusion

Most explanations of Claude Code pricing stop at the plan table. The plan is the easy half. The half that decides your actual bill is underneath it: which model each request uses, how much context it carries, whether the cache is warm, and whether you can see any of that per developer. Those are not line items on a pricing page — they are configuration choices, and each one is a lever.

A subscription makes the number predictable. A gateway makes it controllable — model policy, per-developer attribution, and spend limits that hold across every coding tool your team uses. That is the difference between knowing what Claude Code lists at and knowing what it costs you.

Put your coding agents behind one cost and control plane.

Try now.

One gateway for all your models, MCP servers, and agents.
No credit card needed.

Start free
Table of Contents

One Gateway for Every LLM, Agent and MCP Server

Book a 30-min with our AI expert

Book a Demo

The fastest way to build, govern and scale your AI

Book Demo
Summarize with
ChatGPT logo by OpenAI
Perplexity AI logo
Blurry red snowflake on white background, symmetrical frosty design with soft edges and abstract shape.

Discover More

No items found.
October 31, 2026
|
5 min read

Claude Code Pricing Explained: Plans, Token Costs, and How to Cut Spend

No items found.
October 31, 2026
|
5 min read

Claude Code Use Cases for Enterprise Engineering Teams

No items found.
October 31, 2026
|
5 min read

Claude Code vs Gemini CLI: Which Terminal Coding Agent Wins?

No items found.
October 31, 2026
|
5 min read

Claude Code Subagents: What They Are and How to Use Them

No items found.
No items found.

Recent Blogs

Black left pointing arrow symbol on white background, directional indicator.
Black left pointing arrow symbol on white background, directional indicator.

Frequently asked questions

How much does Claude Code cost?

It depends on how you access it. On a subscription, Claude Code is included from $20/mo (Pro) up to $200/mo (Max 20x), with Team seats at $25–$125/mo and Enterprise at $20/seat/mo plus usage. On the Console or a cloud provider it is pay-as-you-go per token. In practice, enterprise usage averages about $13 per developer per active day and $150–250 per month.

Is Claude Code free?

There is a free tier with a small, frequently-resetting allowance — fine for trying it out, not for daily development. Sustained coding needs at least a Pro plan or pay-as-you-go API access.

What is the difference between Pro and Max for Claude Code?

Both include Claude Code; the difference is the size of the usage allowance. Pro ($20/mo) suits individual developers, Max 5x ($100/mo) gives roughly five times the allowance, and Max 20x ($200/mo) about twenty times — aimed at all-day agent workflows. The allowance is shared with Claude chat and Cowork on every plan.

How much does Claude Code cost per developer per month?

Across enterprise deployments it averages $150–250 per developer per month, staying under $30 per active day for about 90% of users. The outliers are usually developers running Opus as their default across large codebases.

How are Claude Code API token costs calculated?

By model, per million tokens, split into input, output and cached reads/writes. Opus 5.5 is $4 in / $20 out, Sonnet 5.5 is $2 / $10, and Haiku 5.5 is as low as $0.10 / $0.50. Cached input reads at roughly a tenth of fresh input, and batch processing is 50% cheaper.

How do I reduce Claude Code costs?

Match the model to the task (Sonnet for most coding, Opus only when needed), rely on prompt caching, clear context between unrelated tasks, and batch what can wait. For a fleet, routing Claude Code through an AI gateway adds per-developer spend limits and model policy on top.

Can I track Claude Code spend per developer?

On subscription plans you get org-level spend reports; on the Console you get per-member spend in the dashboard. For per-developer attribution across API keys and cloud providers — and across Cursor and Codex too — route the traffic through an AI gateway that meters spend per key.

Take a quick product tour
Start Product Tour
Product Tour