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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agentgov_gateway-0.1.2-py3-none-any.whl.
File metadata
- Download URL: agentgov_gateway-0.1.2-py3-none-any.whl
- Upload date:
- Size: 47.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4f6e1f38193ad78495b76b8e14ae2d42547bc060c75d549be2e47a450b086db
|
|
| MD5 |
29b33531107e60f748160e2b41c15c5b
|
|
| BLAKE2b-256 |
f66d07cd52d46dcc1c80dde4d33fca781bc436e043dfd65ad4bae235e65fffe4
|