Skip to main content

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 deployed
  • GATEWAY_SERVICE_TOKEN — a gtw_... token from agentgov register-device
  • POLICY_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) or apikey_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.20

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agentgov-gateway 0.1.20
File Size Uploaded Provenance
agentgov_gateway-0.1.20.tar.gz 243.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for agentgov-gateway 0.1.20
File Interpreter ABI Platform
agentgov_gateway-0.1.20-py3-none-any.whl Python 3 none any Details

Total release size: 332.2 kB

Release files / agentgov_gateway-0.1.20.tar.gz

Download URL agentgov_gateway-0.1.20.tar.gz
Size 243.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f5d7816d8caeffaf3a643f4a70f65509e32db4c62618958a69989bf3c84d0330
BLAKE2b-256 checksum
How to use checksums
53ccf0a5a581ada2a38dd6965553c7a4e95c24f7aed8c55b261ed8e8b4f50755
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.20-py3-none-any.whl

Download URL agentgov_gateway-0.1.20-py3-none-any.whl
Size 88.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4f1f5d3fba45d73d6c5807cc6618012dd7d51116a812e0473299c38ac3d5a604
BLAKE2b-256 checksum
How to use checksums
0a03b2400be8b36457732c780b808d5e1b60d91ac36079348811df929a9cc99b
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.20

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.

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