headroomlabs-ai/headroom
GitHubA local-first context and token compression proxy and library that shrinks prompt inputs and model output tokens for AI agents and LLM applications.
Developers who run AI coding agents daily and want to reduce LLM API costs without modifying their application code
The TypeScript SDK is library-only and does not provide the command-line interface, which is exclusively distributed via PyPI
What matters before you adopt it
Security evidence without the noise
Trust remains a decision signal; CVEs and scanner evidence explain what is driving the risk.
View trust evidence & security findings▼
Architecture from code17 modules · 8 edges▼
Modules and dependency edges extracted from repository code. This is code evidence, not README inference.
Architecture evidence details
flowchart TD
%% headroom-ai — high-level architecture (DRAFT, refine me)
n0["(root) · 1 file"]
n1["benchmarks · 28 files"]
n2["deploy · 2 files"]
n3["docker · 1 file"]
n4["docs · documentation · 25 files"]
n5["e2e · 10 files"]
n6["examples · examples · 17 files"]
n7["headroom · 535 files"]
n8["plugins · 35 files"]
n9["scripts · scripts · 28 files"]
n10["sdk · 55 files"]
n11["tests · tests · 845 files"]
n1 --> n7
n5 --> n7
n6 --> n7
n9 --> n7
n9 --> n11
n11 --> n1
n11 --> n7
n11 --> n9
class n4,n6 docs
class n9 infra
class n11 test
classDef docs fill:#9d7660,color:#ffffff,stroke:#7c5d4c
classDef infra fill:#b35c00,color:#ffffff,stroke:#8f4a00
classDef test fill:#499894,color:#ffffff,stroke:#397975Evidence, security & integrations▼
Nearby repositories worth comparing before adoption.
Python SDK for AI agent monitoring, LLM cost tracking, benchmarking, and more. Integrates with most LLMs and agent frameworks including CrewAI, Agno, OpenAI Agents SDK, Langchain, Autogen, AG2, and CamelAI
AI agent for Home Assistant — talk to your home, create automations in plain language, analyze cameras with face recognition, and get proactive anomaly alerts. Cloud LLMs or fully local via Ollama.
One TypeScript interface for 24+ LLM providers — swap providers without rewriting. MCP-native (connect any MCP server), voice (TTS/STT/realtime), RAG, memory, file processors. Production-origin: powers Tara, Yama, and Clairvoyance at Juspay.