Overview & What It Does
Headroom sits between your agent and the LLM and compresses what the agent reads before it reaches the model: tool outputs, logs, files, RAG chunks. The repo headline claims 20% fewer tokens for coding agents and 60% to 95% on repetitive JSON; the four-scenario proof table measured with the provider tokenizer shows code search 17,199 to 13,597 tokens (21%), SRE incident debugging 55,957 to 24,340 (57%), codebase exploration 58,801 to 33,895 (42%), and GitHub issue triage 46,067 to 32,429 (30%). Compression runs locally and is reversible, and an MCP server exposes headroom_compress, headroom_retrieve, and headroom_stats to any MCP client. Accuracy is measured, with caveats printed inline: GSM8K 0.870 to 0.870, TruthfulQA 0.530 to 0.560 (the README itself notes the delta sits inside the confidence interval), SQuAD v2 97% at 19% compression, BFCL tool calls 97% at 32% compression; compression latency is 0.21 ms p50 on a 10K-token JSON result and 1.4 ms at 100K. Getting started needs no account and no API key: pip install headroom-ai gives the library, pip install "headroom-ai[all]" (or uv tool install --python 3.13) adds the headroom CLI and proxy; headroom wrap claude wraps a coding agent in one command and headroom unwrap claude undoes it. An anonymous telemetry beacon is on by default and turns off with HEADROOM_BEACON=off, HEADROOM_TELEMETRY=off, DO_NOT_TRACK=1, or HEADROOM_OFFLINE=1; the last also gives a zero-network run. Extras documented in the README: headroom learn mines failed sessions into CLAUDE.local.md or AGENTS.md, cross-agent memory shares one store across Claude, Codex, Gemini and Grok, and output-token shaping (HEADROOM_OUTPUT_SHAPER=1, off by default) trims the model's replies with an estimated, confidence-banded savings number (31.7% with a 95% CI of 27.7 to 35.7 in the README example; HEADROOM_OUTPUT_HOLDOUT=0.1 turns the dashboard card into a measured number). The project is free open source under Apache 2.0 with no quota. Requires Python 3.11+; prebuilt wheels cover Windows amd64, Linux x86_64/aarch64, and macOS, and x86 hosts without AVX2 fall back to non-ONNX paths.
pip install "headroom-ai[all]", run headroom wrap claude, and your coding agent's tool outputs get compressed before they hit the model: 21% to 57% fewer input tokens in the repo's own four-scenario proof, zero code changes. Tested thoroughly for developer reliability, workflow friction, and value relative to competing AI stacks.
Pros & Cons: What We Like vs Considerations
✓ What We Like
- No account and no API key: pip install "headroom-ai[all]" brings the CLI, then headroom wrap claude wraps an agent in one command.
- The savings claims come with a reproduction command and a seed: uv run python benchmarks/index_proof_table.py --seed 20260902 regenerates the same four-scenario table offline.
- Compression runs locally and is reversible, and MCP support is built in: headroom mcp install exposes headroom_compress, headroom_retrieve, and headroom_stats to any MCP client.
- It covers the output side too: HEADROOM_OUTPUT_SHAPER=1 trims the model's replies, and the savings report states its own confidence interval.
✕ Things to Consider
- The measured savings numbers are scoped: 21% to 57% on the four tool-heavy coding scenarios and 90% on repeated JSON/log lines in bench_latency.py; there is no published number for chat-style prompts, so the benefit on light workloads is unmeasured.
- An anonymous telemetry beacon is on by default; privacy-sensitive setups must set HEADROOM_BEACON=off, HEADROOM_TELEMETRY=off, DO_NOT_TRACK=1, or HEADROOM_OFFLINE=1.
- Wiring a third-party OpenAI-compatible provider through wrap without --openai-api-url sends your key to OpenAI and fails with 401, a trap the README itself documents.
- The CLI ships only in the PyPI package; npm gets the TypeScript SDK with no CLI, so the wrap path needs pip or uv tool install.
Pricing & Value Analysis
Pricing Tier: Open Source
Headroom is free open source under Apache 2.0; the library, CLI, proxy, and MCP server run locally with no account, no API key, and no quota. The README records no metered pricing. One behavior to plan for: an anonymous telemetry beacon ships enabled until you set HEADROOM_BEACON=off, HEADROOM_TELEMETRY=off, DO_NOT_TRACK=1, or HEADROOM_OFFLINE=1. Sources: README and GitHub API. All read 2026-11-25.
Best Alternatives to Headroom
If Headroom doesn't fit your budget or technical stack, consider these top-ranked alternatives in the same domain:
| Alternative Tool | Pricing | Best For | Rating | Compare |
|---|---|---|---|---|
| Explore more tools in the Coding & Dev directory. | ||||