First, see where your tokens go
| Tool | What it shows |
|---|---|
/usage | Session tokens and estimated cost; on Pro, Max, Ultra, Team and Enterprise, plan usage bars, a breakdown by skills, subagents, plugins and MCP servers, recommendations, and your heaviest /loop tasks |
/context | What's filling the context window right now |
| Status line | Context usage shown continuously, if you configure it |
| Spinner count | The output tokens of the current turn, such as ↓ 5.5k tokens; it doesn't include your context |
/insights | An HTML report on how you work across recent sessions, with friction points and suggestions |
Why usage climbs in a long session
- Long context: every request carries the full conversation, and every round of tool calls sends another request. Caching makes re-reads cheaper, not free.
- Cache misses: your first message after a break longer than the cache lifetime reprocesses the whole context.
- Things that run while you're idle: session-scoped scheduled tasks and
/loop, messages from your other sessions, goal check-ins, session recaps and idle compaction. - Parallel workers: each subagent, workflow agent and agent-team teammate sends its own requests. Agent teams use about 7x the tokens of a standard session when teammates run in plan mode.
- Compaction itself:
/compacthas to read the conversation it summarizes./clearcosts nothing.
12 ways to reduce Claude Code token usage
Clear between unrelated tasks
/clearstarts a fresh conversation, so stale context stops riding along. Run/renamefirst if you want to/resumeit later.Compact with instructions
/compact Focus on code samples and API usagetells Claude what to keep. You can also put standing compact instructions in CLAUDE.md.# Compact instructions When you are using compact, focus on test output and code changes.Use the right model
Sonnet handles most coding and costs less than Opus; keep Opus for architecture and hard reasoning. Switch with
/model, and give simple subagentsmodel: haiku.Lower the effort for simple work
Thinking tokens bill as output and can run to tens of thousands per request. Lower the level with
/effortfor routine tasks.Keep CLAUDE.md short
It loads in full every session. Stay under about 200 lines and move workflow-specific instructions into skills, which load only when used. See the CLAUDE.md guide and Claude Code skills.
Trim MCP servers
Tool definitions are deferred by default, but every server still adds names and instructions. Disable unused ones in
/mcp, and prefer CLIs such asgh,awsorgcloud, which add no per-tool listing.Filter noisy output with a hook
A PreToolUse hook can rewrite test commands to keep only failures, turning tens of thousands of tokens of logs into hundreds. Anthropic's docs include a ready-made filter script.
{ "hooks": { "PreToolUse": [ { "matcher": "Bash", "hooks": [ { "type": "command", "command": "~/.claude/hooks/filter-test-output.sh" } ] } ] } }Delegate verbose work to subagents
Running tests, reading docs or processing logs in a subagent keeps the output in its context; only a summary returns. Give those subagents a smaller model.
Install code intelligence plugins
For typed languages, a language-server plugin answers "go to definition" in one call instead of a grep and several file reads.
Write specific prompts
"Add input validation to the login function in auth.ts" reads a few files; "improve this codebase" scans everything.
Plan first, stop early
Use plan mode for big changes so a wrong direction is caught before code is written; press Escape the moment Claude heads off course, and
/rewindto a checkpoint.Watch what runs while you're away
Each scheduled task,
/looprun or idle message sends your full context. Stop loops you don't need, setcrossSessionInboundtoholdto queue messages from other sessions, and check the Loops rows in/usage.
Usage limits and team costs
On Pro, Max and Ultra, usage counts against your plan's limits rather than a bill; see Claude Code vs Codex for how the 5-hour and weekly limits work. On the API, Anthropic reports an enterprise average of around $13 per developer per active day and $150 to $250 a month, with 90% of users under $30 a day.
Admins can set spend limits for teams, and a modelPricing table in managed settings makes /usage show contracted rates instead of list price.
Agents that work on a schedule, without burning tokens all night
Anything that wakes a session sends its whole context, so an always-on agent needs limits. Crewmark turns a Claude Code, Codex, DeepSeek Harness or OpenCode session into an AI employee that wakes on a heartbeat only during the working hours you set.
Set working hours and a rhythm
Choose every 15, 30 or 60 minutes, and the hours it's on the clock; outside them it sleeps. See how to make Claude Code proactive.
One issue at a time
Each heartbeat takes the next issue from the board, so the session works on a focused task instead of open-ended exploration.
On the plan you already pay for
Employees run on your existing subscription, counted against your plan's limits. Read what an AI employee is.
Claude Code token usage FAQ
Why does Claude Code use so many tokens?
It sends the full conversation with every request, and each round of tool calls is another request. Long sessions, cache misses after breaks, subagents and anything that runs while you're idle all add up.
How do I check my Claude Code token usage?
Run /usage for session tokens, plan usage and a breakdown with recommendations, and /context to see what fills the context window. A status line can show context usage all the time.
What's the fastest way to save tokens?
Run /clear between unrelated tasks, use Sonnet unless you need Opus, and keep CLAUDE.md short. Those three cover most waste.
Does /compact save tokens?
It shrinks the context for later messages, but the compaction itself reads the whole conversation, so it's a large request. If you don't need continuity, /clear costs nothing.
Do MCP servers use tokens?
Tool definitions are deferred until used, but each server still adds tool names and instructions. Disable servers you don't use and prefer CLI tools where they exist.
Why did I hit my usage limit so fast?
Usually a long session, a few cache misses, or background work such as /loop, scheduled tasks, subagents or agent teams. /usage on a paid plan shows which of these is behind your recent usage.
Do subagents save tokens?
They keep verbose output out of your main conversation, which keeps later requests small, but their own requests still count. Give them a smaller model to spend less.
Checked against the Claude Code docs (Manage costs effectively) on November 6, 2026.