Why is Claude Code so expensive?
It is not the code it writes. It is everything it re-reads while writing it. Five mechanisms, with numbers, and what each one costs you.
Claude Code is expensive because it re-sends the entire conversation on every step, so cost grows with session size and step count, not with what you type. Add background agents running their own requests, thinking tokens billed as output, and verbose tool output, and one heavy week can reach thousands of API-equivalent dollars. QuotaPlug removes much of that waste automatically.
The short answer: you pay for re-reading, not for writing
When you ask Claude Code to fix a bug, the work is dozens of steps: read a file, run a test, read the error, edit, run again. Each step is a separate request, and each request carries the entire conversation so far plus the system prompt, tool definitions and your instruction files. The model's own output, the code it writes, is a small part of the bill.
The five cost drivers
1. Context re-reads (the big one)
Prompt caching cuts the price of re-reading to 10% of normal input, but it does not make it zero. At Opus 5.5 list price ($4 per million input), a cache read is $0.40 per million tokens. The bigger the conversation, the more every single step costs, even for the same question. Anthropic's cost page says it too: Claude Code sends your full conversation with every request, so a one-line question in a session open all day still draws on the whole conversation.
From the founder's own logs, heaviest week of November 2026: $3,936 of API-equivalent usage, 19,949 requests, and 62% of the spend was re-reading oversized conversations. The biggest one had grown to nearly a million tokens.
2. Cache misses
Pause longer than the cache lifetime and your next message reprocesses the whole context at full price. A big conversation left open over lunch is a bigger bill when you return.
3. Subagents
Each subagent runs its own requests with its own context, and by default the work often runs on the same model as your session. In one October 2026 week, 68% of the founder's usage went to subagents. His summary: "I measured my own Max plan. 81% of the week went to subagents, and one single conversation burned 64% on its own."
4. Model price and thinking tokens
List prices per million tokens (input/output), December 2026: Fable 5.2 $8/$40, Opus 5.5 $4/$20, Sonnet 5.5 $2/$10. Thinking tokens are billed as output, the expensive side, and cannot be turned off on the 5.5 models.
5. Noisy output and fixed weight
A test run or build can push up to 30,000 characters into context, and it is re-read on every later step. Tool responses can be large too. Instruction files and tool definitions load into every session. Anthropic's own /usage recommendations show examples of exactly this kind of fixed overhead per request.
How expensive is it, really?
Two reference points. Anthropic's cost page says the average across enterprise deployments is around $13 per developer per active day, $150 to $250 per developer per month, with 90% of users below $30 a day (API-billed usage). On a subscription you pay a flat price and the "cost" shows up as limits. The founder's heaviest week was $3,936 at API list prices. That figure measures work done, not a bill: on a subscription it shows up as how fast the limits drain.
See Claude Code cost per month for a plan-by-plan view.
Four myths about Claude Code cost
- "It is the code it writes." Output is the pricier token (Opus 5.5 output is $20 per million against $4 input), but a typical step writes a little and re-reads a great deal. Volume beats price.
- "It is my long prompts." Your prompts are a rounding error next to files read, tool results and history.
- "Caching makes it cheap." It makes it 10x cheaper than uncached, which is the reason it is viable at all. It is still the biggest line item.
- "A bigger plan means I am not paying for it." On a subscription the cost is the limit. A leak that drains Pro in two days drains Max in ten.
Anatomy of one step
Take a step in the middle of a long session: Claude runs a test, reads the failure, and decides on an edit. That step has three costs. The history it carries is re-read at the cache rate. The new test log is read as fresh input, and then stays in the conversation for every later step. The edit itself is a small amount of output, with some thinking.
In a long session, the history cost is typically the largest of the three by a wide margin. Do a hundred steps like this and the cost of the history dwarfs the cost of the code. That is why session size, not typing, is the lever, and why the number on your plan's meter can feel disconnected from how hard you worked.
What to do about it
All five drivers are defaults and habits, and both drift. A plugin adds an agent. A new model release changes the economics. A busy week hides the waste exactly when it grows.
QuotaPlug is a usage optimizer for Claude Code that makes a Claude Pro, Max or Ultra plan last 2 to 4 times longer. Same model, same effort level, same quality, and no changes to how you prompt. It installs in one command and runs locally.
One command installs it, and it handles the waste automatically. The founder replayed his heaviest week with QuotaPlug's savings applied: $1,837 instead of $3,936, about 2.1x more work on the same plan. That is one developer's data, so check your own:
npx quotaplug auditLocal, no account needed, and honest: if your usage is lean it says so. Pricing.
Frequently asked questions
Why does Claude Code use so many tokens?
How much does Claude Code cost per day?
Does prompt caching make Claude Code cheap?
Is Opus the reason Claude Code is expensive?
What is the fastest way to cut Claude Code cost?
/usage or npx quotaplug audit for a breakdown, then let QuotaPlug remove the waste automatically.