Who it is forA developer using Claude Code daily on a large codebase who sees token costs climb during long sessions.
The problemTool outputs such as search results, logs and file reads fill the context window and add cost on every turn.
The outcomeClaude Code runs routed through Headroom, and you can see how many tokens were saved on your own traffic.
What you need first
- Python 3.13 with uv, or pip, to install the headroom-ai package
- An account with an LLM provider such as Anthropic or OpenAI
- A coding agent or app that sends prompts through an API
Steps
- Install the CLI with
uv tool install --python 3.13 "headroom-ai[all]" - Run
headroom doctorto confirm routing works - Start a wrapped session with
headroom wrap claude - Work as usual, then check results with
headroom savings - Remove the wrapping later with
headroom unwrap claude(inferred, check the README)
Prompt for your agent
Using the repo headroomlabs-ai/headroom, install the CLI, run `headroom doctor`, then start a session with `headroom wrap claude` in the project at <project-path>. Report the output of `headroom savings` after a short session. Verify that doctor reports routing as working before you start.
Caveat. Savings depend on how repetitive the payload is, and the README notes prose and already dense output compress very little.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for headroomlabs-ai/headroom and "Cut Claude Code token use with one wrap command"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer