Skip to content
skillcellar
All skills

Headroom

Productivity

Compresses tool outputs, logs, files and RAG chunks before they reach the model: library, proxy and MCP server.

by Headroom Contributorsheadroomlabs-ai/headroom
Stars81.5k
Forks6.4k
Watchers216
Open issues391
LicenseApache-2.0
Last pushtoday

Install

install

$ uv tool install --python 3.13 "headroom-ai[all]"

Update

update

$ headroom update

Detects pip, pipx or uv tool and upgrades in place. Use headroom update --check to only see the latest release.

When to use it

  • Long agent sessions where big tool outputs, logs and JSON blobs eat the context window
  • You want fewer input tokens without changing how you use Claude Code
  • You build an app that calls an LLM and want to compress messages in-process with compress()
  • You want compressed originals kept locally so the model can retrieve the full text on demand

Commands & flags

headroom wrap claude
Launch Claude Code routed through a local Headroom proxy, with no code changes.
headroom unwrap claude
Undo the wrapping.
headroom proxy --port 8787
Run the drop-in proxy for any client or language.
headroom doctor
Health check that confirms routing works.
headroom perf
Show the measured savings.
headroom learn --verbosity
Dry run of mining past sessions for corrections; add --apply to save them.

How to use it

Install the CLI, then start your agent through it. headroom wrap starts a local proxy and launches the agent configured to route through it; launch a wrapped session each time so the setup runs.

uv tool install --python 3.13 "headroom-ai[all]"
headroom wrap claude
headroom doctor

Compression runs on your machine. Savings are largest on repeated JSON and log lines and small on plain prose, so measure with headroom perf before you rely on it.

Why it earns its place

Most of an agent's context is not your prompt but what the tools return. Headroom shrinks that content before the model sees it, keeps the originals retrievable, and works as a library, a proxy or an MCP server, so you choose the integration depth. It adds a local process to your setup, so skip it for short sessions where context is not the constraint.

Try it

claude

> headroom wrap claude