Skip to main content

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 tower
  • agentgov register-device — generate device keypair + register with tower
  • agentgov install — drop client assets into ~/.claude/
  • agentgov wrap <cmd> — wrap claude (or another command) in a governed session
  • agentgov workitem <ref> — bind the current session to a work item
  • agentgov status — show current binding + totals
  • agentgov doctor — diagnose the installation

License

Apache-2.0

Release files for agentgov-cli 0.1.18

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-cli 0.1.18
File Size Uploaded
agentgov_cli-0.1.18.tar.gz 89.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for agentgov-cli 0.1.18
File Interpreter ABI Platform
agentgov_cli-0.1.18-py3-none-any.whl Python 3 none any Details

Total release size: 192.8 kB

Release files / agentgov_cli-0.1.18.tar.gz

Download URL agentgov_cli-0.1.18.tar.gz
Size 89.9 kB
Tags Source
SHA-256 checksum
How to use checksums
033557d3d3bedf29418d45e9c4aac3982f74e9db60393b6043f885678692f5cc
BLAKE2b-256 checksum
How to use checksums
cfc323b6606d1e1ad562fb3255efe6cd1890aae320c8289889dd763ba1f7c016
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.18-py3-none-any.whl

Download URL agentgov_cli-0.1.18-py3-none-any.whl
Size 102.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3851b7a5db4c8e26de0765160265027f6b04d37b8ecc9fe7dd495ab8ba9b4805
BLAKE2b-256 checksum
How to use checksums
70717b23324dda032886367b903f87cc66a175ae70ca93f1ffa81242a885321f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.3

Release history Release notifications | RSS feed

0.1.19

2 release files

This release

0.1.18 This release

2 release files

0.1.17

2 release files

0.1.16

2 release files

0.1.15

2 release files

0.1.12

2 release files

0.1.11

2 release files

0.1.9

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