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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
babfebc3a5f4a21b357a010e955c9266ac35f9eb1b9e318ae571fc97b657b91d
|
|
| MD5 |
3bb25e854c87a5aec806acec35ec2031
|
|
| BLAKE2b-256 |
d5c68e746f2b0dd193ef83b1f0694ce1cd438bfd321d6db4754e30f34809d9ea
|
Provenance
The following attestation bundles were made for agentguard_dev-0.1.0.tar.gz:
Publisher:
publish-cli.yml on Nagamiji/agentguard
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agentguard_dev-0.1.0.tar.gz -
Subject digest:
babfebc3a5f4a21b357a010e955c9266ac35f9eb1b9e318ae571fc97b657b91d - Sigstore transparency entry: 2194708485
- Sigstore integration time:
-
Permalink:
Nagamiji/agentguard@3d0c602a29f052f79bb702645266af2248ae0004 -
Branch / Tag:
refs/tags/cli-v0.1.0 - Owner: https://github.com/Nagamiji
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-cli.yml@3d0c602a29f052f79bb702645266af2248ae0004 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
96c90103c9ecb7250e87622aee33d0e64d040874c389105b6a186457d5f0fba9
|
|
| MD5 |
7695f12e3ed77b6615f4da8f2c5de338
|
|
| BLAKE2b-256 |
4a924db83723b7f154e5bfed3562b6168feda009f2a5303be2b3e6f09d0f3fdc
|
Provenance
The following attestation bundles were made for agentguard_dev-0.1.0-py3-none-any.whl:
Publisher:
publish-cli.yml on Nagamiji/agentguard
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agentguard_dev-0.1.0-py3-none-any.whl -
Subject digest:
96c90103c9ecb7250e87622aee33d0e64d040874c389105b6a186457d5f0fba9 - Sigstore transparency entry: 2194708493
- Sigstore integration time:
-
Permalink:
Nagamiji/agentguard@3d0c602a29f052f79bb702645266af2248ae0004 -
Branch / Tag:
refs/tags/cli-v0.1.0 - Owner: https://github.com/Nagamiji
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-cli.yml@3d0c602a29f052f79bb702645266af2248ae0004 -
Trigger Event:
push
-
Statement type: