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

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.10
File Size Uploaded
agentgov_gateway-0.1.10.tar.gz 216.8 kB Details

Built distribution (wheel)

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

Total release size: 293.1 kB

Release files / agentgov_gateway-0.1.10.tar.gz

Download URL agentgov_gateway-0.1.10.tar.gz
Size 216.8 kB
Tags Source
SHA-256 checksum
How to use checksums
bdfd22be47f255b1ae82486fd7c5e285b15ad67012de5cdf37db405e607efd3b
BLAKE2b-256 checksum
How to use checksums
37e797d1087c09695ce86fbe57cac9cfb70c56e58614504e8b51f10fa67cc334
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.10-py3-none-any.whl

Download URL agentgov_gateway-0.1.10-py3-none-any.whl
Size 76.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
34119feddaf37659e97cc1d0ea308463680ea24064ab484725bba6cb9a074cc3
BLAKE2b-256 checksum
How to use checksums
b3214d2d3673372249c8f5f98db36f8afea788c7dfde8a690eb42f5c0d646749
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 history Release notifications | RSS feed

0.1.14

2 release files

0.1.13

2 release files

0.1.12

2 release files

This release

0.1.10 This release

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

1 release file

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