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

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.5
File Size Uploaded
headroom_kit-0.1.5.tar.gz 249.7 kB Details

Built distribution (wheel)

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

Total release size: 280.5 kB

Release files / headroom_kit-0.1.5.tar.gz

Download URL headroom_kit-0.1.5.tar.gz
Size 249.7 kB
Tags Source
SHA-256 checksum
How to use checksums
63589a8af4b3ad2b5e2ed65de3a41aa4483e9dfc590cff7770e842074c8b83eb
BLAKE2b-256 checksum
How to use checksums
991fea6a278577be1051153e92677a619dca33236f773e56057850cea861eda4
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 7, 2026.

Transparency log

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

Download URL headroom_kit-0.1.5-py3-none-any.whl
Size 30.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3a43f1f90916553029894b9568e086088f068410ab50a6b6dce2bb9549f3bcca
BLAKE2b-256 checksum
How to use checksums
288e748cc40c8b44ce924665c1d45a06c842fc6d5929fe5d7e951d767dba7306
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 7, 2026.

Transparency log

Release history Release notifications | RSS feed

0.1.6

2 release files

This release

0.1.5 This release

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