Beta
Download

Claude Code pricing explained, with what a real task costs

AutoRouter12 min read

Key facts

As of November 9, 2026, Claude Code comes with a Claude plan, Pro at $20 a month ($17 a month billed annually), Max at $100 or Ultra at $200, or bills per token through a Claude Console account and API key. On the API, Claude Opus 5.5, Claude Code's default model on every plan, costs $4 per million input tokens and $20 per million output tokens. Plans publish no token allowance: each request counts against a five-hour limit and a weekly limit shared with claude.ai. In tests on real bug reports from an open-source project, a fix on Opus 5.5 cost $0.15 to $0.22 at API-key prices. AutoRouter, the Mac app for Codex and Claude Code, ran those tests and wrote this post.

How much does Claude Code cost on each plan?

Claude Code is included in every paid Claude plan, from Pro at $20 a month to Ultra at $200, and isn't part of the Free plan, as of November 9, 2026 (Anthropic). Claude Code works the same on every plan; the plans differ in how much usage they hold. Max and Ultra are billed monthly only.

PlanPrice (November 9, 2026)Usage, as Anthropic describes it
Free$0Claude Code not included
Pro$20 a month, or $17 a month billed annuallyLimits every five hours and every week; Claude Fable only through usage credits
Max$100 a month5× Pro's usage every five hours and every week; Fable up to half the weekly limit
Ultra (formerly Max 20x)$200 a month10× Pro's weekly usage, no five-hour limit for verified accounts; Fable up to half the weekly limit
Team, Standard seat$20 per seat a month billed annually, $25 monthlyMore usage than Pro
Team, Premium seat$100 per seat a month billed annually, $125 monthly5× a Standard seat
Enterprise$20 per seat a month billed annually, plus usage at API rates, 20-seat minimumUsage billed per token; admins set spend limits
Claude Console (API key)Per token, at API ratesEvery token is billed instead of counting against plan limits

Each tier now buys the same weekly usage per dollar: Max costs 5 times Pro for 5 times the usage, and Ultra costs 10 times Pro for 10 times the weekly usage. Ultra replaced Max 20x, and existing Max 20x subscribers moved to Ultra with no price change. Max and Ultra also include monthly API credits for the Claude Platform, $100 and $200, but those don't apply to Claude Code. For how Claude Code compares with OpenAI's agent on price, see Codex pricing explained, with what a real task costs.

What do Claude Code's usage limits mean in practice?

Anthropic publishes no message or token counts for Claude Code's limits: it says how fast you reach one depends on the model, the length of your chats and the size of your files. Claude, Claude Desktop, the mobile apps and Claude Code all draw from the same pool, so a long chat on claude.ai leaves less for coding.

To see where you stand, run /usage in Claude Code. On a plan it shows usage bars and a breakdown of what counts against your limits; its dollar figure is a list-price estimate that isn't relevant for billing on Pro, Max or Ultra. How Claude Code usage limits work, and how to make them last covers the five-hour and weekly windows in detail, and How to check your Claude Code usage keeps the numbers on screen while you work.

What does Claude Code cost on the API?

With an API key, Claude Code bills every token at Anthropic's list prices, which as of November 9, 2026 run from $0.10 per million input tokens on Claude Haiku 5.5 to $8 on Claude Fable 5.2, released that day (pricing). Claude Code sends the conversation with each request and caches it, so most input is billed as cache reads and cache writes, which have prices of their own.

Model, per million tokensInput5-minute cache write1-hour cache writeCache readOutput
Claude Fable 5.2$8$10$16$0.20$40
Claude Opus 5.5$4$5$8$0.20$20
Claude Sonnet 5.5$2$2.50$4$0.10$10
Claude Haiku 5.5 (prompts up to 100,000 tokens)$0.10$0.125$0.20$0.01$0.50

Which cache write you pay depends on how you sign in. With an API key, Claude Code uses the five-minute cache, whose writes cost 1.25 times the input price; on a subscription it requests the one-hour cache, at twice the input price. Fast mode for Opus 5.5 costs twice the standard price, and US-only inference adds 10%. Unless you change the model, every request runs on Opus 5.5.

What does a real Claude Code task cost?

A Claude Code task on Opus 5.5 cost between $0.056 and $0.306 at API-key prices in AutoRouter's two published studies, depending on how much code it read and wrote. Each figure is the mean of three fresh claude -p sessions with no router in between. The first column is the cost Claude Code reported on a Max plan, which prices cache writes at the one-hour rate. The second reprices the same tokens with the five-minute cache writes an API key uses.

Task on Claude Opus 5.5RepositoryAs Claude Code priced it on MaxWith an API key
Write a commit messageitsdangerous$0.082$0.061
Fix a planted failing testitsdangerous$0.078$0.056
Rename a function across 6 filesitsdangerous$0.097$0.072
Write tests for one moduleitsdangerous$0.125$0.098
Refactor helpers into a new moduleitsdangerous$0.168$0.132
Fix a real bug: a parameter named helpclick$0.237$0.196
Fix a real bug: version_option ignores package_nameclick$0.264$0.221
Fix a real bug: environment variable hintsclick$0.212$0.169
Fix a real bug: an empty usage lineclick$0.185$0.150
Write tests for _textwrap.pyclick$0.363$0.306

The five itsdangerous tasks ran on October 28, 2026 in a 1,176-line library (method, data). The click tasks ran on November 9, 2026 in a library of about 12,000 lines, from the original bug reports, and passed only when the maintainers' own fix tests passed (method). Every Opus 5.5 run passed its check. Bigger repositories and long interactive sessions cost more, because each request re-reads more context.

