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.
Python agentaianthropicclaude-codecompressioncontext-engineeringcontext-windowcursorfastapilangchainllmmcpopenaiprompt-engineeringproxypythonragtoken-optimizationtokenstypescript
docs(readme): offer 3 months of Enterprise free via the perks page (#3990)
Tejas Chopra3604af9bbe47
diff --git a/.github/assets/enterprise-perk.svg b/.github/assets/enterprise-perk.svgnew file mode 100644index 000000000..a03ae4d9e--- /dev/null+++ b/.github/assets/enterprise-perk.svg@@ -0,0 +1,96 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 880 240" width="880" height="240" role="img"+ aria-label="Headroom Enterprise for teams: 3 months free with a 12-month plan. Adds tool search, model routing, attack removal and org-wide savings. Claim the perk.">+ <title>Headroom Enterprise — 3 months free with a 12-month plan</title>++ <defs>+ <!-- Brand palette as in hero.svg: Mint #00F0B5, Obsidian #070A0F,+ Midnight #0C1118, Cyan #65D8FF, White, Slate #98A4B3.+ Dark in both GitHub themes, matching the hero. -->+ <pattern id="pgrid" width="44" height="44" patternUnits="userSpaceOnUse">+ <path d="M44 0H0V44" fill="none" stroke="#00F0B5" stroke-opacity="0.05" stroke-width="1"/>+ </pattern>++ <radialGradient id="pglow" cx="12%" cy="0%" r="80%">+ <stop offset="0%" stop-color="#00F0B5" stop-opacity="0.16"/>+ <stop offset="100%" stop-color="#00F0B5" stop-opacity="0"/>+ </radialGradient>++ <linearGradient id="pedge" x1="0" y1="0" x2="1" y2="0">+ <stop offset="0%" stop-color="#00F0B5" stop-opacity="0.65"/>+ <stop offset="55%" stop-color="#65D8FF" stop-opacity="0.35"/>+ <stop offset="100%" stop-color="#65D8FF" stop-opacity="0.10"/>+ </linearGradient>++ <linearGradient id="pbtn" x1="0" y1="0" x2="1" y2="1">+ <stop offset="0%" stop-color="#00F0B5"/>+ <stop offset="100%" stop-color="#0FD9AE"/>+ </linearGradient>++ <linearGradient id="pshine" gradientUnits="userSpaceOnUse" x1="0" y1="0" x2="70" y2="0">+ <stop offset="0%" stop-color="#FFFFFF" stop-opacity="0"/>+ <stop offset="50%" stop-color="#FFFFFF" stop-opacity="0.45"/>+ <stop offset="100%" stop-color="#FFFFFF" stop-opacity="0"/>+ </linearGradient>++ <clipPath id="pbtnclip"><rect x="646" y="94" width="208" height="58" rx="29"/></clipPath>++ <style>+ .s { font-family: "Segoe UI", Inter, -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif; }++ /* One light pass over the button per cycle draws the eye to the action. */+ .shine { animation: shine 5s ease-in-out infinite; }+ @keyframes shine { 0%, 55% { transform: translateX(-80px) } 85%, 100% { transform: translateX(240px) } }++ .dot { animation: beat 2.4s ease-in-out infinite; }+ @keyframes beat { 0%, 100% { opacity: 1 } 50% { opacity: .3 } }++ @media (prefers-reduced-motion: reduce) {+ .shine, .dot { animation: none; }+ .shine { opacity: 0; }+ }+ </style>+ </defs>++ <!-- Card. One font family, three sizes: 52 headline, 20 lead and button, 16 everything else. -->+ <rect x="1" y="1" width="878" height="238" rx="18" fill="#070A0F"/>+ <rect x="1" y="1" width="878" height="238" rx="18" fill="url(#pgrid)"/>+ <rect x="1" y="1" width="878" height="238" rx="18" fill="url(#pglow)"/>+ <rect x="1" y="1" width="878" height="238" rx="18" fill="none" stroke="url(#pedge)" stroke-width="1.5"/>++ <g class="s">+ <!-- Eyebrow -->+ <circle class="dot" cx="46" cy="47" r="5" fill="#00F0B5"/>+ <text x="60" y="53" font-size="16" font-weight="600" letter-spacing="1.5" fill="#00F0B5">HEADROOM ENTERPRISE · FOR TEAMS</text>++ <!-- Headline -->+ <text x="40" y="116" font-size="52" font-weight="700" fill="#FFFFFF">3 months free</text>+ <text x="40" y="152" font-size="20" fill="#98A4B3">with a 12-month plan · one perk per company</text>++ <!-- What Enterprise adds -->+ <g font-size="16" fill="#E6EDF3">+ <rect x="40" y="178" width="118" height="36" rx="18" fill="#0C1118" stroke="#00F0B5" stroke-opacity="0.30"/>+ <text x="99" y="202" text-anchor="middle">Tool search</text>++ <rect x="168" y="178" width="134" height="36" rx="18" fill="#0C1118" stroke="#00F0B5" stroke-opacity="0.30"/>+ <text x="235" y="202" text-anchor="middle">Model routing</text>++ <rect x="312" y="178" width="140" height="36" rx="18" fill="#0C1118" stroke="#00F0B5" stroke-opacity="0.30"/>+ <text x="382" y="202" text-anchor="middle">Attack removal</text>++ <rect x="462" y="178" width="156" height="36" rx="18" fill="#0C1118" stroke="#65D8FF" stroke-opacity="0.30"/>+ <text x="540" y="202" text-anchor="middle">Org-wide savings</text>+ </g>++ <!-- Divider -->+ <line x1="634" y1="36" x2="634" y2="204" stroke="#98A4B3" stroke-opacity="0.18"/>++ <!-- Call to action -->+ <text x="750" y="72" font-size="16" text-anchor="middle" fill="#98A4B3">SSO · VPC or managed</text>+ <g clip-path="url(#pbtnclip)">+ <rect x="646" y="94" width="208" height="58" rx="29" fill="url(#pbtn)"/>+ <rect class="shine" x="646" y="94" width="70" height="58" fill="url(#pshine)"/>+ </g>+ <text x="750" y="130" font-size="20" font-weight="700" text-anchor="middle" fill="#070A0F">Claim the perk →</text>+ <text x="750" y="190" font-size="16" text-anchor="middle" fill="#98A4B3">headroom-perks.vercel.app</text>+ </g>+</svg>diff --git a/README.md b/README.mdindex ed379c49a..c9561ff9d 100644--- a/README.md+++ b/README.md@@ -16,6 +16,7 @@<p><b><a href="https://docs.headroomlabs.ai/docs/quickstart">Quickstart</a></b> ·+ <b><a href="#headroom-for-teams">Headroom for Teams</a></b> ·<a href="#get-started-60-seconds">Install</a> ·<a href="#proof">Proof</a> ·<a href="#agent-compatibility">Agents</a> ·@@ -37,6 +38,10 @@ chunks, files, and conversation history — before it reaches the LLM. Sameanswers, fraction of the tokens. Compression runs on your machine; no prompt orfile content is sent anywhere to be compressed.+<p align="center">+ <a href="https://headroom-perks.vercel.app/?source=github&utm_source=github&utm_medium=readme&utm_content=banner"><img src=".github/assets/enterprise-perk.svg" alt="Headroom Enterprise for teams: 3 months free with a 12-month plan. Claim the perk." width="880"></a>+</p>+<div align="center"><img src="HeadroomDemo-Fast.gif" alt="Headroom compressing a 10,144 token log dump to 1,260 tokens while preserving the FATAL line" width="820"><br><sub>10,144 → 1,260 tokens. The same <code>FATAL</code> found.</sub>@@ -615,26 +620,30 @@ regresses a compression ratio across real workloads rather than only our own tescorpus.Turn it off with `HEADROOM_BEACON=off`, the `DO_NOT_TRACK=1` convention, or-`--offline`. The full field list is in+`HEADROOM_OFFLINE=1`. The full field list is in[the proxy docs](https://docs.headroomlabs.ai/docs/proxy).## Headroom for teams-Headroom OSS is built for individual developers: run `headroom proxy` or-`headroom wrap` on your laptop and start cutting tokens in minutes, free and-local-first.+Headroom OSS is built for one developer on one laptop. Headroom Enterprise is built+for the whole team.++| | Open source | Enterprise |+|---|---|---|+| Savings | Compression, plus tool search on Anthropic requests (on by default) | Also: tool search for every model, harness tuning, extra compressors |+| Model routing | Rule-based and opt-in: turn it on with `HEADROOM_MODEL_ROUTER_ENABLED=1` and write the rules in `HEADROOM_MODEL_ROUTES` | Automatic: a cheaper model per request when quality allows, with a shadow mode that shows the savings before you turn it on |+| Security | — | Detect and strip prompt injection and risky tool calls |+| Rollout | Per laptop | Managed or in your VPC, SSO, central config, org-wide savings |+| Support | GitHub, Discord | Dedicated engineers, onboarding, priority response |-Running it across an engineering org is a different job — a shared always-on-deployment, centralised config and version rollout, org-wide savings dashboards,-SSO and access control, air-gapped and VPC installs, and someone to call. We help-companies with that, self-hosted with support or fully managed.+**3 months of Enterprise free.** Companies that sign a 12-month Enterprise plan get+their first 3 months free. One perk per company.-If your team is spending real money on LLM tokens — Claude Code, Codex, Cursor,-or agents running in CI — email **[[email protected]](mailto:[email protected])**-with your stack and rough monthly LLM spend.+**[Claim 3 months free →](https://headroom-perks.vercel.app/?source=github&utm_source=github&utm_medium=readme&utm_content=teams)**+· or email [[email protected]](mailto:[email protected]) with your stack and+monthly LLM spend.-Everything in this repo stays open source under Apache 2.0. The managed offering-is for teams that would rather have it deployed, supported and scaled for them.+Everything in this repo stays open source under Apache 2.0.## Documentation