# Headroom

> Compresses tool outputs, logs, files and RAG chunks before they reach the LLM

Source: https://talira.ai/catalog/headroom-v5pt7f1n
Every listing: https://talira.ai/catalog.md

- Kind: Open core
- Types: Library, Command-line tool, MCP server
- Categories: [developer tools / ai coding / token reduction](https://talira.ai/categories/developer-tools/ai-coding/token-reduction)
- Licence: Apache-2.0[^2]
- Pricing: Free tier[^1]
- Pricing notes: The open source framework is free and Apache-2.0 and stays open source; Headroom Enterprise for teams is sold by contacting Headroom Labs, with no public price.
- Free tier: yes[^1]
- Self-hostable: yes[^1]
- MCP server: yes[^1]
- Supports: [MCP](https://talira.ai/standards/mcp.md)[^1]
- Backed by: [Headroom Labs](https://talira.ai/orgs/headroom-labs.md)

Headroom compresses what an AI agent reads (tool outputs, logs, RAG chunks, files and conversation history) before it reaches the model, so the same answers cost fewer input tokens; its README measures 21–57% fewer on four agent scenarios and 90%+ on repeated JSON arrays and log lines. It routes each kind of content to a compressor for JSON, source code or prose, keeps originals locally so the model can retrieve them, and runs on your machine. It works as a Python or TypeScript library, a local proxy, a one-command wrapper for coding agents such as [Claude Code](https://talira.ai/catalog/claude-code-jqv5000a.md) and Codex, or an MCP server, and adds cross-agent memory. Its makers sell Headroom Enterprise for teams.

## Links

- Website: https://headroomlabs.ai/
- GitHub: https://github.com/headroomlabs-ai/headroom
- Docs: https://docs.headroomlabs.ai/docs

## Problems it solves

- my coding agent burns through tokens reading huge tool outputs and logs
- cut my LLM bill when my app sends big JSON API responses to the model
- shrink RAG chunks and file contents before they hit the context window without changing my agent

## Features

- compress() library for Python and TypeScript
- local proxy with zero code changes
- headroom wrap for Claude Code, Codex, Cursor, Aider, OpenCode, Cline and more
- MCP server with compress, retrieve and stats tools
- reversible compression: originals cached locally and retrieved on demand
- cross-agent memory shared by Claude, Codex, Gemini and Grok
- headroom learn writes corrections from failed sessions to CLAUDE.md or AGENTS.md
- output token reduction

## Limitations

- An anonymous telemetry beacon is on by default (compression ratios, counters, provider and model IDs, OS); it can be turned off with HEADROOM_TELEMETRY=off or DO_NOT_TRACK=1.[^1]
- Saves little on short conversational prompts and prose.[^1]
- The headroom CLI and proxy ship only in the PyPI package; the npm package is the TypeScript SDK alone.[^1]

## Ways to run it

### Headroom (open source)

You run it, Apache-2.0. Price: free.[^1]

Only in this edition:

- library, proxy, agent wrap, MCP server, cross-agent memory and headroom learn

You arrange:

- the LLM provider and agents it sits in front of

Self-hosting docs: https://github.com/headroomlabs-ai/headroom/blob/main/README.md

### Headroom Enterprise

You run it, under a commercial licence. Price: contact sales.[^1]

Only in this edition:

- more cost savings, token security, on-premise deployment and deep attribution, per the README

You arrange:

- a conversation with Headroom Labs

Self-hosting docs: https://github.com/headroomlabs-ai/headroom/blob/main/README.md

## Capabilities

- Has a command line tool: plan not known
- Has an MCP server: plan not known
- Has official SDKs: plan not known

## Trust

Overall: 0.83 out of 1.
Signals: maintenance 1.00, adoption 0.98, momentum 1.00, community 1.00, backing 0.30, extensibility 0.40.

- last commit yesterday
- 1127 commits in the last 90 days
- latest release v0.45.0 8 days ago
- 81.1k GitHub stars
- fast-growing: 81.1k stars in 10 months
- 420 contributors
- backed by Headroom Labs
- has an MCP server for agents

## Alternatives

- [RTK (Rust Token Killer)](https://talira.ai/catalog/rtk-rust-token-killer-w1btkf3e.md): Cuts the command output AI coding agents read
- [Caveman](https://talira.ai/catalog/caveman-06nzcpek.md): Skill and local proxy that make coding agents answer shorter and read smaller tool output
- [code-review-graph](https://talira.ai/catalog/code-review-graph-bexpbcps.md): Local code knowledge graph that gives AI coding tools precise review context over MCP
- [Context Mode](https://talira.ai/catalog/context-mode-x55y4rhq.md): Local plugin that keeps coding agents' tool output out of their context window, with sandboxed runs and SQLite search

## Sources

[^1]: https://github.com/headroomlabs-ai/headroom/blob/main/README.md (checked 29 Nov 2026)
[^2]: https://github.com/headroomlabs-ai/headroom/blob/main/LICENSE (checked 29 Nov 2026)
