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.6

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.6
File Size Uploaded
headroom_kit-0.1.6.tar.gz 254.6 kB Details

Built distribution (wheel)

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

Total release size: 287.5 kB

Release files / headroom_kit-0.1.6.tar.gz

Download URL headroom_kit-0.1.6.tar.gz
Size 254.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e678d5f2017473e1c76ccb9ffb91b55740f380e194140ff0ae381ad69d0236c3
BLAKE2b-256 checksum
How to use checksums
b023ad3f5eef06c15b7499cead1aac0986848f9a8ffba445d32b11436f065412
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 9, 2026.

Transparency log

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

Download URL headroom_kit-0.1.6-py3-none-any.whl
Size 32.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
35e87a5c08a49f3271073e2776528a4ca1010bd72226e48a2d3377d779af3fdc
BLAKE2b-256 checksum
How to use checksums
26b233a3a6c0af370533f7e62603ae39563694417bba39196ab1d429491c688e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 9, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.6 This release

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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