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.
Build with Backblaze B2
SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.
Loading star history...
Where it stands
Rank, growth pace and release cadence relative to everything GStars tracks.
5 releases in the last 90 days, the latest 8 days ago, with 355 contributors on GitHub.
Peaked at #58 in the weekly ranking the week of Apr 5, its best in the past year.
Use Cases & Benefits
- Compresses AI agent inputs like tool outputs, logs, files, and RAG chunks to reduce token usage before sending to large language models.
- Provides lossless, multi-algorithm compression with reversible context retrieval, preserving accuracy while significantly reducing token counts.
- Use for optimizing token consumption in coding agents interacting with models like Claude Code, Codex, or Cursor to lower API costs.
- Use for compressing JSON, code, and conversation history in multi-agent workflows to share context efficiently across different AI agents.
- Use for integrating transparent proxy compression in existing Python or TypeScript LLM applications without code changes for seamless token optimization.
Should you depend on it?
License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.
License
Apache 2.0
Permissive: commercial use, modification and redistribution are allowed with attribution; includes an explicit patent grant from contributors.
Community files
- README: present
- Contributing guide: present
- Code of conduct: present
Watch-outs
No watch-outs from GStars' checks.
General guidance from repository metadata, not legal advice. How we score
From the README
Compress everything your AI agent reads. Same answers, fraction of the tokens.
Headroom sits between your application and the LLM provider. It intercepts requests, compresses the context, and forwards an optimized prompt. Use it as a transparent proxy (zero code changes), a Python function (
compress()), or a framework integration (LangChain, LiteLLM, Agno).
Daily snapshots
Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots
+12,802 stars over 85 days across 11 snapshot days; best day +512 on Oct 21.
Forks
6.2K+1.1K
Open issues
470-167
Compared with peers in AI Agents
Fastest-growing repositories GStars tracks in this cohort for the week of Nov 8, by 7-day star growth
| Repository | Stars | +7d | Health | Last release |
|---|---|---|---|---|
| morluto/rea | 450.0K | +22.9K | 75 | 16 days ago |
| vercel-labs/agent-desktop | 21.4K | +8.7K | 75 | 5 days ago |
| milind-soni/OpenMausBot | 20.6K | +8.4K | 75 | today |
| stablyai/orca | 121.4K | +6.7K | 75 | today |
| thedotmack/claude-mem | 115.8K | +4.7K | 75 | today |
| headroomlabs-ai/headroom | 78.8K | — | 65 | 8 days ago |
| Category median | 115.8K | +8.4K | 75 | — |
Discover Repositories
Search across tracked repositories by name or description