by gglucass
Menu Bar App on MacOS and Windows that cuts Claude Code and Codex token costs by ~50%
# Add to your Claude Code skills
git clone https://github.com/gglucass/headroom-desktopGuides for using ai agents skills like headroom-desktop.
Last scanned: 6/26/2026
{
"issues": [
{
"type": "npm-audit",
"message": "undici: undici vulnerable to TLS certificate validation bypass via dropped requestTls in SOCKS5 ProxyAgent",
"severity": "high"
}
],
"status": "WARNING",
"scannedAt": "2026-06-26T07:51:59.337Z",
"npmAuditRan": true,
"pipAuditRan": true,
"promptInjectionRan": true
}See how headroom-desktop compares with popular alternatives.
headroom-desktop is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by gglucass. Menu Bar App on MacOS and Windows that cuts Claude Code and Codex token costs by ~50%. It has 570 GitHub stars.
headroom-desktop returned warnings in SkillsLLM's automated security scan. It has no critical vulnerabilities, but review the flagged issues in the Security Report section before adding it to your workflow.
Clone the repository with "git clone https://github.com/gglucass/headroom-desktop" and add it to your Claude Code skills directory (see the Installation section above).
headroom-desktop is primarily written in Rust. It is open-source under gglucass on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh headroom-desktop against similar tools.
No comments yet. Be the first to share your thoughts!
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
Headroom is a desktop tray app for macOS, Windows, and Linux that cuts Claude Code and ChatGPT / Codex token costs by ~50% - without changing how you code. It also routes OpenCode and Grok Build through the same pipeline. It runs a local-first optimization pipeline that reversibly compresses the tool output, logs, and boilerplate that bloat every prompt, so the AI plan you already pay for stretches about 2x further. Nothing the model needs is lost - it can pull the original content back on demand.
Paid product. Headroom is a paid subscription app (7-day free trial, no credit card required; plans from $4/mo, or $3/mo billed annually) - see pricing. The desktop shell in this repo is MIT-licensed and open source, but the app requires a Headroom account and an active plan to run.
macOS: 14 (Sonoma) or later, Apple Silicon or Intel (universal build)
Windows: Windows 10 or later, x64
Linux: x86_64, glibc 2.39 or newer (Ubuntu 24.04, Debian 13), plus a running secret-service keyring provider (gnome-keyring or kwallet) for sign-in
Option A - Homebrew (macOS):
brew install --cask headroom
Option B - manual download:
.dmg (for example Headroom_0.9.3_mac.dmg), open it, drag Headroom to Applications_x64-setup.exe installer.AppImage (has the built-in updater) or the .deb (same build, updates only by downloading a newer one)Headroom is signed and notarized on macOS, so it opens without Gatekeeper warnings. All install paths self-update via the app's built-in updater; the Homebrew cask stays current with each release too.
Every stable release ships all three platforms from the same tag. The Linux runtime installs a proxy-focused subset of the Python stack, so the memory and ML extras that the macOS and Windows builds ship are absent there.
If you are a coding agent installing or diagnosing Headroom for your user, follow the agent runbook - every step that works from a shell, plus the one sign-in step that stays with the human. Detect a running install with curl -s http://127.0.0.1:6767/stats (JSON back = running). Machine-readable product summary: extraheadroom.com/llms.txt; markdown docs by appending .md to any docs URL.




