Headroom ships a set of utility commands for diagnosing your setup, tracking savings, managing updates, and configuring persistent installations. These commands complement the mainDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/headroomlabs-ai/headroom/llms.txt
Use this file to discover all available pages before exploring further.
proxy, wrap, mcp, and learn commands.
headroom doctor
headroom doctor diagnoses whether your local Headroom setup is routing traffic and saving tokens. Because Headroom’s failure mode is silent (the client still works, you just stop saving tokens), this command correlates everything that matters: the proxy process, per-client wrap configs, the current shell environment, savings flow, and budget configuration.
0— all checks pass1— warnings only (setup works but could be improved)2— one or more failures (traffic is not being compressed)
| Check | What it verifies |
|---|---|
| Proxy process | A Headroom proxy is running and healthy |
| Claude Code config | ANTHROPIC_BASE_URL points to the proxy |
| Codex config | base_url in Codex config points to the proxy |
| Shell environment | Relevant env vars are set correctly |
| Savings flow | Tokens are actually being saved (non-zero) |
| Budget config | Budget limit is configured if set |
| Proxy version | Running proxy matches installed version |
headroom doctor after headroom wrap to confirm routing is working.
headroom perf
headroom perf prints a detailed performance report showing compression latency, throughput, and per-compressor statistics for the current session.
headroom savings
headroom savings prints a cumulative savings report for all sessions recorded in the local savings ledger.
Filter to sessions within a time window. Accepts relative values like
1d, 7d, 30d or an ISO date.Output format.
table (default) or json.Dollar savings use LiteLLM’s pricing database, which requires Python 3.13 or earlier. On Python 3.14+, the dollar figure shows
$0.00 while token savings still track correctly.headroom output-savings
headroom output-savings estimates how many output tokens were saved by verbosity steering and effort routing. Because output savings are counterfactual (we never see what the model would have written), this command reports an honest estimate with a confidence interval rather than a single number.
HEADROOM_OUTPUT_HOLDOUT=0.1 to run a control group, the result is labeled measured instead of estimated:
headroom dashboard
headroom dashboard opens the live savings dashboard in your browser. The proxy must be running.
Port the proxy is running on.
Print the dashboard URL instead of opening a browser window. Useful in headless or SSH environments.
- Input tokens saved (live, per request)
- Output tokens saved (if
HEADROOM_OUTPUT_SHAPER=1) - Compression ratio over time
- Per-agent savings breakdown
- Dollar savings (labeled
measuredorestimated)
http://localhost:8787/dashboard when the proxy is running.
headroom update
headroom update detects how Headroom was installed (pip, pipx, or uv tool) and upgrades in place.
Report the latest available version without performing the upgrade.
Include pre-release versions when checking or upgrading.
headroom update prints the correct manual step instead of guessing.
The proxy shows a one-line “update available” notice on startup (at most once per day, non-blocking). Opt out with HEADROOM_UPDATE_CHECK=off.
headroom init / headroom install apply
headroom init generates a persistent service configuration (systemd unit, launchd plist, or Windows Service) for running the proxy as a background service.
Port for the persistent proxy service.
headroom copilot-auth
headroom copilot-auth manages a Headroom-specific GitHub OAuth token for GitHub Copilot CLI subscription mode.
headroom wrap copilot --subscription to exchange for Copilot’s short-lived API token and locate the upstream endpoint.
See Agent Wrap for the full Copilot subscription setup flow.
headroom agent-savings
headroom agent-savings prints a savings breakdown by agent (Claude Code, Codex, Cursor, etc.) for the current session ledger.
headroom capture
headroom capture manually records a session or set of messages into the savings ledger without routing through the proxy. Useful for auditing or testing.
Path to a JSON file containing the messages array to record.