Claude Code has no price of its own. You get it inside a Claude subscription (Pro, Max, Ultra, Team or Enterprise), or you pay per token with an API key from the Claude Console. This guide lists every plan as of November 18, 2026, the API rates for the current models, how the limits work, what a session costs in practice, and when running an agent on a local model is the better deal.
Every price below comes from Anthropic’s own pricing page, API pricing docs and help center, read on November 18, 2026. The per-task costs are from our own runs, linked where they appear.
Quick answer: how much does Claude Code cost?
Claude Code costs $20 a month on Pro, $100 on Max and $200 on Ultra, or nothing up front on the API, where you pay per token. Pro suits a few sessions a week. If you code with it most days, Max is cheaper than the API at Anthropic’s own average of about $13 per active developer day. The Free plan does not include it.
| If you | Pick | Monthly cost |
|---|---|---|
| Try Claude Code a few times a week | Pro | $20, or $17 billed annually |
| Code with it most working days | Max | $100 |
| Run long agent sessions all day | Ultra | $200, no five-hour limit once verified |
| Want strict pay-per-use or automation | Console API key | Per token, about $13 per active day on average |
| Buy for a team of 2 to 150 | Team | $25 per Standard seat, $125 per Premium seat |
| Want no per-token bill at all | A local model | Your hardware and electricity |
Claude Code subscription plans
Every paid Claude plan includes Claude Code, and usage is shared between Claude chat and Claude Code, so a long chat eats into the same allowance as your coding sessions. Pro and Max reset a session limit every five hours and a weekly limit once a week. Here is what each plan costs and adds.
| Plan | Price | Claude Code usage | Fable | Monthly API credits |
|---|---|---|---|---|
| Free | $0 | Not included | No | No |
| Pro | $20 a month, or $200 a year ($17 a month) | Base allowance | Only through usage credits | No |
| Max | $100 a month, monthly billing only | 5x Pro per session and per week | Up to 50% of weekly limits | $100 |
| Ultra | $200 a month, monthly billing only | 10x Pro per week, no five-hour limit for verified accounts | Up to 50% of weekly limits | $200 |
| Team, Standard seat | $25 a month, or $20 billed annually | More usage than Pro (1.25x Pro per session) | Only through usage credits | $20 per seat, pooled |
| Team, Premium seat | $125 a month, or $100 billed annually | 5x a Standard seat (6.25x Pro per session) | Up to 50% of weekly limits | $100 per seat, pooled |
| Enterprise | $20 a seat a month billed annually, 20-seat minimum, self-serve or through sales | Billed at API rates on top of the seat price | Yes | Not listed |
A few details that change the math:
- Team runs from 2 to 150 seats, includes Claude Code on every seat, and pools the seats’ API credits into one balance capped at $500 a month (help center).
- Team usage multiples come from the help center: a Standard seat gets 1.25x Pro’s per-session allowance and a Premium seat 6.25x (help center). The pricing page only says Standard gives more than Pro and Premium five times more than Standard.
- Fable on Max, Ultra and Team Premium can use up to 50% of your weekly limits at no extra cost, drawn from the same weekly allowance (help center). The Claude Code help article describes this cap as a separate weekly limit for Fable. Pro and Team Standard seats get Fable only through usage credits.
- Enterprise can be bought self-serve: $20 per seat per month, billed annually, with a 20-seat minimum, and all usage billed at API rates on top (pricing).
- Context goes up to 1M tokens depending on the model, on every paid plan.
The API credits in Max and Ultra do not pay for Claude Code
This is the most common misunderstanding. Max includes $100 and Ultra $200 a month in Claude Platform credits, but Anthropic’s help center says those credits “don’t apply to” interactive Claude Code in the terminal, IDE, desktop or web, nor to usage credits after you hit a limit (source). They cover the Messages API, the Console Playground, Managed Agents and the Agent SDK. Unused credits expire at the end of each billing cycle. So they help if you also build your own agents, and they do nothing for your Claude Code bill.
Claude Code API pricing by model
With an API key, Claude Code bills every token at the model’s API rate. The default model in Claude Code is Opus 5.5, at $4 per million input tokens and $20 per million output tokens. Sonnet 5.5 is half that, and Fable 5.2 costs twice as much as Opus 5.5. Cache reads, which make up most of a long agent session, are far cheaper than fresh input.
| Model | Input, per 1M tokens | Output, per 1M tokens | Cache read, per 1M tokens |
|---|---|---|---|
| Claude Fable 5.2 | $8 | $40 | $0.20 |
| Claude Fable 5.1 | $10 | $50 | $0.25 |
| Claude Opus 5.5 | $4 | $20 | $0.20 |
| Claude Sonnet 5.5 | $2 | $10 | $0.10 |
| Claude Haiku 5.5, prompts up to 100K tokens | $0.10 | $0.50 | $0.01 |
| Claude Haiku 5.5, prompts over 100K tokens | $0.50 | $2.50 | $0.05 |
Source: Claude API pricing, read November 18, 2026. The Batch API halves these prices, but Claude Code sessions are interactive and do not use it. Requests pinned to US-only inference cost 1.1 times the standard rate.
If you sign in with an API key, or you have ANTHROPIC_API_KEY set in your shell, Claude Code uses the key instead of your subscription, and every token is billed to the Console (help center). Check your environment before a long session if you meant to use your plan.
What a Claude Code session costs in practice
Anthropic publishes its own averages for API users: about $13 per developer per active day, $150 to $250 per developer per month, and 90% of users under $30 per active day, across enterprise deployments (Claude Code docs). Our own runs give the cost of single tasks, which is what most people actually want to know.
We run coding tasks through our own agent (see the disclosure below) on OpenRouter at provider defaults, and score the result against hidden tests the agent never sees. These numbers are API cost per run, not Claude Code itself, but the models and token prices are the same.
| Task (our measurement) | Model and effort | Cost per run | Time |
|---|---|---|---|
| Small Python library, 5 bugs plus 2 features, 32 hidden tests | Sonnet 5.5 | $0.19 | 48 s |
| Same task | Opus 5.5 | $0.33 | 68 s |
| Warehouse library, 13 bugs plus 1 feature, 59 hidden tests | Opus 5.5, medium | $0.97 | 4.2 min |
| Same task | Opus 5.5, high | $1.70 | 9.6 min |
| Same task | Fable 5.2, medium | $1.87 | 4.2 min |
| Same task | Fable 5.2, high | $7.70 | 26.6 min |
Three runs per row, averaged. Every model passed every hidden test on the second task, so the extra money bought nothing on that task.
What this means for your plan:
- Effort matters as much as the model. Fable 5.2 at high effort cost eight times what Opus 5.5 at medium did for the same result. Claude Code defaults to medium effort; the API default for Fable 5.2 is high.
- Sonnet 5.5 is the cheap Claude. On the small task it was 42% cheaper than Opus 5.5 and finished faster.
- The break-even with Max is about eight days. At Anthropic’s $13 average per active day, eight active days on the API cost $104, more than Max. Two days cost $26, more than Pro. If you work with it most weekdays, a plan is cheaper than the API.
In Claude Code, /usage shows the session’s API cost if you are on a key, and plan usage bars if you are on a subscription.
How Claude Code usage limits work
Pro and Max have a session limit that resets every five hours and a weekly limit; verified Ultra accounts have only the weekly limit. When you hit one, you can wait for the reset, upgrade, or turn on usage credits and keep working at API rates. All of this is shared with Claude chat.
- Usage credits. Turn them on with
/usage-creditsin Claude Code or under Settings, Usage on claude.ai. Once on, requests past your limit bill at standard API rates until your monthly spend limit or balance runs out (help center). Without a spend limit set,/usageshows it as Unlimited, so set one. - Usage bundles. Prepaying for usage credits is cheaper: $50 of usage costs $45, $250 costs $200 and $1,000 costs $700, up to $2,000 of bundles a month on individual plans (help center).
- Fable on Pro and on Team Standard seats is only available through usage credits, so every Fable token there is billed at API rates.
- Switching to a Console account is the other way out of a limit during a heavy sprint: you pay per token with no session cap.
Can you run a similar agent with a local model for free?
Yes, with trade-offs. A local model has no token bill: you pay for hardware you may already own and the electricity. You give up speed and some quality. Claude Code itself can point at a local server, or you can use an agent built around local models from the start.
Claude Code on a local model. Set ANTHROPIC_BASE_URL to Ollama, llama.cpp, LM Studio or vLLM and set ANTHROPIC_AUTH_TOKEN or ANTHROPIC_API_KEY, and requests skip your subscription entirely. Anthropic does not support non-Claude models in Claude Code, so you are on your own when something breaks. The setup for each server is in our guide to Claude Code with a local LLM.
What local feels like. In our runs, a 27B model at 4-bit on a 32 GB Mac completed multi-step agent tasks reliably but took 200 to 420 seconds each, where the cloud models above took about a minute or less on the small task. That model needs about 17 GB and fits a 24 GB card (full write-up). For picking a local model and the hardware to run it, see our sister project Atomic Chat.
Disclosure: we build Atomic Agent. It is an MIT-licensed agent whose default model runs on a local llama.cpp server on your own machine, so there is no API key and no per-token bill until you choose to add a cloud provider.
atag import claude-codebrings over your Claude Code skills, memory, MCP servers and sessions, andatag handoff --from claude-codecontinues an unfinished Claude Code session in Atomic Agent, on the local model by default. Anonymous usage analytics are on by default and never include message content;analytics.enabled: falsein the config turns them off. Download Atomic Agent.
If you want more than one tool, our open-source Claude Code alternatives and Cursor alternatives guides compare the rest of the field.
Frequently asked questions
What to check before you pay for Claude Code
Four things trip people up after they pick a plan.
- An API key in your shell. If
ANTHROPIC_API_KEYis set, Claude Code bills the Console, not your plan. Run/statusto see which credential is active. - Usage credits with no cap. Turning them on without a monthly spend limit leaves the bill open. Set the limit when you turn them on.
- Billing period. Only Pro has an annual price. Max and Ultra bill monthly, so there is no discount for committing.
- Credits you cannot use here. The $100 or $200 of API credits in Max and Ultra will not pay for a single Claude Code session, so do not count them when comparing plans.
Plan prices, limits and API rates were read from claude.com/pricing, platform.claude.com and support.claude.com on November 18, 2026, and can change. Per-task costs are our own runs through our agent on OpenRouter, three runs per row, on the tasks described in the linked posts.


