Skip to main content

Headroom Kit

PyPI - Version PyPI - Python Version skills.sh License: MIT

Run an existing coding agent through a local Headroom proxy. Kit owns routing, Copilot authentication, editor isolation, and the shared proxy. Headroom owns compression and metrics. This package does not install agents, replace the headroom command, or download Python packages when an agent launches.

agent -> headroom-kit -> Headroom on 127.0.0.1 -> model provider

Install

You need Python 3.13 and the agent you want to launch. Kit and its pinned Headroom dependency install into the same environment:

uv tool install --python 3.13 headroom-kit

A normal virtual environment works too:

uv venv --python 3.13
uv pip install headroom-kit
. .venv/bin/activate

Do not point Kit at a separate headroom executable. It imports Headroom's Python modules. Copilot login is headroom-kit copilot-auth login in that same install. Headroom may still download its own model files on first proxy startup. That is separate from installing this package.

Check both versions without starting a proxy:

headroom-kit --version

Set up with an agent

This repository includes install-headroom-kit, an Agent Skill that installs the CLI and checks the Headroom version without starting a proxy.

The skills CLI can install it for the current project:

npx skills add ruarfff/headroom-kit --skill install-headroom-kit

Make it available to your agents:

npx skills add ruarfff/headroom-kit --skill install-headroom-kit --agent '*' --global --yes

See the skills CLI documentation.

Commands

headroom-kit [--config PATH] run <agent> -- <agent arguments...>
headroom-kit copilot-auth login
headroom-kit status
headroom-kit stop <port>

Agents: codex, codex-app, copilot, copilot-app, copilot-vscode, pi, opencode.

headroom-kit copilot-auth login
headroom-kit run codex --
headroom-kit run copilot -- --model auto
headroom-kit run pi -- --provider openai --model <model-id>
headroom-kit run opencode --
headroom-kit status
headroom-kit stop 8787

Arguments after -- are forwarded unchanged. headroom-kit run codex -- --help shows Codex help and does not start a proxy. status and stop do not need provider credentials or model downloads.

Agent launches open the Headroom dashboard in your default browser on macOS and Linux desktops. Set HEADROOM_OPEN_DASHBOARD=0 to disable this. SSH sessions and Linux sessions without a display skip it.

Shared proxies stay up after the client exits. Stopping one interrupts every client on that port. Kit will not adopt or stop an unrelated listener. An incompatible managed proxy must be stopped explicitly before a new one can use the port.

Configure

Built-in defaults are enough for a normal install. --config accepts a JSON object of non-secret integration defaults. Precedence is HEADROOM_* environment variables, then the file, then the built-in defaults. See configuration.

HEADROOM_VERSION, and config keys version, uv, and python, are rejected. Install the tested Headroom release instead of selecting one at launch.

Agents

Install and sign in to the agent yourself. Kit does not install it.

Agent Prerequisite
codex Existing Codex sign-in. Built-in OpenAI provider only.
copilot headroom-kit copilot-auth login, then a Copilot CLI that honours COPILOT_API_URL.
copilot-app macOS only. Quit GitHub Copilot before launch. Uses a separate profile with Headroom models.
pi Pi installed. Copilot routing uses headroom-kit copilot-auth login.
opencode OpenCode v2.
copilot-vscode code or code-insiders. Uses an isolated profile, not your normal editor data.
codex-app macOS only. Quit Codex before launch.

Windows is not part of this package. Linux and macOS CLI lifecycle checks run in CI. GUI behaviour is platform-specific; live Linux agent support is not verified. Details are in usage and validation.

MIT. See NOTICE for attribution.

Metadata

Release files for headroom-kit 0.1.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for headroom-kit 0.1.9
File Size Uploaded Provenance Actions
headroom_kit-0.1.9.tar.gz 273.7 kB With provenance Details for headroom_kit-0.1.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for headroom-kit 0.1.9
File Interpreter ABI Platform Actions
headroom_kit-0.1.9-py3-none-any.whl Python 3 none any Details for headroom_kit-0.1.9-py3-none-any.whl

Total release size: 306.8 kB

Release files / headroom_kit-0.1.9.tar.gz

Download URL headroom_kit-0.1.9.tar.gz
Size 273.7 kB
Tags Source
SHA-256 checksum
How to use checksums
65cb6005eaa672a32710c80739848d75378602119ec0bd12872c072b54acaaee
BLAKE2b-256 checksum
How to use checksums
e3ddace10fdac6574b1c05f8fa215409547af78a0d43d265e77a7bf76e888965
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

Release files / headroom_kit-0.1.9-py3-none-any.whl

Download URL headroom_kit-0.1.9-py3-none-any.whl
Size 33.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d061573e0640dcc789bbc872df76bcf88669fa09e87db0ca08c7b323730cfc71
BLAKE2b-256 checksum
How to use checksums
433c495cd1a4cd10824405e972ad61776177a687dd2a5f595e79c737529ed135
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

Security for headroom-kit 0.1.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for headroom_kit-0.1.9.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 6, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page