Netflix engineer open-sources Headroom to cut AI token costs

Token-pruning is becoming a first-class cost lever for production LLM teams, and Headroom - an open-source proxy from Netflix senior engineer Tejas Chopra - is the clearest example yet. The tool sits in front of any model and strips redundant machine-generated text such as logs, JSON, repeated templates, and RAG chunks before it counts against input-token billing, with its GitHub repository claiming 60-95% token reductions for the same answers. The Register reports Chopra's talk pegged collective savings near $700,000 and roughly 200 billion tokens freed across users, with the project at about 2,000 GitHub stars and 120 forks and already used by several Netflix teams. For practitioners, the load-bearing detail is that the savings come from compressing non-prose payloads, not human-written prompts, so the wins are largest in agentic and RAG pipelines where tool output dominates the context window.
Why this matters for LLM cost control
Input-token billing has quietly become one of the largest line items for teams running agents and retrieval pipelines, and most of those tokens are not human-written prose - they are logs, JSON, tool outputs, and repeated template fragments. Headroom attacks exactly that surface. Because it runs as a proxy in front of the model rather than as a prompt-engineering trick, it can be dropped into an existing stack without changing model providers or application code, which is why an unofficial side project has spread across several Netflix teams and outside projects.
What Headroom does
Headroom is an open-source tool created by Netflix senior engineer Tejas Chopra that compresses content before it reaches a large language model. Its GitHub repository describes it as compressing tool outputs, logs, files, and RAG chunks for 60-95% fewer tokens with the same answers, and ships as a library, a proxy, and an MCP server. The Register reports that, in a recent talk, Chopra estimated the tool had saved users roughly $700,000 and freed about 200 billion tokens collectively, and noted the project sits at about 2,000 GitHub stars and 120 forks.
The load-bearing detail
The savings are concentrated in non-prose payloads. The Register reports Chopra's claim that as much as 90% of tokens can be redundant for the model in some workloads, because machine-generated metadata, repeated schemas, and duplicated template text compress far more aggressively than natural language. For practitioners, that means the biggest wins appear in agentic and RAG systems where tool output and retrieved context - not the user prompt - dominate the input window. A workflow that mostly passes short human questions will see little benefit; one that pipes verbose logs or large JSON into every call will see the most.
What to watch
Track whether managed providers respond by adding native token-economization features, whether Headroom's lossless-compression claims hold up across diverse data formats in independent use, and how the project's issue profile and integrations evolve as adoption grows.
Key Points
- 1Headroom is an open-source proxy from Netflix engineer Tejas Chopra that compresses tool outputs, logs, files, and RAG chunks before they reach an LLM.
- 2Provider billing tracks input tokens, and machine-generated payloads like JSON and repeated templates are far more compressible than human prose.
- 3Teams running high-volume agentic or RAG workloads can cut inference token counts 60-95% without switching model providers or rewriting prompts.
Scoring Rationale
A practical, open-source tool that can cut LLM billing is directly relevant to practitioners running production workloads, but it is an incremental infrastructure improvement rather than a frontier model or paradigm shift.
Sources
Primary source and supporting public references used for this report.
Practice with real FinTech & Trading data
90 SQL & Python problems · 15 industry datasets
250 free problems · No credit card
See all FinTech & Trading problems

