agentgov
The developer-laptop CLI for AgentGov.
Wraps Claude Code to bind sessions to work items and enforce governance from a signed policy snapshot. Runs alongside agentgov-gateway (the local proxy) — this CLI handles login, device registration, session wrapping, work-item binding, and diagnostics.
Part of the AgentGov project — see github.com/deepakahu/agentGov for the full monorepo.
Install
pip install agentgov agentgov-gateway
First-time setup
# Attach this machine to your AgentGov control tower
agentgov login --tower https://your-agentgov.vercel.app
# Register this device (generates an X25519 keypair, gets a gtw_ token)
agentgov register-device --name "$(hostname)"
# Drop Claude Code hooks + statusline + slash command into ~/.claude/
agentgov install
# Start the gateway (background)
agentgov-gateway &
Every day
# Run Claude Code through the governed gateway
agentgov wrap claude
# Bind the current session to a work item
# (or use the /workitem slash command inside Claude Code)
agentgov workitem PROJ-1234
Diagnose
agentgov status # what's my current binding, tokens, quota
agentgov doctor # is everything wired correctly
Commands
agentgov login— attach this machine to a user in the control toweragentgov register-device— generate device keypair + register with toweragentgov install— drop client assets into~/.claude/agentgov wrap <cmd>— wrapclaude(or another command) in a governed sessionagentgov workitem <ref>— bind the current session to a work itemagentgov status— show current binding + totalsagentgov doctor— diagnose the installation
License
Apache-2.0
Release files for agentgov-cli 0.1.15
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_cli-0.1.15.tar.gz | 71.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| agentgov_cli-0.1.15-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 156.2 kB
Release files / agentgov_cli-0.1.15.tar.gz
| Download URL | agentgov_cli-0.1.15.tar.gz |
|---|---|
| Size | 71.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
52716361406f99f199d30ae4a9a472647d5b0b903ffb5f6a3a47d7c6401ab517
|
|
BLAKE2b-256 checksum How to use checksums |
166b61bd22115cda115ba15107763a559308efc6681915ee174f54c4d8423bcf
|
| 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_cli-0.1.15-py3-none-any.whl
| Download URL | agentgov_cli-0.1.15-py3-none-any.whl |
|---|---|
| Size | 84.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b3236b0e6b99eff9874dab9d50a421c95b7fbbcda792b355307bca410140b64a
|
|
BLAKE2b-256 checksum How to use checksums |
8b2d3886f4ed5934703a0f30645254ffa5841ad2719ded4a6c3c1b5a6fa1330b
|
| 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}
|