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 -U agentgov-cli 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.23
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| agentgov_gateway-0.1.23.tar.gz | 246.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| agentgov_gateway-0.1.23-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 336.0 kB
Release files / agentgov_gateway-0.1.23.tar.gz
| Download URL | agentgov_gateway-0.1.23.tar.gz |
|---|---|
| Size | 246.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3a12520549b9a65700bede88719af3d8c94fe8d58c5e590de16dc65b6ca5e753
|
|
BLAKE2b-256 checksum How to use checksums |
a7013b2adb9a004b06577fd92f9bdc1e1bd32af9f97c6ae3882f97d79ab8a466
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / agentgov_gateway-0.1.23-py3-none-any.whl
| Download URL | agentgov_gateway-0.1.23-py3-none-any.whl |
|---|---|
| Size | 89.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ee3c0a385c3b70d77563747df158094bec6f9effb0cd321217cd80e3ad80ddc8
|
|
BLAKE2b-256 checksum How to use checksums |
3f2176e8c0695f10e594e67c5b68ab7c5c74ca8730f7d333caadc5ca92b1a75f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Security for agentgov-gateway 0.1.23
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.