Reference
CLI reference
Every command and option of agentkavach.
Exit codes
0: success3: refused: the authorization block is missing or not confirmed4: the config is invalid5: the target could not be reached6: a CI gate failed (findings at or above the threshold)
agentkavach benchmark
Language-gap benchmark: packs x models x guard settings, via LeadBot (PRD §9, §16).
| Argument or option | Description | Default |
|---|---|---|
config (required) |
Benchmark config (models, guards, prereg) | |
--allow-uncommitted-prereg, --no-allow-uncommitted-prereg |
Explore without a committed pre-registration (marked unpublishable). | |
--dry-run |
agentkavach compare
Show new, regressed, fixed and persisting findings between two runs.
| Argument or option | Description | Default |
|---|---|---|
old (required) |
results.json from the earlier run | |
new (required) |
results.json from the later run | |
--out |
Write compare.json here | |
--fail-on-regression, --no-fail-on-regression |
CI gate: exit 6 on any new or regressed finding. | |
--allow-different-targets, --no-allow-different-targets |
agentkavach demo
Scan LeadBot, a deliberately vulnerable demo agent running locally (offline, no keys).
| Argument or option | Description | Default |
|---|---|---|
--guarded |
Same as –defence keyword. | |
--defence |
LeadBot’s defence: none, keyword (a typical English filter) or hardened (the recommended fixes). Simulated model only. | none |
--languages |
Comma-separated variants. | en,hinglish,hi |
--misspell, --no-misspell |
Also run seeded misspelled Hinglish/romanised forms. | |
--seed |
7 |
|
--model-url |
Back LeadBot with a real LLM (OpenAI-compatible base URL). | |
--model |
Model name for –model-url. | |
--model-key-env |
Env var holding the model API key, if any. | |
--output-dir |
agentkavach-reports |
|
-v, --verbose |
agentkavach export
Export scenarios for other tools (SR-21). Unexportable ones are listed with reasons.
| Argument or option | Description | Default |
|---|---|---|
--out |
File to write | |
--format |
Export format (promptfoo) | promptfoo |
--pack |
core |
|
--languages |
Comma-separated variants | en,hi,hi-Latn,hinglish |
--planted-marker |
String planted in your system prompt (enables leakage tests). |
agentkavach list-packs
List built-in attack packs.
agentkavach mcp-proxy
Relay an MCP stdio server unchanged and log its tool calls (for target.tool_log_file).
| Argument or option | Description | Default |
|---|---|---|
--log |
JSONL file to append tools/call records to | |
--name |
Server name recorded in the log | mcp |
agentkavach mcp-scan
Connect to MCP servers, list their tools and run static checks. Calls no tools.
| Argument or option | Description | Default |
|---|---|---|
config (required) |
Path to an MCP scan config | |
--dry-run |
||
-v, --verbose |
agentkavach report
Render report.json, report.html and report.sarif from a scan’s results.json.
| Argument or option | Description | Default |
|---|---|---|
results (required) |
results.json from a scan | |
--out |
Where to write the report | |
--fail-on-severity |
||
--fail-on-grade |
||
--sarif-location |
File that SARIF results point at (usually your scan config) | agentkavach.yaml |
agentkavach review
Fluent-speaker review of language variants (ADR-0006).
agentkavach review approve
Record YOUR approval of a variant’s current text. For human reviewers only.
| Argument or option | Description | Default |
|---|---|---|
scenario (required) |
||
variant (required) |
||
--by |
Your handle, as listed in REVIEWERS.md | |
--pack |
core |
agentkavach review check
CI check: approvals name listed reviewers and real variants; report stale ones.
| Argument or option | Description | Default |
|---|---|---|
--pack |
core |
agentkavach review list
Show every variant’s review status.
| Argument or option | Description | Default |
|---|---|---|
--pack |
Built-in pack name or directory | core |
--status |
Only show variants with this status |
agentkavach scan
Scan one authorized target with the configured attack packs.
| Argument or option | Description | Default |
|---|---|---|
config (required) |
Path to scan.yaml | |
--dry-run |
Validate and estimate; send nothing. | |
--probe |
Send one connectivity probe instead of the packs. | |
--fail-on-severity |
CI gate: exit 6 on any finding at or above this severity. | |
--fail-on-grade |
CI gate: exit 6 if the grade is this letter or worse. | |
-v, --verbose |
agentkavach ui
Start the local web app and API (needs: pip install ‘agentkavach[ui]’).
| Argument or option | Description | Default |
|---|---|---|
--workspace |
Folder for configs and runs (a .agentkavach/ folder inside) | . |
--host |
Loopback address to bind | 127.0.0.1 |
--port |
Port (0 picks a free one) | |
--no-browser |
||
--i-understand-remote-access |