Oleg MelnikovYouTube
Claude Code pricing

What Claude Code actually costs

It is not free, it is included in every paid plan from $20 a month, and you can pay per token instead. Here is every route, what real usage costs, and the four things that decide your bill.

Setup guide

Claude Code is included in every paid Claude plan. Pro at $20 a month is the cheapest. There is no separate Claude Code subscription and no free tier.

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

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.

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:

  1. 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 /clear is for.
  2. 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.
  3. 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.
  4. 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 /usage once 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. /clear when 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.

If you get stuck

The things that actually go wrong, taken from the questions people ask under the video.

What does this actually cost to run?

Claude Code comes with a Claude subscription: Pro at $20/month, or Max from $100/month for five or twenty times the usage. Usage is included, there is no per-run charge. The free plan does not include Claude Code at all.

Inside Claude Code, /status tells you whether you are on a subscription or an API key, and /usage shows how close you are to your plan limit.

Prices and free tiers move. These were checked in August 2026.

It says “credit balance too low, add funds”

That message is about the Anthropic API, which is prepaid pay per token. It is not about your Claude subscription, and a Pro or Max subscription never funds an API key. They are two different products with two different bills.

If you meant to use the API, add credit at platform.claude.com under Billing, and switch on auto reload so a long run cannot die halfway.

If you did not mean to use an API key, you probably have one sitting in your environment, and a key set there overrides your subscription login. Check with echo $ANTHROPIC_API_KEY on a Mac. If it prints something, remove it and run /login inside Claude Code to sign in with your subscription instead.

Questions people ask

Is Claude Code free
No. Claude Code needs a paid Claude plan or an API account with credit on it. The free claude.ai plan does not include it, which is why it can install perfectly and still refuse to sign you in. The cheapest way in is Pro at $20 a month, which also includes Claude Cowork.
How much does Claude Code cost
$20 a month on Pro, or $17 a month paid annually. Max is from $100 a month for five or twenty times the usage. Team is $25 per seat monthly or $20 annually. On the API instead of a plan you pay per token: Sonnet 5 is $2 per million input tokens and $10 per million output, Opus 5 is $5 and $25.
Is Claude Code included in Claude pro
Yes. One Pro plan at $20 a month includes Claude Code, Claude Cowork, Claude Design and Claude Science. There is no separate purchase and no add-on fee. Usage is what differs between plans, not which products you get.
Do I need Claude max for Claude Code
Only if you hit Pro's usage limits, which happens if you run it most of the working day or run several instances at once. Max buys five or twenty times the usage, higher output limits and priority at busy times. It buys no extra features, so upgrading before you have hit a limit is spending money on nothing.
Is the API cheaper than a subscription for Claude Code
Below about an hour of daily use, usually yes, because you pay only for the tokens you actually spend. Above that it is usually worse: Anthropic's own figures put the average enterprise developer at around $13 per active day, which is more than $20 a month within two days. The subscription is a cap, the API is a meter.
How much do developers actually spend on Claude Code
Anthropic publishes this: across enterprise deployments the average is about $13 per developer per active day and $150 to $250 per developer per month, with 90% of users staying under $30 per active day. That is API-billed usage. On a Pro or Max subscription the same work is capped at the plan price.
What is the cheapest way to run Claude Code
Pro billed annually at $17 a month, and then keeping your context small. The biggest lever is not the plan, it is how much you send: a focused session on the three files that matter costs a fraction of one where the model has read the whole repository, and picking Sonnet over Opus for routine work cuts the rate by more than half.