Yes, the $20 Pro plan includes Claude Code. Anthropic's pricing page lists "Includes Claude Code" on Pro, which costs $17/month billed annually or $20 month-to-month. The free plan does not include Claude Code at all.
The other way to pay is per token. Anthropic Claude API pricing, per million input/output tokens: Claude Sonnet 5 is $2/$10, Claude Opus 5 is $5/$25, Claude Haiku 4.5 is $1/$5, and Claude Fable 5 is $10/$50. Cache reads bill at 0.1x base input. The Batch API is 50% off both directions.
Below: every Claude subscription plan price, how the 5-hour session and weekly caps work, the full per-token rate table with prompt caching math, and the breakeven where a Max subscription beats pay-as-you-go. All numbers verified against claude.com/pricing, Anthropic's support articles, and platform.claude.com on August 12, 2026.
Claude Subscription Plans: Every Tier and Price
There are six Claude tiers. Free, Pro, Max 5x, and Max 20x are individual plans; Team and Enterprise are seat-based. The Claude Pro price is $17/month billed annually ($200 up front) or $20 month-to-month, and Pro is the lowest tier that includes Claude Code.
| Plan | Price | Claude Code | Usage |
|---|---|---|---|
| Free | $0 | Not included | Chat only |
| Pro | $17/mo annual, $20 monthly | Included | At least 5x free per session, plus a weekly limit |
| Max 5x | $100/mo | Included | 5x more usage per session than Pro |
| Max 20x | $200/mo | Included | 20x more usage per session than Pro |
| Team standard | $20/seat annual, $25 monthly | Included | Per-seat limits |
| Team premium | $100/seat annual, $125 monthly | Included, plus Claude Cowork | Higher per-seat limits |
| Enterprise | Negotiated seat price | Included | Seat price + usage billed at API rates |
| API key (Console) | Pay per token | Works with any Console account | Sonnet 5 $2/$10, Opus 5 $5/$25 per MTok |
Anthropic defines the paid Claude tiers relative to each other rather than in messages or tokens. Pro provides "at least five times the usage per session compared to our free service." Max 5x provides five times more usage per session than Pro, and Max 20x provides twenty times more. Enterprise pricing is not published: it is a negotiated seat price plus usage billed at API rates.
On Pro and Max, Claude Code and the Claude apps draw from the same quota: one five-hour session limit plus a weekly limit across all models. Heavy chat use during the day leaves fewer Claude Code turns in the evening. Run /usage or /status inside Claude Code to see where you stand. Full mechanics in our Claude Code usage limits guide.
Anthropic Claude API Pricing Per Token
Skip the subscription, create a Console account, and Claude Code bills per token. No session caps, no weekly caps, spend limits set in the Console. Current first-party rates per million tokens:
| Model | Input | Output | Cache Read | Batch (in/out) |
|---|---|---|---|---|
| Claude Haiku 4.5 | $1.00 | $5.00 | $0.10 | $0.50 / $2.50 |
| Claude Sonnet 5 | $2.00 | $10.00 | $0.20 | $1.00 / $5.00 |
| Claude Sonnet 4.6 | $3.00 | $15.00 | $0.30 | $1.50 / $7.50 |
| Claude Opus 5 | $5.00 | $25.00 | $0.50 | $2.50 / $12.50 |
| Claude Opus 4.8 | $5.00 | $25.00 | $0.50 | $2.50 / $12.50 |
| Claude Fable 5 | $10.00 | $50.00 | $1.00 | $5.00 / $25.00 |
Four details third-party pricing pages get wrong:
- Sonnet 5 costs $2/$10, permanently. The $2/$10 rate launched as introductory pricing through August 31, 2026. Anthropic has since made it the standard price and cancelled the scheduled increase to $3/$15. Pages quoting $3/$15 for Sonnet 5 are quoting a price that will never take effect.
- No long-context surcharge. Claude 4.6 and later models include the full 1M-token context window at standard pricing. A 900k-token request bills at the same per-token rate as a 9k one. The old >200K premium tier is gone.
- Every Opus since 4.5 costs the same: Opus 4.5, 4.6, 4.7, 4.8, and Opus 5 are all $5/$25 per MTok.
- Batch is 50% off both directions and stacks with caching, but it is async only, so it fits CI jobs and bulk refactors, not interactive Claude Code sessions.
Cache writes cost 1.25x base input at the 5-minute TTL and 2x at the 1-hour TTL. Full rate tables including cache writes and deprecated models in our Anthropic API pricing breakdown.
Does the $20 Pro Plan Include Claude Code?
Yes. The $20 Pro plan includes Claude Code. The line item on Anthropic's pricing page reads "Includes Claude Code", and the setup docs list Pro as the minimum subscription tier: "The free Claude.ai plan does not include Claude Code access." Annual billing drops Pro to $17/month.
What Pro buys you in practice: Claude Code in the terminal, VS Code, JetBrains, and the desktop app, with usage metered against the plan's five-hour session limit and weekly caps, shared with Claude.ai chat. Anthropic stopped publishing fixed messages-per-window or hours-per-week figures, so any page quoting "45 messages per 5 hours" is repeating stale 2025 numbers. The honest answer is: Pro covers light daily coding; if you hit the session cap most days, that is the signal to move to Max 5x.
Claude Code also runs on Amazon Bedrock, Google Vertex AI, and Microsoft Foundry with no Anthropic subscription, billed through your cloud provider.
How Limits Work: 5-Hour Sessions Plus Weekly Caps
Every subscription meters usage two ways:
- Five-hour session limit. Usage accrues against a rolling session window that resets every five hours. Hit the cap and you wait for the reset.
- Weekly limit. Pro and Max both carry a weekly usage limit that applies across all models, on top of the session limit. It resets at a fixed time each week assigned to your account, not on a rolling window.
Both pools are shared between the Claude apps and Claude Code. Check consumption in Settings > Usage, which shows progress bars for the current session and the week, or run /usage and /status inside Claude Code. API key usage is a separate billing universe and never touches these caps.
Pro, Max 5x, and Max 20x subscribers can enable usage credits to keep working past the included limit. Usage past the cap then bills at standard API rates, with a $2,000 daily redemption cap.
Max 5x vs Max 20x
Anthropic defines the Max tiers relative to Pro: Max 5x ($100/month) provides "5 times more usage per session than the Pro plan", Max 20x ($200/month) provides 20 times more.
| Max 5x | Max 20x | |
|---|---|---|
| Price | $100/month | $200/month |
| Usage per session vs Pro | 5x | 20x |
| Weekly limit | All models, fixed weekly reset | All models, fixed weekly reset |
| Usage credits past the cap | Optional, at API rates | Optional, at API rates |
| Daily cost equivalent | $3.33/day | $6.67/day |
Which one you need depends on whether the binding constraint is the session cap or the weekly cap. If Pro stops you mid-afternoon, Max 5x removes that ceiling for most single-developer workloads. Max 20x exists for people running Claude Code most of the working day or driving multiple parallel sessions and subagents.
Team and Enterprise Pricing
Team comes in two seat types. Both include Claude Code; premium seats add Claude Cowork and higher limits.
| Standard Seat | Premium Seat | |
|---|---|---|
| Annual billing | $20/seat | $100/seat |
| Monthly billing | $25/seat | $125/seat |
| Claude Code | Included | Included |
| Claude Cowork | No | Included |
A 10-person team on premium seats runs $1,000/month annual or $1,250 monthly. Enterprise drops the published price list entirely: you negotiate a seat price and usage beyond it bills at standard API rates. Full seat-mix analysis in our Claude Code team pricing guide.
Prompt Caching: What Claude Code Tokens Actually Cost
Claude Code resends your system prompt, CLAUDE.md, and conversation history on every turn. Without caching that would be ruinous. With caching, a cache read costs 0.1x base input: $0.20/MTok on Sonnet 5, $0.50/MTok on Opus 5. A 5-minute cache write costs 1.25x base ($2.50 Sonnet 5, $6.25 Opus 5), so caching pays for itself after a single hit. The 1-hour TTL costs 2x base to write and needs two hits to break even.
Worked example on Sonnet 5: a turn that sends 100k input tokens where 90k are cache reads costs 10,000 x $2 plus 90,000 x $0.20 per MTok, or $0.038, versus $0.20 fully uncached. That is an 81% cut on input, which is why long Claude Code sessions cost far less than naive input-tokens-times-rate math suggests. Claude Code manages cache breakpoints automatically; you do not configure anything.
Subscription vs API: The Breakeven Math
Divide the plan price by 30 and compare against your daily API burn:
| Plan | Monthly | Per day | API beats it when |
|---|---|---|---|
| Pro | $20 | $0.67 | You spend under ~$0.67/day in tokens |
| Max 5x | $100 | $3.33 | You spend under ~$3.33/day |
| Max 20x | $200 | $6.67 | You spend under ~$6.67/day |
To estimate your daily burn, run a few representative days on an API key and read the totals from the Console (or watch /cost in Claude Code). With caching active, output tokens usually dominate: at Sonnet 5's $10/MTok, a day producing 200k output tokens is $2 in output alone before input. Anyone sustaining that daily is close to the Max 5x breakeven. Bursty users, one heavy week a month, stay cheaper on API.
Common pattern: a Pro or Max subscription for interactive work, plus an API key for CI and batch jobs where the 50% Batch discount applies. This split still matters because headless runs on a subscription draw from the same session and weekly limits as your interactive work, as the next section explains.
Agent SDK and Headless Usage on a Subscription
Anthropic announced that from June 15, 2026 non-interactive usage would draw from a separate monthly Agent SDK credit instead of your session limits. On that date, Anthropic paused the change.
What applies today: Claude Agent SDK projects, claude -p headless runs, and third-party apps authenticating with your subscription all still draw from your subscription's usage limits. The announced monthly credit is not available. Anthropic states it is working to update the plan and will share an update before anything takes effect.
The practical consequence has not changed: a nightly agent or CI review bot running on a Max plan competes for the same five-hour window you need for interactive work. If that matters, run automation on a Console API key instead, where there are no session caps and batch jobs get the 50% Batch discount.
Claude Code vs Cursor vs GitHub Copilot: Pricing
Entry prices as of June 2026, checked against each vendor's pricing page:
| Tier | Claude Code | Cursor | GitHub Copilot |
|---|---|---|---|
| Free | No Claude Code on free plan | Hobby (limited) | $0, 2,000 completions/mo |
| Entry | $20/mo Pro ($17 annual) | $20/mo Pro | $10/mo Pro |
| Mid | $100/mo Max 5x | $39/mo Pro+ (Copilot) | $39/mo Pro+ |
| Top | $200/mo Max 20x | Ultra tier (see cursor.com) | $100/mo Max |
| Teams | $20-25 std / $100-125 premium per seat | $40/user/mo | Via sales |
Two caveats. GitHub paused new signups for paid individual Copilot plans as of June 2026, so the $10 entry point is not currently purchasable. And raw plan price is the wrong comparison axis anyway: Claude Code is a terminal agent that edits and runs code autonomously, Cursor is an IDE, Copilot is completions plus chat. Capability comparisons live in Claude Code vs Cursor and Claude Code vs Copilot; cross-tool cost modeling in AI coding costs.
How to Reduce Your Claude Code Bill
Whether you are stretching a Pro session cap or an API budget, the lever is the same: fewer tokens per task.
Write a CLAUDE.md under 200 lines
Anthropic's guidance: keep CLAUDE.md under 200 lines with verifiable instructions. It loads every turn, so every line is recurring input cost, but a good one eliminates exploratory file reads that cost far more.
Match the model to the task
Sonnet 5 is $2/$10 per MTok vs Opus 5 at $5/$25, so Opus costs 2.5x per token. Switch with /model. Reserve Opus for multi-file reasoning; Haiku 4.5 at $1/$5 handles mechanical edits.
Start fresh sessions per task
Context resends every turn. Cache reads soften this to 0.1x input, but cache writes and growing history still compound. Discrete tasks in discrete sessions beat one marathon thread.
Use subagents for exploration
A subagent reads 30 files in its own context and returns a summary; only the summary lands in your main session. Parent context stays small, so the exploration tokens never compound across the rest of your turns.
FAQ
How much does Claude Code cost?
Claude Code is included in Pro ($17/month annual, $20 monthly), Max 5x ($100/month), Max 20x ($200/month), Team ($20-25/seat standard, $100-125/seat premium), and Enterprise. With an API key you pay per token: Sonnet 5 at $2/$10 per million input/output tokens, Opus 5 at $5/$25, Haiku 4.5 at $1/$5, Fable 5 at $10/$50.
Is Claude Code free?
No. The free Claude plan does not include Claude Code access, so you need a Pro, Max, Team, Enterprise, or Console (API) account. The cheapest entry point is Pro at $17/month billed annually, or $20 month-to-month.
What are the Claude subscription plans?
Six tiers: Free at $0, Pro at $17/month annual or $20 monthly, Max 5x at $100/month, Max 20x at $200/month, Team at $20-25/seat standard or $100-125/seat premium, and Enterprise at a negotiated seat price plus usage at API rates. Every tier from Pro up includes Claude Code; Free does not.
What is the difference between Pro and Max?
Price and headroom. Max 5x ($100/month) gives 5 times more usage per session than Pro; Max 20x ($200/month) gives 20 times more. Both carry a weekly limit across all models on top of the five-hour session. Anthropic does not publish exact message or token counts. If you hit the Pro session cap most working days, Max 5x is the upgrade.
Do Claude Code and Claude chat share usage limits?
Yes. Pro and Max usage is shared across the Claude apps and Claude Code under the same five-hour session limit and weekly limit. Track it with /usage and /status. API usage is billed separately and does not affect subscription quotas.
Should I use a subscription or API pricing?
Max 5x costs $3.33/day, Max 20x $6.67/day. If your measured API spend exceeds those figures most days, subscribe. If usage is bursty or under roughly $1/day, pay-as-you-go API wins. Many developers run both: subscription for interactive sessions, API key for batch jobs at the 50% Batch discount.
Is Claude Code cheaper than Cursor?
At entry, both Pro plans cost $20/month (Claude Pro drops to $17 annual). For teams, Cursor charges $40/user/month while Claude Team standard seats are $20-25 and premium seats $100-125. The tools do different jobs, so compare capability per dollar in our Claude Code vs Cursor comparison.
Does Claude Code charge extra for long context?
No. Claude 4.6 and later models include the full 1M-token context window at standard per-token pricing. There is no surcharge tier above 200K tokens.
What is Anthropic Claude API pricing per million tokens?
Claude Fable 5 is $10 input / $50 output. Claude Opus 5 is $5/$25. Claude Sonnet 5 is $2/$10. Claude Haiku 4.5 is $1/$5. Cache reads bill at 0.1x base input, cache writes at 1.25x (5-minute TTL) or 2x (1-hour TTL), and the Batch API takes 50% off both directions.
