headroomlabs-ai/headroom
Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server. observed · 2026-10-16
Health v2 · maintenance only
79/100
- Activity 100
- Release rhythm 87
- Longevity 20
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 0
- age_days: 286
- days_rel: 6
- days_push: 5
- n_releases_24m: 174
Adoption not part of the score
75458 stars · 5860 forks observed · 2026-10-16
What it is AI-extracted, prompt v1, taxonomy v1, 2026-09-21, confidence 0.97
Headroom is a Python/TypeScript library and proxy server that compresses tool outputs, logs, files, and RAG chunks before they are sent to LLMs. It runs locally, preserving content while reducing token usage dramatically.
Use cases
- reduce token cost for LLM calls by compressing large JSON responses
- optimize context windows for AI agents handling long logs or code files
- compress images before sending to vision models to save tokens
- speed up LLM inference by sending smaller, compressed payloads
- integrate a local compression layer into existing LangChain or Vercel AI SDK workflows
When to choose
- you need significant token savings for high‑volume LLM interactions
- your application processes large logs, code, or image data before LLM calls
- you prefer a local, privacy‑preserving compression solution
- you want a drop‑in library or proxy that works with Python, Node.js, or Docker
When to avoid
- you require lossless compression of arbitrary binary data beyond supported types
- your deployment environment cannot run Python 3.10+ or Docker
- you need a fully managed cloud service rather than a self‑hosted component
Facets
library · maturity active
middleware cli api-framework http-server artificial-intelligence large-language-models python cli context-compression token-savings mcp proxy llm-optimization retrieval-augmented-generation nodejs docker
10 sources
- readme: https://github.com/headroomlabs-ai/headroom · fetched 2026-10-16 · f6419dc6c7dc
- homepage: https://docs.headroomlabs.ai/docs · fetched 2026-09-07 · d1678c82cd44
- site_page: https://docs.headroomlabs.ai/docs/quickstart · fetched 2026-09-07 · c352bb81b424
- site_page: https://docs.headroomlabs.ai/docs/installation · fetched 2026-09-07 · 3580eb503f82
- site_page: https://docs.headroomlabs.ai/docs/docker-install · fetched 2026-09-07 · dbcc8089e47d
- site_page: https://docs.headroomlabs.ai/docs/persistent-installs · fetched 2026-09-07 · a5abb43a8253
- site_page: https://docs.headroomlabs.ai/docs/how-compression-works · fetched 2026-09-07 · 4b245a998d86
- site_page: https://docs.headroomlabs.ai/docs/smart-crusher · fetched 2026-09-07 · 94458ccfd9d5
- site_page: https://docs.headroomlabs.ai/docs/code-compression · fetched 2026-09-07 · 6c2039f78165
- site_page: https://docs.headroomlabs.ai/docs/image-compression · fetched 2026-09-07 · 5ee999585c87
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| headroomlabs-ai/headroom | main | 79 |
For agents
markdown · JSON · MCP: product_card(name="headroomlabs-ai/headroom")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem