Claude Code pricing in 2026: plans, API costs and limits
Claude Code pricing comes in two forms: a Claude subscription with usage limits, or the Anthropic API billed per token. Claude Code is included in every paid plan: Pro at $20 a month ($200 if you pay for a year), Max at $100, Ultra at $200, Team from $20 a seat, and Enterprise at $20 a seat plus usage at API rates. The Free plan does not include it. On the API the default model, Claude Opus 5.5, costs $4 per million input tokens and $20 per million output tokens. I checked every price here against Anthropic's pages on 22 November 2026.
The plan is not the whole bill once you leave Claude Code working on its own, because it also needs a machine. On Lizard (lizard.build), lizard sandbox create -t claude -s small starts a microVM with Claude Code installed for $0.0162 an hour, billed per second. I work on Lizard, so read that part as a vendor's view. A sandbox on the 7-day trial lives 1 hour at most, so longer runs wait until you start Lizard Pro at $19 a month.
How much does Claude Code cost?
Claude Code costs between $20 and $200 a month for one person on a subscription, or whatever your tokens add up to on the API. There is no separate Claude Code plan. Anthropic's pricing page lists these plans, before tax:
| Plan | Price | Claude Code | Usage | Notes |
|---|---|---|---|---|
| Free | $0 | No | Limited | Chat only |
| Pro | $20 a month, or $200 a year ($17 a month) | Yes | 1x, every 5 hours and every week | Fable only through usage credits |
| Max | $100 a month | Yes | 5x Pro, every 5 hours and every week | Fable for up to half the weekly limit |
| Ultra | $200 a month | Yes | 10x Pro every week, no 5-hour limit on verified accounts | Fable for up to half the weekly limit |
| Team, Standard seat | $25 a seat monthly, $20 billed annually | Yes | More than Pro | 2 to 150 seats |
| Team, Premium seat | $125 a seat monthly, $100 billed annually | Yes | 5x a Standard seat | Seat types can be mixed |
| Enterprise | $20 a seat a month, billed annually, 20 seats minimum | Yes | Billed at API rates | Spend limits per user and per organization |
| API (Claude Console) | No monthly fee | Yes | Per token | No plan limits, API rate limits apply |
One plan name changed, and many pricing guides still use the old one. Anthropic's Ultra article says the Max 20x plan is now called Ultra, with no price change, and that it gives 10 times Pro's weekly usage.
Max, Ultra and Team also come with monthly API credits: $100 on Max, $200 on Ultra, and up to $500 pooled on Team. They do not pay for your coding sessions. Anthropic's API credits article says the credits cover the Claude API, Claude Managed Agents and the Claude Agent SDK, and do not apply to interactive Claude Code in the terminal, IDE, desktop or web.
On the API you pay these rates per million tokens, from Anthropic's API pricing page:
| Model | Input | Cache write (5 min) | Cache read | Output |
|---|---|---|---|---|
| Claude Fable 5.2 | $8 | $10 | $0.20 | $40 |
| Claude Opus 5.5 | $4 | $5 | $0.20 | $20 |
| Claude Sonnet 5.5 | $2 | $2.50 | $0.10 | $10 |
| Claude Haiku 5.5, prompts up to 100,000 tokens | $0.10 | $0.125 | $0.01 | $0.50 |
Claude Code's model configuration docs say the default model is Opus 5.5 on Pro, Max, Ultra, Team, Enterprise and the API.
What are Claude Code's usage limits?
Claude Code's usage limits are a session limit that resets every five hours and a weekly limit, and both are shared with the Claude apps. Anthropic publishes no token or message count for them. Its article on usage limits, read on 22 November 2026, describes them this way:
- The five-hour period starts when you send your first message, and the limit resets in full five hours later.
- The weekly limit applies across all models and resets at a fixed time assigned to your account. Max and Ultra have a second weekly limit for Fable.
- Usage in claude.ai, Claude Code and Claude Desktop counts toward the same limit.
- How fast you use it up depends on the model, the effort level, the features, and the length of the conversation.
Ultra has no five-hour limit once the account is verified. Anthropic verifies Ultra accounts automatically from account and payment history, and until then a temporary limit applies.
When you reach a limit you can wait for the reset, move to a higher plan, or turn on usage credits. Usage credits bill the extra work at standard API rates, with a monthly spend limit you set under Settings > Usage. Anthropic's usage credits article says credits bought on or after 7 December 2026 generally expire 12 months after purchase, and credits bought before that date do not expire. Anthropic also says it may change limits at its discretion, so check /usage in Claude Code to see where you stand.
Subscription or API: which is cheaper for you?
The API is cheaper only for light use. Once you code with Claude most working days, a subscription costs less than the same tokens at API rates, as long as you stay inside its limits. Anthropic's cost documentation gives the reference point: across enterprise deployments Claude Code averages about $13 per developer per active day and $150 to $250 per developer per month, and 90% of users stay below $30 per active day.
A Claude Code bill is mostly cache reads, because the whole conversation is sent again with every request. The example session in Anthropic's docs shows 940,000 cache-read tokens against 5,300 output tokens. I built three workloads with that shape and priced them on Opus 5.5 with five-minute cache writes, the default with an API key. I chose the token counts for the arithmetic and did not measure them.
| Workload, per active day | Cache read | Cache write | Input | Output | Opus 5.5 per day | Days a month | Opus 5.5 per month | Sonnet 5.5 per month |
|---|---|---|---|---|---|---|---|---|
| Light: a few short tasks | 2M | 150k | 10k | 30k | $1.79 | 10 | $17.90 | $8.95 |
| Daily: most of a working day | 15M | 1M | 50k | 250k | $13.20 | 22 | $290.40 | $145.20 |
| Heavy: parallel sessions and agents | 40M | 2.5M | 100k | 600k | $32.90 | 22 | $723.80 | $361.90 |
The daily row works out like this: 15 × $0.20 + 1 × $5 + 0.05 × $4 + 0.25 × $20 = $3.00 + $5.00 + $0.20 + $5.00 = $13.20, which is close to Anthropic's average.
For light use, the API at $17.90 on Opus 5.5 or $8.95 on Sonnet 5.5 beats Pro at $20. Pro wins if you also use Claude chat, since the $20 covers both.
For daily use, $290.40 of API tokens compares with $100 for Max and $200 for Ultra. Anthropic does not publish how many tokens a plan covers, so nobody can promise this workload fits in Max. Start on Max and watch the bars in /usage for two weeks. If you keep hitting the weekly limit, Ultra doubles the weekly usage for another $100, while usage credits bill the overflow at API rates.
For heavy use, $723.80 at API rates is more than three times Ultra's $200. For one person I would take Ultra and set a spend limit on usage credits for the overflow. Parallel work multiplies tokens: Anthropic's docs say agent teams use about 7 times the tokens of a standard session when teammates run in plan mode. Our guide to Claude Code agent teams covers that setup.
What does it cost to run Claude Code in the cloud?
Running Claude Code in the cloud adds between nothing and about $63 a month for compute, depending on where it runs. The tokens are billed the same way in every case, through your plan or your API key.
| Where it runs | Compute price | 8 hours a day × 22 days (176 hours) | How tokens are paid |
|---|---|---|---|
| Claude Code on the web | No separate charge | $0 | Your subscription only |
| GitHub Actions, Linux 2-core runner | $0.006 a minute | $63.36 | API key or subscription token |
| Lizard Sandboxes, Small | $0.0162 an hour | $2.85 | API key or subscription token |
Claude Code on the web is the cheapest if you have a subscription. Anthropic's documentation says a cloud session counts toward your plan's usage limits and "there's no separate charge for the cloud VM", which has 4 vCPUs, 16 GB of RAM and 30 GB of disk. It is available on Pro, Max, Ultra and Team, and on some Enterprise seats. Cloud sessions always use subscription credentials, so an API key does not work there, and parallel sessions use up the same limits faster.
GitHub Actions bills the runner by the minute. A standard 2-core Linux runner is $0.006 a minute in GitHub's runner pricing, so 176 hours is 10,560 minutes, or $63.36. GitHub's Actions billing page says standard runners are free in public repositories, and each GitHub plan includes some usage for private ones. See our GitHub Actions pricing breakdown. The action authenticates with an API key or with a subscription token from claude setup-token.
Your own VM or sandbox gives you a machine you control. On Lizard Sandboxes a Small (2 vCPU, 4 GB RAM, 20 GB disk) is $0.0162 an hour, so 176 hours is $2.85. That amount comes out of the $19 of usage included in Lizard Pro, so if nothing else on the account uses it, the bill stays at $19 a month. Three Small sandboxes in parallel for the same hours use $8.55. Billing runs per second from create to pause or delete, idle time included. A paused sandbox has no compute charge and pays $0.14 per GB-month for its used disk.
lizard sandbox create -t claude -s small --timeout 8h
lizard sandbox prompt <sandbox-id> --agent claude "run the test suite and fix what fails"
lizard sandbox rm <sandbox-id>Pass -s small, because a create with no size is Medium at $0.0324 an hour on a paid plan. Pass --timeout too: the Lizard CLI gives a new sandbox 5 minutes by default. On the trial every sandbox is deleted 1 hour after it starts, so an 8-hour run needs the first paid month of Lizard Pro: start it in Billing or with lizard billing start-now. Claude's tokens are still billed by Anthropic, through the Claude subscription token or API key you connect to the project with lizard agents add.
I ran this on 22 November 2026. The claude template had Claude Code 2.1.286, and a small task (write a function and three tests, then run them) finished in about 7 seconds. Claude Code reported $0.0327 of tokens at list price for it. Seven seconds of a Small sandbox is $0.00003. For this task the tokens cost about a thousand times more than the machine. It is one small run, so take it as a sense of scale: the compute line stays small unless a sandbox sits idle for days.
For isolation choices, see our Claude Code sandbox guide. For scripted runs, see Claude Code headless. If you would rather have Anthropic host the agent loop, Claude Managed Agents pricing is $0.08 per session-hour plus tokens.
How do you track and cut Claude Code costs?
Run /usage to see what a session cost and how much of your plan is left. /cost is an alias for it. On a subscription it shows your plan's usage bars and what used them. On the API it shows the session's dollar total, computed locally at list price, and the authoritative bill is in the Claude Console.
These habits come from Anthropic's cost documentation, in rough order of effect:
- Clear the context between unrelated tasks with
/clear. A stale conversation is sent again on every request. - Use Sonnet for routine work with
/model. Sonnet 5.5 costs half of Opus 5.5 per token, which takes the daily workload above from $290.40 to $145.20 a month. - Lower the effort level with
/effortfor simple tasks. Thinking tokens are billed as output tokens. - Keep
CLAUDE.mdunder 200 lines. Skills load only when used, so workflow instructions belong there. - Set
model: haikufor simple subagents, and keep agent teams small. - Cap unattended runs:
claude -p --max-budget-usd 5 "..."stops a scripted run at $5, and--max-turnslimits iterations in GitHub Actions.
Teams on the API can set workspace spend limits in the Claude Console. Fast mode goes the other way: it costs 2 times the standard price on Opus 5.5 and Fable 5.2, so leave it off for background work.
FAQ
Is Claude Code free? No. Claude's Free plan does not include Claude Code. The cheapest ways in are the Pro plan at $20 a month, or an API key where you pay only for the tokens you use.
Is Claude $20 a month? Claude Pro is $20 a month billed monthly, or $200 a year, which is about $17 a month. Pro includes Claude Code with the baseline usage limits.
Is the $100 Claude plan worth it? Max at $100 a month gives 5 times Pro's usage every five hours and every week. It is worth it if you hit Pro's limits most weeks, or if the same work would cost more than $100 a month at API rates.
How much does Claude Code cost per month on the API? Anthropic reports $150 to $250 per developer per month across enterprise deployments, and about $13 per active day. The light workload priced above comes to $8.95 a month on Sonnet 5.5 and $17.90 on Opus 5.5.
Do the API credits on Max and Ultra pay for Claude Code? No. The $100 and $200 monthly API credits cover the Claude API, Claude Managed Agents and the Claude Agent SDK. They do not apply to interactive Claude Code or to usage credits after you hit a plan limit.
What is the difference between Claude and Claude Code? Claude is the assistant in the web, desktop and mobile apps. Claude Code is the coding agent that works in your terminal, IDE or a cloud session, reading files and running commands. Both draw on the same plan limits.
What happens when I hit a Claude Code limit? The message tells you when the limit resets. You can wait, upgrade, or turn on usage credits, which bill further work at standard API rates up to a spend limit you set.
Build with AI. Ship with Lizard
You don't need a platform team to go live. Your whole cloud, one CLI command away.
- Services
- —
- Add-ons
- —
- Deployments
- —
- Sandbox starts
- —