Skip to main content

agentgov

The developer-laptop CLI for TokenAllot.

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 TokenAllot 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 TokenAllot 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

Metadata

Release files for agentgov-cli 0.1.25

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.25
File Size Uploaded Provenance Actions
agentgov_cli-0.1.25.tar.gz 126.3 kB Without provenance Details for agentgov_cli-0.1.25.tar.gz

Built distribution (wheel)

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

Total release size: 268.2 kB

Release files / agentgov_cli-0.1.25.tar.gz

Download URL agentgov_cli-0.1.25.tar.gz
Size 126.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2660e8dfd3656b026b545fe6cda3fa13796765f8cda5adf07b23c2396f19074d
BLAKE2b-256 checksum
How to use checksums
93ad547ffc4a81e98c8c1d2ed859e9a3be98d8e64e194adba29b795f9e93db2b
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.25-py3-none-any.whl

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

Security for agentgov-cli 0.1.25

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