The answer to "how much does Claude Code cost?" starts with: it is not a separate purchase. Claude Code is included with paid Claude plans (Pro, Max, Team, Enterprise), and you only pay per use if you run it on an API key instead. This guide covers both billing paths, plan differences, and the most common billing trap — based on official documentation as of July 2026.
Path ① — included with your subscription
Any plan from Pro up ($20/month in the US) includes Claude Code. The key mechanic: Claude chat and Claude Code share one usage allowance. Heavy chat use leaves less room for coding sessions and vice versa. Usage resets on 5-hour sessions, with separate weekly limits on top. Using the extension in VS Code, Cursor and other VS Code forks, or JetBrains IDEs draws from the same subscription and the same limits.
Plan by plan:
Pro — at least 5x the free tier's per-session usage; includes Claude Code and Cowork access. Note that Console API usage is not included.
Max — two tiers at 5x and 20x Pro's usage. Max adds a second weekly limit specific to Sonnet models alongside the all-model weekly limit. For current prices, see the official pricing page (claude.com/pricing).
Team — Claude Code is included with every seat (5-seat minimum, 150 max). Standard seats get 1.25x Pro's session usage; Premium seats serve heavier users.
Enterprise — new and self-serve plans use a single seat covering Claude, Claude Code, and Cowork, but the seat fee covers access only: all usage is billed separately at standard API rates, with no plan-level usage caps.
When you hit the limit — usage credits
Once included usage runs out, you either wait for the reset or enable usage credits — an opt-in that continues billing at standard API rates past your included allowance. It lives in Settings > Usage, and if you leave it off, Claude simply pauses with no surprise charges. Our usage limits guide covers the mechanics in detail.
Path ② — pay-as-you-go on an API key
Logging in with a Console API key bills per token, independent of any subscription. Official figures from the Claude Code docs (code.claude.com/docs/en/costs): across enterprise deployments, the average is about $13 per developer per active day and $150–250 per developer per month, with 90% of users staying under $30 per active day. Actual costs vary widely with model choice, codebase size, and automation.
The most common billing trap — the API key env var
The classic case of "I have a subscription, why am I getting API charges?" is the ANTHROPIC_API_KEY environment variable. If it is set on your system, Claude Code uses that key instead of your subscription and bills pay-as-you-go. To stay on your plan, remove the variable and pick "Claude account with subscription" at login. Check which mode you are in anytime with /usage and /status inside Claude Code.
Which path is right for you
For most individual developers, a subscription (start with Pro, move to Max if you run out) is the predictable, cheaper option. Pay-as-you-go fits spiky sprint-style usage or automation like CI pipelines. New to the tool? Start with our Claude Code guide. Prices and plans can change at Anthropic's discretion.
Based on Anthropic's official support documentation (support.claude.com) and Claude Code docs (code.claude.com/docs/en/costs) as of July 3, 2026.