Claude Code costs $20/month on the Pro plan, $100 or $200/month on Max, or pay-per-token via the Anthropic API. Team plans run $20 to $125/seat/month, and Enterprise scales with usage. The Free Claude tier does not include Claude Code, but the Claude for Open Source program offers six months of Max 20x free for qualifying maintainers, a $1,200 value.
That short answer is also the long story of Claude Code pricing in 2026. Anthropic shipped three policy changes in 60 days and briefly tried to remove Claude Code from the Pro plan altogether in April. This guide walks through every plan, every API rate, the real numbers from Anthropic’s own enterprise data, and how to keep your bill from blowing up. You will know which option fits you by the end.
The Key Takeaways
- Claude Code Pro is $20/month ($17/month annual), Max is $100 or $200/month, and Team Premium is $100/seat/month annually for full Claude Code access
- The Free Claude plan does not include Claude Code; you need Pro, Max, Team, Enterprise, or API credits
- API rates start at $1/$5 per million tokens for Haiku 4.5 and rise to $5/$25 for Opus 4.7
- Average enterprise spend is $13 per developer per active day, or $150 to $250 per developer per month
- Prompt caching can drop input costs to 10% of standard rates; the Batch API cuts both input and output by 50%
How much does Claude Code cost?
Claude Code is billed three ways. You can pay via a Claude subscription (Pro, Max, Team, or Enterprise), pay per token via the API, or use the Claude for Open Source program for free if you qualify. Most developers start on Pro at $20/month and move up only if they hit the limits.
Here is the full plan landscape as of May 2026.
| Plan | Monthly | Annual | Claude Code Included? | Models | Best For |
|---|---|---|---|---|---|
| Free | $0 | $0 | いいえ | Sonnet 4.6 only, basic chat | Trying Claude for chat |
| Pro | $20 | $17/mo ($204/yr) | Yes | Sonnet 4.6, Opus 4.7 | Solo devs, side projects, occasional Claude Code use |
| Max 5x | $100 | $100/mo (no annual discount) | Yes | Sonnet 4.6, Opus 4.7, priority access | Daily Claude Code users, full-time freelancers |
| Max 20x | $200 | $200/mo | Yes | Same as Max 5x, 20x usage | Heavy agentic workflows, no rate-limit ceiling |
| Team Standard | $25/seat | $20/seat | Yes (smaller usage) | Sonnet 4.6, Opus 4.7 | Teams using mostly Claude chat |
| Team Premium | $125/seat | $100/seat | Yes (full) | All models, priority | 5+ developer teams using Claude Code daily |
| Enterprise | $20/seat + usage | Custom | Yes | All, with SCIM, audit logs, HIPAA | 150+ orgs with compliance needs |
| API (pay-per-token) | None | None | Yes (separate billing) | All Claude models | Burst usage, bots, prototypes |
Annual Pro at $17/month saves $36/year versus monthly billing. Team Premium annual at $100/seat is the same price as Max 5x, with the bonus of admin controls, SSO, and shared usage pools.
Was Claude Code removed from the Pro plan? The April 2026 confusion
Short answer, no, Claude Code is back on Pro and that is the official policy on the live pricing page right now. But for several days in late April 2026, Anthropic ran what its Head of Growth called a “small test on ~2% of new prosumer signups” that gated Claude Code behind Max only. Screenshots leaked, Reddit and Hacker News exploded, and the change was reverted within hours, as documented in Simon Willison’s blog post.
The takeaway is twofold. First, your $20 Pro subscription still includes Claude Code as of May 2026. Second, Anthropic has tested gating it before, so the price you see today is not guaranteed forever. Lock in annual billing if Pro is essential to your workflow.
Claude Code plan breakdown
Each tier has a different ceiling and a different audience. The right pick is almost always either Pro or Max 5x, with API as a fallback for spiky workloads.
Pro plan ($20/month)
Pro at $20/month ($17/month annual) is where most solo developers live. It includes Claude Code in the terminal, web, and desktop, access to both Sonnet 4.6 and Opus 4.7, and a token budget that handles a few focused coding sessions a day. Anthropic does not publish exact Pro token numbers publicly, but community instrumentation puts it at roughly 44,000 tokens per 5-hour window, enough for 10 to 40 prompts depending on context size.
Pro’s catch is the rate limit. If you run agentic loops or open three Claude Code sessions at once, you will hit the wall before lunch. That is when Max stops being optional.
Plan Max 5x ($100) and Max 20x ($200)
Max 5x at $100/month gives you five times the Pro usage and priority access during peak demand. It is the sweet spot for full-time developers who use Claude Code as their default coding partner. Anthropic’s own data says 90% of Claude Code users stay under $30 per active day, which Max 5x covers comfortably.
Max 20x at $200/month is the no-rate-limit tier. You get 20 times Pro capacity, which one developer in a public Reddit teardown calculated as roughly $5,000 of equivalent API compute if you actually use it. If you are running multiple Claude Code instances, agent teams, or all-day pair programming, this is cheaper than the API.
Plan Team Standard and Team Premium
Team Standard at $20/seat annually ($25/seat monthly) is built around Claude chat with limited Claude Code. Team Premium at $100/seat annually ($125/seat monthly) is the developer tier with full Claude Code parity to Max 5x, plus admin controls, SSO, and shared usage pools. The minimum is 5 seats, so the floor is $500/month.
If your team is mostly using Claude for writing and analysis with one or two coders, Team Standard plus a single Max seat is often cheaper than upgrading everyone to Premium.
Enterprise
Enterprise starts at $20/seat plus scaled usage, with SCIM provisioning, audit logs, HIPAA-readiness, and a compliance API. There is no public price ceiling because enterprise contracts are negotiated. If your org needs custom rate limits, dedicated support, or volume discounts, contact Anthropic sales rather than stacking Max seats.
Claude Code API pricing per token
If you are running Claude Code in CI, in a bot, or in workloads that spike unpredictably, the API is often cheaper than a fixed subscription. API access bills purely on tokens, with discounts for prompt caching and batch processing.
| Model | Input ($/MTok) | Output ($/MTok) | Cache Read ($/MTok) | Notes |
|---|---|---|---|---|
| Claude Opus 4.7 | $5 | $25 | $0.50 | New tokenizer uses up to 35% more tokens than older models |
| Claude Opus 4.6 | $5 | $25 | $0.50 | Premium reasoning, supports Fast mode |
| Claude Sonnet 4.6 | $3 | $15 | $0.30 | Default coding model in Claude Code |
| Claude Haiku 4.5 | $1 | $5 | $0.10 | Cheapest, good for simple subagent tasks |
MTok = million tokens. Output is always 5x more expensive than input, which is why Claude Code’s auto-compaction matters so much.
The hidden gotcha is Opus 4.7’s new tokenizer. Per Anthropic’s pricing docs, Opus 4.7 may use up to 35% more tokens for the same text compared to older models. Your sticker price is the same as Opus 4.6, but your real bill goes up 35% on Opus-routed tasks if you do not adjust. Sonnet 4.6 keeps the older, leaner tokenizer.
Two discounts can drop your bill dramatically. Prompt caching lets you reuse system prompts and large contexts at 10% of the input price, so cached reads pay off after a single hit on the 5-minute cache. The Batch API cuts both input and output by 50%, suitable for non-time-sensitive workloads like overnight refactors. Both stack with each other.
Real-world Claude Code costs
Anthropic publishes real numbers in its cost-management documentation. Across enterprise deployments, average Claude Code spend is $13 per developer per active day, or $150 to $250 per developer per month, with 90% of users staying under $30 per active day. Those are full-time professional figures; solo developers spend less.
Here is what real spend looks like by user type.
| User type | Daily token use | Daily $ on API | Monthly $ on API | Recommended plan |
|---|---|---|---|---|
| Light (occasional bug fixes, side projects) | 200K-500K | $2 to $5 | $50 to $100 | Pro $20 |
| Medium (daily features, multi-file edits) | 1M-2M | $6 to $12 | $130 to $260 | Max 5x $100 |
| Heavy (agentic loops, multi-instance) | 3M-8M+ | $20 to $60+ | $400 to $1,200+ | Max 20x $200 |
| Team (5 devs, mixed usage) | 10M-25M | $50 to $150 | $1,000 to $3,000 | Team Premium $500+ |
Subscriptions almost always win on Claude Code at professional volume. One developer who instrumented their network usage and shared it on Reddit reported 10 billion tokens over 8 months. Equivalent API cost would have been over $15,000; their actual Max bill was around $800, a 93% saving.
The math reverses for spiky usage. If you only run Claude Code two days a week, the API plus a free Claude account will likely beat any subscription.
How to get Claude Code free or cheap
There are three paths to Claude Code without paying full sticker.
The Claude for Open Source program is the biggest one. Anthropic launched it in early 2026, and qualifying open-source maintainers get six months of Max 20x free, a $1,200 value. You apply via Anthropic’s Open Source page with your GitHub history. Eligibility leans on hard numbers. Maintainers of repos with 5,000+ GitHub stars or libraries with 1 million+ monthly NPM downloads qualify, provided they have made commits, releases, or PR reviews within the last three months. Maintainers of ecosystem-critical projects can apply outside those thresholds, and Anthropic accepts up to 10,000 contributors.
New API users get free starter credits (reported at around $5, no credit card required), enough to run Claude Code for a few hours of light coding. It is the cheapest way to actually try the CLI without committing to a $20/month subscription. After the credits are spent, you decide whether to top up the API balance or move to Pro.
Local alternatives are the third path. Tools like OpenCode and Ollama-routed proxies let you point a Claude Code-style CLI at locally-run models like Qwen2.5-Coder or DeepSeek-Coder. Speed and quality are below the real Claude Code, but cost is $0 plus electricity. If you are a hobbyist or you have GPU hardware sitting idle, this is the genuine free path.
Subscription vs API: which saves you money?
The break-even between a subscription and the API depends on how many hours per day you actually use Claude Code. Here is a clean rule of thumb based on the Anthropic per-developer-day numbers.
If you use Claude Code less than one focused hour per day, the API plus a free Claude account is cheapest. You will burn maybe $1 to $3 per day, which is under the $20 Pro monthly fee.
If you use it one to four hours per day, Pro at $20/month is the right call. Anthropic’s data says median active users spend $6 to $13 per active day on equivalent API, so Pro pays for itself in two to four days.
If you use it all day, every workday, Max 5x at $100/month matches enterprise averages. You stop watching the meter, and the per-day Anthropic average ($13) times 20 workdays equals $260 of API equivalent for a $100 fee.
If you run multiple instances or agent teams, Max 20x at $200/month is the only sane choice. Solo developers rarely need it. Teams almost always do.
How to cut your Claude Code bill
Even on Max 20x, there are cost-control levers worth pulling. Anthropic’s docs say teams that apply the optimization playbook see 40% to 85% reductions in token usage, and several of the tactics also speed Claude Code up.
The biggest win is prompt caching. Cached reads cost 10% of input price, so any system prompt or document you reuse should be cached. Claude Code does this automatically for CLAUDE.md and recently-read files, but you can extend it by keeping conversation history short and stable.
The second-biggest win is picking the right model. Sonnet 4.6 handles the vast majority of coding tasks at $3/$15 per million tokens, versus Opus 4.7’s $5/$25. Use Opus only for hard architectural decisions, multi-step reasoning, or critical refactors. Run /model to switch mid-session, and configure subagents to use Haiku 4.5 for simple lookups.
The third lever is proactive context management. Run /clear when you switch tasks instead of letting stale context pile up. Use /compact to summarize long sessions. Run /usage to check token spend live. The /cost command shows API session cost as a local estimate; on Max or Pro it is informational, since you are not billed per call.
Other cost levers worth knowing. The Batch API halves token costs on non-urgent work like overnight refactors. Plan mode (Shift+Tab) makes Claude propose an approach before writing code, preventing expensive wrong directions. Hooks can pre-filter verbose output (a 10,000-line log becomes 50 lines of grep matches before Claude ever sees it). Skills load on demand instead of bloating your CLAUDE.md.
For teams, set workspace spend limits in the Claude Console. Several large enterprises run LiteLLM as a separate cost tracker on top of Bedrock or Vertex deployments. Both are documented in Anthropic’s cost docs.
Claude Code vs Cursor vs GitHub Copilot pricing
Claude Code is not the only paid coding agent. Here is how it compares to the two biggest competitors plus OpenAI’s Codex.
| Tool | Entry plan | Top individual plan | Free tier | Flagship model |
|---|---|---|---|---|
| Claude Code | $20/mo (Pro) | $200/mo (Max 20x) | API $5 starter, OSS program | Opus 4.7, Sonnet 4.6 |
| Cursor | $20/mo (Pro) | $200/mo (Ultra) | Hobby tier (limited) | Bring-your-own or Cursor’s own |
| GitHub Copilot | $10/mo (Individual) | $39/mo (Pro+) | 30-day trial | GPT-5.5, Claude, Gemini |
| OpenAI Codex | $20/mo (ChatGPT Plus) | $200/mo (Pro) | API credits only | GPT-5.5 Codex |
Claude Code is mid-priced at the entry tier but highest at the top end because Max 20x carries serious capacity. GitHub Copilot is the budget pick at $10/month, but its agentic capabilities lag both Claude Code and Cursor for real refactors. Cursor’s per-token pricing lets you use Claude or GPT models inside Cursor’s editor at API rates plus a small markup. OpenAI Codex on Mac added desktop computer use in April 2026, putting it in direct competition with Claude Code’s terminal-first workflow.
The honest verdict is Claude Code wins on agentic depth, Cursor wins on IDE polish, Copilot wins on price, and Codex wins if you live inside ChatGPT. Pick the one that matches how you already code.
Should you pay for Claude Code?
For solo developers writing daily, Pro at $20/month is the right starting point. You will pay back the subscription in your first focused coding session. If you find yourself hitting limits twice a week or more, jump to Max 5x at $100/month without overthinking it; the payback math holds at moderate professional volume.
For teams of five or more developers, Team Premium annual at $100/seat beats stacking individual Max plans because of admin controls, SSO, and shared usage. For everyone else, the API with a $5 starter credit is genuinely the cheapest first step.
If you want Claude for chat, files, and writing on your Mac rather than coding, you do not need Claude Code at all. Fello AI gives you Claude alongside ChatGPT, Gemini, Grok, and DeepSeek in a single Mac-native app for $9.99/month, which is half the price of Pro and covers five model families instead of one. For the pure chat experience compare it against the full Claude pricing guide and how Claude on the Mac stacks up against ChatGPT and Gemini before committing.
For everything else, including pricing comparisons across the full AI tool landscape, our complete AI pricing comparison for 2026 covers every major model alongside Claude. If you want to use images with Claude Code specifically, our guide on Claude Code images walks through the supported workflows on every OS.
FAQ
Is Claude Code free?
No. Claude Code is not on the free Claude plan. The cheapest paid path is Pro at $20/month, and the cheapest free path is the Claude for Open Source program, which gives qualifying maintainers six months of Max 20x free. New API users also get free starter credits (reported at around $5).
How much does Claude Code cost per month?
Pro is $20/month ($17/month annual), Max is $100 or $200/month, and Team Premium is $100 or $125/seat/month. The API has no monthly minimum and bills per token. Average enterprise usage runs $150 to $250/developer/month per Anthropic’s own data.
Is Claude Code worth $100 a month?
For full-time developers who hit Pro rate limits regularly, yes. Max 5x at $100/month gives you roughly 5x the Pro usage plus priority access during peak demand. The break-even versus equivalent API cost is around two to three hours of focused use per day.
How is Claude Code billed?
Through your existing Claude subscription (Pro, Max, Team, or Enterprise) for fixed monthly billing, or through the Anthropic API for pay-per-token billing. Subscriptions count Claude Code usage against the same shared token budget as Claude chat.
What is the cheapest way to use Claude Code?
The Claude for Open Source program at $0 for six months if you qualify, then free API starter credits (reported at around $5) for new accounts, then Pro at $17/month if you commit to annual billing. Local alternatives like Ollama-routed CLIs cost nothing but trade quality and speed for the savings.




