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
# Both distributions, always together: the CLI and the gateway ship separately
# and a version skew between them is not detectable from the CLI side.
pip install -U agentgov-cli 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
Metadata
Release files for agentgov-cli 0.1.20
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.20.tar.gz | 93.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| agentgov_cli-0.1.20-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 200.1 kB
Release files / agentgov_cli-0.1.20.tar.gz
| Download URL | agentgov_cli-0.1.20.tar.gz |
|---|---|
| Size | 93.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4775ef82ef729c99c7e58a0070c6d83b07cea02d2bce4c0f9220fd347cda85e6
|
|
BLAKE2b-256 checksum How to use checksums |
6185b35d09783fd852b42f60d5ee4771c704661060ef533f0528f6d1afc26c26
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / agentgov_cli-0.1.20-py3-none-any.whl
| Download URL | agentgov_cli-0.1.20-py3-none-any.whl |
|---|---|
| Size | 106.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7d42e926effa9e7f30debc283eaf21510e6de2346005b7b4588de1e448e44d5f
|
|
BLAKE2b-256 checksum How to use checksums |
22ecc5b727b3b23e5da6b3e57d013da8c3f9d2b501387e6d9b614555c91e87e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|