sakutto
Generative AI

Claude Code Burns ~33K Tokens Before You Type|4.7x OpenCode, Measured

Claude CodeAnthropicTokensAI Coding
Claude Code Burns ~33K Tokens Before You Type|4.7x OpenCode, Measured

What's inside Claude Code's startup token cost

Tokens sent at startup (first request, before any prompt is processed)

Systima measurements (July 2026; Claude Code 2.1.207 / OpenCode 1.17.18; model: Claude Sonnet 4.5).

Claude Code ~33,000 tokens
OpenCode ~6,900 tokens

Claude Code is a terminal-based AI coding agent from Anthropic. For this study, Systima ran Claude Code and OpenCode on the same machine and the same model, capturing the full payload actually sent to the model through a relay server to compare each tool's "invisible" consumption.

About 33,000 tokens before the prompt is processed

The task used for measurement was a mere 22 characters: reply with exactly "OK." Even so, Claude Code sent about 33,000 tokens — system prompt, tool definitions, and auto-injected reminders — before that instruction was ever processed. OpenCode sent about 7,000, a roughly 4.7x difference.

View official source →
"When we asked both harnesses for a one-line reply, Claude Code used roughly 33,000 tokens of system prompt, tool schemas, and injected scaffolding before the prompt even arrived. OpenCode used about 7,000." — from Part I. The floor

At 33,000 tokens, that is roughly one-sixth of a 200,000-token context window (the amount of information the model can handle at once). Part of the window is already filled before any code or conversation is loaded.

Most of it is the 27 tool definitions

So what takes up that much? The largest term is the tool definitions. About 24,000 of the ~33,000 tokens were the descriptions of Claude Code's 27 tools — things like file editing and search. OpenCode has 10 tools at about 4,800 tokens, which is the main source of the gap.

View official source →
"Roughly 24,000 of Claude Code's ~33,000 tokens are tool definitions, versus roughly 4,800 of OpenCode's ~6,900." — from Part I. The floor

Even with every tool stripped out, the system prompt alone was about 6,500 tokens for Claude Code versus about 2,000 for OpenCode. Claude Code carries more behavioral guidance — tone rules, task-management conventions — which makes it heavier.

A real setup balloons to the 75,000-token range

What gets added on top in a real setup (Systima measurements)

Bare startup
~33,000 tokens (of which ~24,000 are tool definitions)
Instruction file
A 72KB CLAUDE.md adds ~20,000 tokens on average, every request
MCP servers
Five add 5,000–7,000 tokens
Real-setup total
75,000–85,000 tokens on the first request

The measurements weren't limited to a clean environment; they also covered a setup close to real development work. What matters here is the per-project instruction file and MCP servers (a mechanism that connects external functions to the AI).

What the instruction file and MCP servers add

A 72KB instruction file added about 20,000 tokens on average, and five MCP servers added 5,000 to 7,000 — on every single request. As a result, the first request in a real setup reaches 75,000 to 85,000 tokens. In Claude Code's test configuration (four MCP servers plus plugins and an instruction file), the tool count swelled to 118 and the payload to 311KB.

View official source →
"A production repository's 72KB instruction (AGENTS.md or CLAUDE.md) file adds another (avg) 20,000 tokens to every single request. Five modest MCP servers add 5,000 to 7,000 more. By the time a real working setup sends its first request, it is 75,000 to 85,000 tokens deep before the user has typed a word." — from Part II. The multipliers

In other words, the tool sets the floor, but your configuration sets the bill. With the same Claude Code, the amount sent per request can more than double depending on your settings.

Splitting work across subagents multiplied total usage ~4x

Another striking result is the measurement when work is split across subagents (a mechanism where a parent AI delegates to child AIs). A task that cost 121,000 tokens run directly ballooned to 513,000 — about 4.2x — when fanned out to two subagents. Each child agent re-reads its own system prompt and tool definitions on every turn.

View official source →
"A small task that cost 121,000 tokens done directly cost 513,000 tokens when fanned out to two subagents." — from Part II. The multipliers

Startup cost isn't total cost — how to read the numbers

Cumulative token usage on a real (multi-step) task

