headroom
Compress tool outputs, logs, files, and RAG chunks to reduce LLM token usage.
- Type
- MCP
- Transport
- http
- Open source
- Yes
- GitHub Stars
- ★ 48.1k
- Source
- mcp-github
- Repository
- github.com/headroomlabs-ai/headroom
Overview
Headroom is a context compression layer for AI agents. It compresses tool outputs, logs, files, and RAG chunks before they reach the LLM, reducing token usage by 60-95% while maintaining the same answer quality. Available in multiple forms including libraries, agents, and MCP servers. Ideal for developers and teams looking to optimize LLM token usage.
Capabilities
- ▪Compress tool outputs
- ▪Compress logs and files
- ▪Compress RAG chunks
- ▪Support multiple algorithms
- ▪Local-first execution
- ▪Reversible compression
Use cases
Setup
pip install 'headroom-ai[all]' or npm install headroom-ai
This information was compiled by AI from public sources and may contain inaccuracies — please refer to the source.
FAQ
Which languages does Headroom support?
Supports Python and TypeScript.
How do I get started with Headroom?
Install and select your mode, then check the savings.
Related skills
gemini-cli
Gemini CLI is an open-source AI agent that brings Gemini's powerful capabilities directly into the terminal.
sast-skills
Transform your AI coding assistant into a SAST scanner to automatically detect vulnerabilities in code.
antivibe
Transform AI-generated code into deep learning materials to help developers understand the code.
scientific-agent-skills
Transform any AI agent into a scientific assistant with 147 ready-to-use research skills.
susi_alexa_skill
A skill that enables question-and-answer interactions between Alexa and Susi AI.
claude-context
Provides code search capabilities for Claude Code, turning the entire codebase into context.