agentgov-gateway
The local FastAPI gateway that Claude Code (via ANTHROPIC_BASE_URL=http://localhost:8000) talks to.
Runs on each developer's machine. Vaults the upstream credential (X25519 sealed-box decrypted from the signed policy snapshot). Enforces repo-lock + work-item binding + budget middleware chain. Streams SSE verbatim to Claude Code while tee-parsing usage frames for attribution.
Part of the AgentGov project — see github.com/deepakahu/agentGov for the full monorepo (control tower, CLI, client assets, Supabase migrations, docs).
Install
pip install agentgov-gateway
Configure
Requires these env vars — see the project .env.example for the full list:
CONTROL_TOWER_URL— where your AgentGov control tower is deployedGATEWAY_SERVICE_TOKEN— agtw_...token fromagentgov register-devicePOLICY_SIGNING_PUBLIC_KEY_B64— Ed25519 public key (control tower gives you this)DEVICE_KEY_PATH— path to your X25519 device private key (default:./.runtime/device_key.priv)UPSTREAM_MODE—oauth_passthrough(default, personal) orapikey_vault
Run
uvicorn agentgov_gateway.main:app --host 127.0.0.1 --port 8000
Under systemd / launchd for persistent operation.
License
Apache-2.0
Metadata
Release files for agentgov-gateway 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| agentgov_gateway-0.1.8.tar.gz | 194.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| agentgov_gateway-0.1.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 261.7 kB
Release files / agentgov_gateway-0.1.8.tar.gz
| Download URL | agentgov_gateway-0.1.8.tar.gz |
|---|---|
| Size | 194.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
448726376b8c2eca7b1b43c9da939a82d53f58d67e39213948519e7f4f5b4f84
|
|
BLAKE2b-256 checksum How to use checksums |
4c08e9a246b721ea976d63b078c4a98284cf32c89ca125b04a5fbdad252ff7c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / agentgov_gateway-0.1.8-py3-none-any.whl
| Download URL | agentgov_gateway-0.1.8-py3-none-any.whl |
|---|---|
| Size | 67.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
07aeaacd36e8237a04312715a6ef41368a4a5ea7343675448f2fa53a1405e837
|
|
BLAKE2b-256 checksum How to use checksums |
2137504d5acda8534bc878d8854d356e44af16244c685a7a8281c9106aca43f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|