Claude Code pricing explained (2026): Pro, Max, limits and API billing
Updated 2026-10-17 · 6 min read
ANTHROPIC_API_KEY environment variable: if it's set, Claude Code bills the API instead of your plan.Last checked 2026-10-17 against claude.com/pricing (opens in a new tab).
| Tool | What it is | Pricing | Usage limits | Link |
|---|---|---|---|---|
| Claude Code checked 2026-10-30 | Terminal/IDE coding agent. A powerful agent that works across a whole repo from your terminal or desktop app. Great for agents and big refactors. | Included in Claude Pro $20 ($17/mo annual) · Max $100 (5x Pro) · Ultra $200 (10x Pro weekly) source (opens in a new tab) | Rolling 5-hour session limit + weekly limit, shared with Claude chat. Max gives 5x Pro's usage every 5 hours and every week; Ultra gives 10x Pro's weekly usage, with no 5-hour limit for verified accounts (weekly limits still apply). source (opens in a new tab) | Visit Claude Code (opens in a new tab) |
Last checked: 2026-10-17. Vendor pricing page: claude.com/pricing (opens in a new tab). Prices exclude tax and may change.
Plans that include Claude Code
| Plan | Price shown | Claude Code | Usage |
|---|---|---|---|
| Free | $0 | No | n/a |
| Pro | $20/month, or $17/month with annual billing ($200 up front) | Yes | At least 5× Free per five-hour session |
| Max | $100/month (billed monthly) | Yes | 5× Pro every five hours and every week |
| Ultra | $200/month (billed monthly) | Yes | 10× Pro every week; no five-hour limit for verified accounts |
| Team | See the pricing page | Yes | Standard seats give more than Pro; Premium seats 5× Standard |
| Enterprise | $20 per seat per month plus usage at API rates, billed annually | Yes | Usage billed at API rates |
Sources: Claude pricing (opens in a new tab), What is the Max plan? (Claude Help Center) (opens in a new tab), What is the Ultra plan? (Claude Help Center) (opens in a new tab) (Max and Ultra rows checked 2026-10-30). Ultra is the old Max 20× under a new name: Anthropic says “The Max 20x plan is now called the Ultra plan. Existing Max 20x subscribers move to Ultra automatically, with no price change.” Unverified Ultra accounts get “a temporary limit” until Anthropic verifies them.
Max and Ultra also include monthly API credits for building on the Claude Platform ($100 a month on Max and $200 on Ultra, per the comparison table, checked 2026-10-30). Anthropic says these don't cover interactive Claude Code sessions. Monthly API credits (Claude Help Center) (opens in a new tab)
How the limits work
- Five-hour session window: limits reset on a rolling five-hour window. Paid plans also have a weekly limit. Claude pricing (opens in a new tab)
- One shared pool: Claude on web, desktop and mobile, Claude Code in the terminal and in IDEs (VS Code, Cursor and other forks, JetBrains) all draw from the same limits.
- No fixed message count: how far it goes depends on conversation length, the model and the features you use.
- Fable: Max and Ultra have a separate weekly limit for the Fable model. On Pro, Fable runs on usage credits. Claude Help Center (opens in a new tab)
- Wrap-up allowance: if you hit the five-hour limit mid-response, Claude Code may finish the step in progress. You'll see “Usage limit reached · wrapping up”. On Pro this happens at most once per weekly period, on Max at each five-hour limit. It's rolling out gradually.
Check where you stand with /status in Claude Code or under Settings › Usage.
When you hit the limit
- Wait for the reset.
- Turn on usage credits (paid plans), billed at standard API rates.
- Switch to a Claude Console account and buy API credits for heavy sprints. Auto-reload is a Console setting, so check it there.
- Upgrade: Pro to Max, or Max to Ultra (the old Max 20×).
To stay strictly within your plan, decline the API credit option. Or log out and log in with only your Pro or Max credentials, and the option won't appear. Claude Help Center (opens in a new tab)
The API-key gotcha
If an ANTHROPIC_API_KEY environment variable is set on your machine, Claude Code uses that key instead of your subscription. You get API charges rather than your plan's included usage. Claude Help Center (opens in a new tab) Check with echo $ANTHROPIC_API_KEY (macOS and Linux) before your first session.
API rates (if you pay per token)
| Model | Input / MTok | Output / MTok |
|---|---|---|
| Opus 5.5 | $4 | $20 |
| Sonnet 5.5 | $2 | $10 |
| Haiku 5.5 (prompts ≤100K tokens) | $0.50 | $2.50 |
| Fable 5.2 | $8 | $40 |
| Fable 5.1 (legacy) | $10 | $50 |
Source: Claude pricing (opens in a new tab), API rates re-checked 2026-11-10. Prompt caching and batch pricing differ, and US-only inference is 1.1×.
Which plan should you buy?
- A few sessions a week: Pro. Pay annually if you're sure, since annual is $17/month.
- You hit Pro's five-hour limit most days: Max ($100).
- You hit Max's five-hour limit most days: Ultra ($200), which has no five-hour limit once your account is verified, only a weekly one.
- Occasional heavy sprints: stay on Pro and turn on usage credits with a budget in mind.
- Automation or CI: an API key on a Console account, billed per token.
Paying for a team? See Claude Team seats and minimums vs other team plans.
Get Claude Code (opens in a new tab)
Compared with others: Claude Code vs Codex (both start at $20) · Cursor vs Claude Code · Cursor pricing explained.
The gamer angle
Claude Code is on Roblox Studio's MCP quick-connect list Roblox MCP docs (opens in a new tab), and Unity publishes an official plugin for it Unity's AI tools (unity.com) (opens in a new tab). Game sessions with long scripts and big scenes use more of the five-hour window. Keep tasks small and commit often. See how to make a game with AI, or use the free tool picker.
Related comparisons
- Claude Team plan pricing explained
- Claude Code vs Codex
- Cursor vs Claude Code
- Hit my usage limit
- Which ONE subscription to buy
- AI bill review for Copilot and Claude teams
FAQ
Is Claude Code free?
No. Claude's pricing page lists Claude Code on Pro, Max, Team and Enterprise but not on the Free plan (checked 2026-10-17).
How much is Claude Code?
It comes with Claude Pro at $20/month ($17/month billed annually), Max at $100/month or Ultra at $200/month (checked 2026-10-30). Enterprise is $20 per seat plus usage at API rates.
What's the difference between Claude Pro and Max for Claude Code?
Max ($100/month) gives you 5x Pro's usage every five hours and every week, plus priority access at high traffic times. Ultra ($200/month), formerly Max 20x, gives 10x Pro's weekly usage with no five-hour limit for verified accounts. All three plans have weekly limits (checked 2026-10-30).
Can I use Max's API credits in Claude Code?
No. Anthropic says the monthly API credits included with Max can't be used in Claude Code or the Claude apps.
Why was I charged API fees for Claude Code?
Usually because usage credits were enabled or an ANTHROPIC_API_KEY environment variable was set, which makes Claude Code bill the API instead of your plan.
Not sure which tool fits? Select your class.
Get a main pick plus a backup for limit days.
Select your class