Note: Headroom supports Claude Code, ChatGPT / Codex (CLI and desktop app), OpenCode, and Grok Build. Support for additional clients is planned.
Headroom is a local-first desktop tray app that routes your coding clients through a local optimization pipeline. Stable builds ship for macOS, Windows, and Linux. It installs and manages a self-contained Python runtime, bundles proven token-saving tools, and surfaces savings analytics - all without touching your system environment.
Headroom sits in your menu bar (system tray on Windows and Linux) and does three things:
pip install --user pollution.headroom for prompt optimization, rtk for CLI output compression) between your client and the LLM API.The app ships as a slim Tauri shell (~a few MB). Heavy Python components are fetched on first launch and kept in ~/Library/Application Support/Headroom (or the platform's app-data directory on Windows and Linux).
Headroom is a two-hop local proxy. Nothing leaves 127.0.0.1 except the final upstream call, which goes to the same API your client would have called directly.
Claude Code / ChatGPT (Codex) / OpenCode / Grok Build
| ANTHROPIC_BASE_URL = http://127.0.0.1:6767
| OPENAI_BASE_URL = http://127.0.0.1:6767/v1
v
:6767 Rust intercept proxy (always-on, fixed port)
| forwards locally
v
:6768 managed Python backend (headroom + rtk pipeline)
| optimizes request/response, then calls the real API
v
api.anthropic.com / api.openai.com
6768-6790 and falls back to the first free port.env block in ~/.claude/settings.json (Claude Code) and an export in a managed shell block (fenced with # >>> headroom:... >>> markers). Codex uses a provider block in ~/.codex/config.toml plus OPENAI_BASE_URL. OpenCode gets Headroom base URLs for its anthropic and openai providers in its config, and Grok Build gets a GROK_CLI_CHAT_PROXY_BASE_URL export in the managed shell block.Full disclosure of every location Headroom writes to, so you can decide before installing. The install screen in the app shows the same list, and the uninstall flow reverses every item. Paths below are the macOS locations; Windows and Linux use the platform equivalents.
On install:
~/Library/Application Support/Headroom. Your system Python is untouched.PreToolUse hook to ~/.claude/settings.json and a script at ~/.claude/hooks/headroom-rtk-rewrite.sh so Claude Code routes through Headroom. A timestamped backup of settings.json is written before any edit.~/.codex/config.toml and an OPENAI_BASE_URL export to your managed shell block so the Codex CLI and desktop app route through the local proxy. The TOML block is fenced with # >>> headroom:... >>> markers, a backup is written before any edit, and existing Codex threads are retagged to the managed provider.GROK_CLI_CHAT_PROXY_BASE_URL export to the managed shell block.~/Library/Application Support/Headroom for logs, caches, and per-client setup state.com.extraheadroom.headroom.~/Library/LaunchAgents/. Never added otherwise..zshrc, .zprofile, etc.) that prepends Headroom's managed bin directory (under ~/Library/Application Support/Headroom) to PATH so rtk is available in your terminals. Every managed block is fenced with # >>> headroom:... >>> markers and can be removed by hand if you prefer.On quit (or pause): Headroom tears down everything that would intercept your clients - the Claude Code hook entry and hook script, the ANTHROPIC_BASE_URL and OPENAI_BASE_URL redirects, the Codex provider block in ~/.codex/config.toml, the OpenCode provider URLs and plugin, and the managed shell blocks (including the Grok Build export). Codex threads are retagged back to their native provider. Claude Code and Codex behave exactly as they did before Headroom was launched. The Python runtime, logs, and keychain entries stay on disk so the next launch is fast.
On uninstall (Settings → Uninstall Headroom): Everything listed above is removed, including the LaunchAgent plist, ~/Library/Preferences/com.extraheadroom.headroom*, ~/Library/Caches/com.extraheadroom.headroom, and the keychain entries. The uninstall dialog in the app shows the full list before you confirm.
If the proxy dies unexpectedly, a watchdog restarts it; after repeated failures it auto-pauses and strips interception so your clients keep working without intervention.
| Tool | What it does | Default |
|---|---|---|
| headroom | Prompt optimization pipeline (Python) | Required |
| rtk | Token-optimized shell command proxy for your coding agent and your terminal | Opt-in add-on |
| markitdown | Converts PDFs and Office documents to clean Markdown before the agent reads them | Opt-in add-on |
| serena | MCP server with symbol-level code tools, so the agent rea |