Smaller models cost far less on trivial jobs. On the commit message, Claude Sonnet 5.5 cost $0.034 and Claude Haiku 5.5 $0.0024 per run as Claude Code priced them, and all nine runs made a valid commit; What common Claude Code tasks cost, measured on each model has the full breakdown. That doesn't carry over to real engineering work: on Terminal-Bench 4.0, Anthropic reported 39.2% for Haiku 5.5 against 70.6% for Sonnet 5.5 (Anthropic). Keep bug fixes, refactors and design work on the strongest model you have.

At the API-key average of the four click bug fixes, $0.184, Pro's $20 pays for about 110 fixes like them at list prices, Max's $100 about 540 and Ultra's $200 about 1,090. Those are API prices. Anthropic doesn't publish plan allowances in tokens, so outside measurements of what a plan holds, in the next section, are the closest guide. Across enterprise deployments, Anthropic reports Claude Code averaging about $13 per developer per active day, or $150 to $250 a month, at API prices. Subscription or API: which is cheaper for coding agents? works through the break-even point.

Are Claude plans subsidized compared with the API?

Measured at API list prices, a Claude plan holds many times its price in usage, so for heavy users a plan is by far the cheaper way to run Claude Code. Anthropic doesn't publish plan allowances in dollars, so the figures come from outside tests that watch how far a plan's usage meter moves for a known number of tokens, then price those tokens at API rates:

Who measured, whenPlanUsage a plan holds, at API prices
SemiAnalysis, October 7, 2026Claude, $200 a month (then Max 20x, now Ultra), on Opus 5.5About $12,000 a month
Wokey, October 26 to November 2, 2026, 18 accountsClaude Max 20x (now Ultra), $200 a monthAbout $1,549 a week, or $6,711 a month
Wokey, same week, 79 accountsClaude Pro, $20 a monthAbout $155 a week, or $673 a month

The estimates differ because each test assumes its own mix of models and cached tokens: SemiAnalysis tests one token type at a time, and Wokey, which runs a gateway, measures the traffic of real subscription accounts. Both are outside measurements, not figures Anthropic publishes. On the mid-tier models, SemiAnalysis measured about 5 times the API-equivalent value on Claude plans as on ChatGPT plans, comparing Claude Opus 5.5 with GPT-6.1 Sol; Codex pricing explained has OpenAI's side.

That value doesn't mean every plan loses money. SemiAnalysis estimates that Anthropic still books 50% to 60% gross margins on its plans, because API prices carry a high margin and most subscribers use only part of their limit. In its model, a subscriber who uses a whole limit on Opus 5.5 costs Anthropic more than the plan brings in (SemiAnalysis). Anthropic has tightened limits for that kind of use before: it added weekly limits in August 2025 after some subscribers ran Claude Code around the clock, and said they would affect fewer than 5% of subscribers.

For a developer, the practical point is the break-even: once a month of your Claude Code work at API prices would cost more than a plan, the plan is the cheaper way to pay, and from then on its limits are what you manage.

How does AutoRouter change what Claude Code costs?

AutoRouter, the Mac app for Codex and Claude Code, adds 20+ models to Claude Code and picks the model for each task, so the plan you pay for goes to the work that needs it. In Claude Code, Claude models run on your Claude plan. AutoRouter works out how hard each task is: hard work goes to the most capable model your plans cover, and to credits only when none is strong enough, while everything else goes to the model that costs you least, which is often your plan or a low-cost open model. A model has to clear a quality bar for the task before price counts, and you can see each request's model, what it cost and why.

AutoRouter Free costs $0 a month, and routing across your ChatGPT and Claude plans is free. Pro costs $50 a month with $20 of included usage and adds every other model at the provider's price plus 10%; when your Claude plan hits its limit, Pro keeps that work going from the included usage until the plan resets. New accounts get Pro free for their first month, or until $20 of usage is spent. AutoRouter earns the 10% on paid models and nothing on plans. It runs on macOS 14 or later, Claude Code needs Node 22.18 or later, and it is in beta; you choose it with /model in Claude Code. More ways to bring the bill down are in How to cut Claude Code and Codex costs.

Questions

Is Claude Code free?

No. As of November 9, 2026, Claude Code isn't part of Claude's Free plan; it comes with Pro, Max, Ultra, Team and Enterprise, or with a Claude Console account billed per token (Anthropic). The cheapest way in is Pro at $17 a month billed annually.

Does Claude Code cost extra on a Claude plan?

No. Claude Code is included in every paid plan and shares the plan's usage limits. You pay more only if you turn on usage credits, billed at API rates, or if the ANTHROPIC_API_KEY environment variable is set, in which case Claude Code uses the key instead of your plan and bills API rates.

Can Max or Ultra API credits pay for Claude Code?

No. The $100 and $200 of monthly API credits on Max and Ultra are for building on the Claude Platform, and Anthropic says they don't apply to usage credits in Claude, Claude Code or Claude Cowork.

What happened to Claude Max 20x?

Anthropic renamed it Ultra. Existing Max 20x subscribers moved to Ultra automatically at the same $200 a month, which now gives 10 times Pro's weekly usage and no five-hour limit for verified accounts.

Is Claude Code cheaper than Codex?

On AutoRouter's November 9, 2026 test of five tasks in the click library, Codex on GPT-6.1 Sol cost $0.085 per task at API list prices, against $0.252 for Claude Code on Opus 5.5 as Claude Code priced it on a Max plan. Claude Code passed all 15 runs and Codex 14. Codex vs Claude Code has the full comparison, and Codex pricing explained covers ChatGPT's plans.

Sources