Skip to main content

AgentGuard CLI — the deployment gate that blocks unsafe AI agents in CI.

Project description

AgentGuard CLI

Security testing for AI agents, before production. agentguard evaluates an agent version against its scenarios and policy, prints a verdict, and exits non-zero when a deploy must be blocked — so a CI step fails and stops the merge. That exit code is the whole point.

The judgement is deterministic (never an LLM deciding what's a vulnerability) and reproducible: the same configuration always yields the same verdict, explainable to the engineer it blocks at 2am.

Install

pip install agentguard-dev

The CLI is a thin API client — its only dependency is httpx. It talks to an AgentGuard control plane (self-hosted or hosted).

First scan

export AGENTGUARD_API_KEY=ag_your_key_here     # from your org's onboarding

agentguard scan \
  --api-url https://your-agentguard-host \
  --agent my-support-bot \
  --manifest manifest.json \
  --environment prod \
  --html report.html

Exit codes are the CI contract:

Code Meaning
0 allowed
20 blocked (a scenario failed at blocking severity)
10 error
30 unknown (could not evaluate — fail closed)

--html report.html writes a self-contained report (no external requests) with the verdict, evidence, and a per-finding remediation.

Compute a fingerprint locally

agentguard fingerprint --manifest manifest.json

The fingerprint identifies an exact agent configuration; a verdict is bound to it, so v2 never inherits v1's pass.

More

agentguard --help lists every command. Full docs and the control-plane setup live in the repository.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

agentguard_dev-0.1.0.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentguard_dev-0.1.0-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

File details

Details for the file agentguard_dev-0.1.0.tar.gz.

File metadata

  • Download URL: agentguard_dev-0.1.0.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for agentguard_dev-0.1.0.tar.gz
Algorithm Hash digest
SHA256 babfebc3a5f4a21b357a010e955c9266ac35f9eb1b9e318ae571fc97b657b91d
MD5 3bb25e854c87a5aec806acec35ec2031
BLAKE2b-256 d5c68e746f2b0dd193ef83b1f0694ce1cd438bfd321d6db4754e30f34809d9ea

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentguard_dev-0.1.0.tar.gz:

Publisher: publish-cli.yml on Nagamiji/agentguard

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file agentguard_dev-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: agentguard_dev-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 18.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for agentguard_dev-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 96c90103c9ecb7250e87622aee33d0e64d040874c389105b6a186457d5f0fba9
MD5 7695f12e3ed77b6615f4da8f2c5de338
BLAKE2b-256 4a924db83723b7f154e5bfed3562b6168feda009f2a5303be2b3e6f09d0f3fdc

See more details on using hashes here.

Provenance

The following attestation bundles were made for agentguard_dev-0.1.0-py3-none-any.whl:

Publisher: publish-cli.yml on Nagamiji/agentguard

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page