Systima measurements. The heavier-at-startup Claude Code came in below OpenCode on total usage.

Claude Code (direct) ~121,000 tokens
OpenCode ~132,000 tokens

Looking at these numbers alone, it's tempting to conclude Claude Code is the expensive tool. But the measurements also show the opposite. The numbers need careful reading.

On a real task, the totals reversed

Because the baseline is re-sent on every request, total usage is roughly baseline times request count. On a multi-step task, Claude Code — which finished in three requests by batching operations — used about 121,000 tokens, while OpenCode, split across nine, used about 132,000. On the cumulative total, they reversed. A tool that's light at startup can still run up the bill if it takes many small round trips.

View official source →
"OpenCode paid its ~7k baseline nine times, Claude Code paid its ~33k three times, and the totals converged." — from the article

Re-running with the model switched to Claude Fable 5, the startup gap narrowed from about 4.7x to about 3.3x. Claude Code varies how much guidance it sends by model, so the ratio isn't fixed.

View official source →
"The floor gap on Fable comes out at roughly 3.3x by payload against 4.7x on Sonnet. Still far hungrier, but the ratio is model-dependent." — from the article

To cut usage, start by auditing your configuration

A practical note follows. The takeaway from this study is to review your own configuration before switching tools. A bloated instruction file and too many MCP servers keep piling onto every single request. Dropping unused MCP servers and keeping the instruction file lean can cut tens of thousands of tokens per request.

Small behavioral quirks matter too. At the time of testing, Claude Code (version 2.1.207) didn't load an instruction file named AGENTS.md and only ingested it when named CLAUDE.md. Whether your carefully written instructions are being ignored over a filename is worth checking. For Claude's per-model pricing and how to pick between them, see our Claude model cost comparison, and for getting started with Claude overall, see our Claude AI guide.

View official source →
"Claude Code 2.1.207 ignored AGENTS.md entirely and only ingested the file when renamed CLAUDE.md, injecting it into the first user message." — from Part II. The multipliers

Conclusion: the heavy startup is real, but total cost is up to how you use it

Systima's measurements confirm, with numbers, that Claude Code sends about 33,000 tokens before processing a prompt and reaches the 75,000-token range in a real setup. At the same time, on an actual task the smaller request count let it come in below OpenCode — so the size of the startup cost alone doesn't settle which tool is cheaper. The thing to judge by is what your own configuration actually sends. Auditing your instruction file and MCP servers is the surest first step to cutting the bill.

FAQ

Q. How many tokens does Claude Code consume at startup?
In Systima's measurements, Claude Code sent about 33,000 tokens on its first request before processing any prompt — made up of the system prompt, tool definitions, and injected reminders. OpenCode sent about 7,000 under the same conditions, a roughly 4.7x difference.
Systima Blog — Claude Code vs OpenCode measurement
When we asked both harnesses for a one-line reply, Claude Code used roughly 33,000 tokens of system prompt, tool schemas, and injected scaffolding before the prompt even arrived. OpenCode used about 7,000. Systima Blog — Claude Code vs OpenCode measurement
Q. How much does it grow in a real development setup?
With an instruction file (CLAUDE.md) and MCP servers added, the first request reaches 75,000 to 85,000 tokens. A 72KB instruction file adds about 20,000 tokens on average, and five MCP servers add 5,000 to 7,000 — on every single request.
Systima Blog — Claude Code vs OpenCode measurement
By the time a real working setup sends its first request, it is 75,000 to 85,000 tokens deep before the user has typed a word. Systima Blog — Claude Code vs OpenCode measurement
Q. Does a heavier startup always mean a higher total cost?
Not necessarily. Total usage is roughly baseline times request count, so Claude Code — which batches operations into fewer requests — came in below OpenCode on an actual multi-step task, even though its baseline is far larger. Startup size alone doesn't decide a tool's total cost.
Systima Blog — Claude Code vs OpenCode measurement
OpenCode paid its ~7k baseline nine times, Claude Code paid its ~33k three times, and the totals converged. Systima Blog — Claude Code vs OpenCode measurement

Related Tools

Related Tool Categories

Articles