Claude Code cost: plan prices, API rates and what you'll pay
What Claude Code costs on Pro, Max, Ultra, Team or an API key: per-token prices, Anthropic's $13-a-day average, /usage and /cost, and how to spend less.
Claude Code costs either a flat Claude subscription or what it uses on an API key. The plans that include it, in US dollars before tax as of November 23, 2026: Pro at $20 a month ($17 billed yearly), Max at $100, Ultra at $200, a Team seat at $25 or $125 ($20 or $100 billed yearly), and Enterprise at $20 a seat with usage charged on top. A plan has usage limits that reset weekly, and on most plans every five hours too, but no per-token bill. On a Claude Console API key you pay per million tokens: $4 in and $20 out on Opus 5.5, Claude Code’s default model, and $2 and $10 on Sonnet 5.5. Anthropic’s own average across enterprise deployments is about $13 per developer per active day and $150 to $250 a month. Type /usage (alias /cost) to see a session’s estimated cost or your plan’s limits.
On a Claude plan
Every paid plan includes Claude Code; the free plan doesn’t. From Anthropic’s pricing page, as of November 23, 2026:
| Plan | Price a month | Usage | Fable |
|---|---|---|---|
Pro | $20, or $17 billed yearly ($200 up front) | The base allowance | Usage credits only |
Max | $100 | 5x Pro, every five hours and every week | Up to half the weekly limit |
Ultra | $200 | 10x Pro every week | Up to half the weekly limit |
Team Standard | $25 a seat, or $20 billed yearly | Per-seat allowance | Usage credits only |
Team Premium | $125 a seat, or $100 billed yearly | Larger per-seat allowance | Included |
Enterprise | $20 a seat, billed yearly, 20 seats minimum | Usage billed on top of the seat | At API rates, like other usage |
Within the allowance you pay nothing per token, and chats in the Claude apps draw on the same allowance as Claude Code. Anthropic publishes no token or dollar size for a window, only the multiples of Pro above, so there is no exact exchange rate between a plan and an API key. What each seat holds, and where Anthropic’s pages disagree on Fable and Enterprise limits, is in which Claude plans include Claude Code.
A plan can still cost more than its price. Usage credits, which you turn on in Settings, then Usage on claude.ai (or with /usage-credits), let you work past a limit, “billed at standard API rates”, up to a monthly spend limit you choose. Three things in Claude Code bill them rather than the plan: Fable on Pro and Team Standard, /fast on every plan (which, per the fast mode docs, “draws directly from usage credits, even if you have remaining usage on your plan”), and any work after a limit runs out.
Max, Ultra and Team also come with monthly API credits: $100 on Max, $200 on Ultra, $20 or $100 a Team seat pooled up to $500, expiring each billing cycle. Per Anthropic’s credits article, they don’t cover “Interactive Claude Code in the terminal, IDE, desktop, or web”, only claude -p and the Agent SDK run with an API key from the linked Console organization. Another of Anthropic’s help articles says they can’t be used in Claude Code at all; the API key guide quotes both.
On an API key
On a Console key, in the words of Anthropic’s costs page, “Claude Code charges by API token consumption.” List prices per million tokens from the Claude API pricing page, as of November 23, 2026:
| Model | Input | Cache write, 5 min | Cache write, 1 hour | Cache read | Output |
|---|---|---|---|---|---|
Opus 5.5 (the default) | $4 | $5 | $8 | $0.20 | $20 |
Sonnet 5.5 | $2 | $2.50 | $4 | $0.10 | $10 |
Haiku 5.5, prompts up to 100,000 tokens | $0.10 | $0.125 | $0.20 | $0.01 | $0.50 |
Fable 5.2 | $8 | $10 | $16 | $0.20 | $40 |
Opus 5.5, fast mode | $8 | Cache rates apply on top of the fast price | $40 | ||
Haiku 5.5 charges $0.50 in and $2.50 out once a prompt passes 100,000 tokens; the other current models keep one rate across their 1M-token window. Thinking, which Opus 5.5, Sonnet 5.5, Haiku 5.5 and Fable always use, is billed as output.
What a day costs. The only figure Anthropic publishes is its average across enterprise deployments: “around $13 per developer per active day and $150-250 per developer per month, with costs remaining below $30 per active day for 90% of users.” Your own figure depends mostly on context size, because Claude Code sends the whole conversation with every request and reads it back from the cache each turn. The arithmetic at list price, for one turn on Opus 5.5 in a conversation already 100,000 tokens long: reading it from a warm cache is $0.02, writing 2,000 new tokens to the cache $0.01, and 3,000 tokens of thinking and reply $0.06, about $0.09 a turn. The same turn on Sonnet 5.5 is about half that. If the cache has expired, the 100,000 tokens are written again at $0.50 on Opus 5.5, which is why a long session left idle costs more on its first turn back.
On a key, the cache that keeps that cheap lasts five minutes by default; a plan, within its included usage, gets an hour for the main conversation. Setting "promptCacheTtl": "1h" (version 2.1.242 or later) gives a key the hour at the higher write rate, and the prompt caching docs warn it “costs more on short bursts of work that never idle past five minutes”. Getting a key, the Console’s prepaid credits and the precedence of a key over a plan login are in running Claude Code on an API key.
Plan or key
- A plan suits anyone coding most days. Anthropic’s own monthly average across enterprise deployments, $150 to $250, is more than Max at $100 and around Ultra at $200, and a plan can’t run up a bill unless you turn on usage credits. The cost is the stop: when a window runs out, you wait, pay credits, or upgrade.
- A key suits occasional use, scripts and CI. There is no five-hour or weekly window, and you pay only for what runs: at the turn arithmetic above, Pro’s $20 buys about 440 such turns on Sonnet 5.5 or 220 on Opus 5.5. A key reaches less, though: Anthropic’s feature table lists cloud sessions, Remote Control, Claude Code Desktop, cloud scheduled tasks and the Chrome extension among what needs a claude.ai sign-in.
- Teams choose by seat. Team seats carry an allowance and add usage credits past it, Enterprise bills usage on top of the seat, and a Console organization pays for every token; in each, an admin sets the spend limits.
An ANTHROPIC_API_KEY in your environment wins over your plan’s login once approved, and claude -p always uses it, so a subscriber can be billed per token without meaning to. /status shows which one a session is using.
Seeing what you have spent
/usage, which /cost and /stats also open, shows different things depending on how you signed in:
- On an API key, the Session block: an
Estimated costline, durations, and tokens and dollars per model. Claude Code computes the figure “locally from token counts at list price”, so it is an estimate, not your invoice, and it starts again at $0 after/clear. From version 2.1.251 aPrompt cache (main)line adds the share of input read from cache and the misses. - On a plan, your limit bars and a breakdown of what counted against them: skills, subagents, plugins and MCP servers by share, and recommendations for anything behind at least 10% of your recent usage. From version 2.1.305, pressing
fhas Claude Code apply the ones it can. With usage credits on, a row shows this month’s credit spend. The session dollar figure isn’t what you pay on a plan. - The billed figures for a key are on the Console’s Cost page; for usage credits, on claude.ai under Settings, then Usage.
On the Anthropic API, the /model picker also shows each model’s list price. What each screen shows, and when each plan limit resets, is in checking your Claude Code usage.
Capping the spend
- Usage credits: a monthly spend limit in Settings, then Usage, or an organization, group or member limit set by a Team or Enterprise admin.
- A Console organization: spend limits on its workspaces, including the “Claude Code” workspace the Console creates when a member signs in; the prepaid balance, the organization’s own cap and where each is set are in the API key guide.
- One scripted run:
claude -p --max-budget-usd 5.00 "query"stops once estimated spend reaches $5. The CLI reference says the estimate “can differ from your bill” and “spend can pass the cap”, so leave headroom.
Spending less
The costs page traces unexpectedly high spend to “long sessions that were never cleared or to Opus left as the default model”. The same levers save plan allowance as well as dollars:
- Model. Anthropic’s own advice: “Sonnet handles most coding tasks well and costs less than Opus.” Sonnet 5.5 is half Opus 5.5’s price per token. Switch with
/model sonnet, and give simple subagentsmodel: haikuin their configuration. Claude Code models covers the aliases and defaults. - Effort. Opus 5.5 starts at
medium, and thinking is billed as output. The model docs say lower effort is “faster and cheaper for straightforward tasks”: try/effort lowfor routine edits. If you saved a higher level, the plan breakdown in/usagemay suggest a row such asSwitch from max to high effort · /effort high. - Context.
/clearbetween unrelated tasks costs nothing. Compaction is itself a large request, because it reads the conversation it summarises, so run/compactat a natural break rather than mid-task (how compaction works). Keep CLAUDE.md short (Anthropic suggests under 200 lines), move occasional instructions into skills, and switch off MCP servers you are not using. - Cache. Changing model mid-session makes the next request re-read the whole conversation uncached, and so does turning on fast mode. Changing effort keeps the cache on Opus 5.5, Sonnet 5.5, Haiku 5.5 and recent Fable models; on older models it does not. Pick both at the start.
- Parallel work. Every subagent sends its own requests, and agent teams use about 7 times the tokens of a normal session when teammates run in plan mode. A
/loopor other scheduled task sends the full context each time it fires, even while you are away.