Is Claude Code free
No. Claude Code needs either a paid Claude plan or an API account with credit on it. The free claude.ai account does not include it.
This catches almost everyone once, because the install works perfectly and then the sign-in refuses you. Nothing is broken. The plan is the missing piece.
There are exactly two ways to pay for it:
- A subscription, from $20 a month, which is a cap: you cannot get a surprise bill, you can only run out.
- An API key, billed per token, which is a meter: you pay for exactly what you use and there is no ceiling.
The plans, side by side
| Free | Pro | Max | Team | |
|---|---|---|---|---|
| Monthly | $0 | $20 | from $100 | $25 per seat |
| Annual, per month | $0 | $17 ($200 up front) | same | $20 per seat |
| Claude Code | no | yes | yes | yes |
| Claude Cowork | no | yes | yes | yes |
| Usage | none | the baseline | 5x or 20x pro | More than pro, premium seats 5x standard |
| Context window | 200k | 200k | 200k | 500k on the default model |
| Surprise bill possible | no | no | no | no |
Free
- Monthly
- $0
- Annual, per month
- $0
- Claude Code
- no
- Claude Cowork
- no
- Usage
- none
- Context window
- 200k
- Surprise bill possible
- no
Pro
- Monthly
- $20
- Annual, per month
- $17 ($200 up front)
- Claude Code
- yes
- Claude Cowork
- yes
- Usage
- the baseline
- Context window
- 200k
- Surprise bill possible
- no
Max
- Monthly
- from $100
- Annual, per month
- same
- Claude Code
- yes
- Claude Cowork
- yes
- Usage
- 5x or 20x pro
- Context window
- 200k
- Surprise bill possible
- no
Team
- Monthly
- $25 per seat
- Annual, per month
- $20 per seat
- Claude Code
- yes
- Claude Cowork
- yes
- Usage
- More than pro, premium seats 5x standard
- Context window
- 500k on the default model
- Surprise bill possible
- no
Read off Anthropic's pricing page on 2026-08-27.
Enterprise is $20 per seat plus usage at API rates, which makes it the one plan where the bill can move.
The thing most comparisons miss
$20 does not buy Claude Code. It buys Claude Code, Claude Cowork, Claude design and Claude science on one plan. Compared against a single coding assistant subscription it looks like a normal price. Compared against buying a terminal agent and an office agent separately, it is one bill instead of two.
The API route, and when it is cheaper
Instead of a plan you can point Claude Code at an API key from the Claude console and pay per token. Same product, different meter.
| model | input | output | cache write | cache read |
|---|---|---|---|---|
| Fable 5 | $10 / MTok | $50 / MTok | $12.50 / MTok | $1 / MTok |
| Opus 5 | $5 / MTok | $25 / MTok | $6.25 / MTok | $0.50 / MTok |
| Sonnet 5 | $2 / MTok | $10 / MTok | $2.50 / MTok | $0.20 / MTok |
| Haiku 4.5 | $1 / MTok | $5 / MTok | $1.25 / MTok | $0.10 / MTok |
input
- Fable 5
- $10 / MTok
- Opus 5
- $5 / MTok
- Sonnet 5
- $2 / MTok
- Haiku 4.5
- $1 / MTok
output
- Fable 5
- $50 / MTok
- Opus 5
- $25 / MTok
- Sonnet 5
- $10 / MTok
- Haiku 4.5
- $5 / MTok
cache write
- Fable 5
- $12.50 / MTok
- Opus 5
- $6.25 / MTok
- Sonnet 5
- $2.50 / MTok
- Haiku 4.5
- $1.25 / MTok
cache read
- Fable 5
- $1 / MTok
- Opus 5
- $0.50 / MTok
- Sonnet 5
- $0.20 / MTok
- Haiku 4.5
- $0.10 / MTok
Dollars per million tokens, 2026-08-27. Batch processing takes 50% off. Us-only inference is 1.1x. Fast mode on Opus 5 is 2x for up to 2.5x the speed.
The number that decides it for you is the cache read rate. $0.20 per million tokens on Sonnet 5, against $2 for fresh input. That is why a long session costs far less than the raw input rate suggests: after the first pass, most of what Claude re-reads is coming out of cache.
- Api is cheaper when
- You use it in bursts, a few times a week, on small focused tasks
- Subscription is cheaper when
- You use it most working days, or run more than one instance
- The crossover
- Roughly an hour of real use a day. Anthropic's own average of $13 per active day passes $20 in under two days.
- The other difference
- A plan cannot surprise you. An API key can, so set a spend limit in the console on day one.
What people actually spend
Anthropic publishes real numbers for this in their own cost docs, which is unusual and worth quoting exactly:
- Average per developer, per active day
- about $13
- Average per developer, per month
- $150 to $250
- 90% of users stay under
- $30 per active day
From code.Claude.com/docs/en/costs, read on 2026-08-27. These are API-billed enterprise deployments, not subscription users.
Read that next to $20 and the case for a subscription makes itself. Those figures are what the same work costs when it is metered. On Pro or Max the same usage is capped at the plan price, and the only thing you can run out of is headroom.
My own use, running marketing systems rather than a codebase, sits well inside Pro. The sessions are shorter and the context is smaller than a developer working in a large repository all day.
The four things that drive the bill
If you are on the API, or hitting limits on a plan, it is almost always one of these four. In order of how much they matter:
- How much context you send. The single biggest lever, and the one people ignore. A session pointed at three files costs a fraction of one where Claude has read the whole repository. This is what
/clearis for. - Which model you pick. Sonnet 5 is $2 in and $10 out. Opus 5 is $5 and $25. That is more than double for work where the cheaper model was already right.
- How long the session runs. Usage climbs through a long session because the conversation itself becomes input on every turn. Starting fresh on a new task is cheaper than continuing.
- How many instances you run. Sub agents and parallel sessions multiply usage rather than adding to it. This is the usual reason a Pro plan suddenly is not enough.
How to spend less without working slower
The ones that made a real difference to me, roughly in order of effect:
- Run
/usageonce a week. It shows plan usage bars for subscribers and session cost for API users. You cannot manage what you have not looked at. - Clear between tasks.
/clearwhen you move to something unrelated. Carrying an old conversation into a new problem costs money on every turn and makes the answers worse. - Name the files. Telling it which three files to look at beats letting it search, twice over: cheaper and more accurate.
- Use the smaller model for routine work. Most editing, renaming and boilerplate does not need the top model.
- Put standing instructions in a skill, not in every prompt. Anything you paste more than twice belongs somewhere it is loaded once.
- Set a spend limit on day one if you are on the API. The console supports it and it is the difference between a bad afternoon and a bad month.
/usage see what this session and this month cost /clear start fresh between unrelated tasks /model switch to a cheaper model for routine work
If you have not set it up yet, start with The Claude Code guide. If you are deciding between Claude Code and something else, the Comparison page covers what you actually get for the money in each.
Every price on this page was read off anthropic's pricing page and their cost docs on 2026-08-27. They change, and this page will fall behind at some point. Check the source before committing to a year.