CLI Reference
strathon-cli is the command-line interface for Strathon. It talks to the same
receiver REST API the dashboard and SDK use, so anything you can do in the
dashboard you can script in CI.
Install
pip install strathon-cliConfiguration
The CLI reads two environment variables:
| Variable | Required | Default |
|---|---|---|
STRATHON_API_KEY | Yes | |
STRATHON_ENDPOINT | No | http://localhost:4318 |
export STRATHON_API_KEY=stra_...
export STRATHON_ENDPOINT=https://strathon.your-domain.com # optionalEvery command accepts a --json flag that prints raw JSON instead of formatted
tables, for piping into jq or consuming in scripts and CI pipelines.
Command groups
The CLI is organized into 13 command groups. Run strathon --help or
strathon <group> --help for the full option list on any command.
policies
Manage firewall policies.
strathon policies list
strathon policies create --name "block-email" \
--expr 'attrs["gen_ai.tool.name"] == "send_email"' --action block
strathon policies create --template block-dangerous-tools
strathon policies create --from-english "block all shell commands"
strathon policies import policies.yaml
strathon policies test --name my-policy --last 100
strathon policies get <policy-id>
strathon policies enable <policy-id>
strathon policies disable <policy-id>
strathon policies delete <policy-id>
strathon policies suggest
strathon policies conflictspolicies create requires exactly one of --expr, --template, or
--from-english. The --template form creates a policy from a built-in
OWASP-mapped template without writing CEL; --from-english generates a CEL
expression from a plain-English description for you to review and confirm.
policies import accepts YAML or JSON. policies test dry-runs a policy
against recent traces without enforcing it. policies suggest proposes policies
from observed traffic, and policies conflicts flags contradictory rules.
traces
strathon traces list --last 1h
strathon traces tree <trace-id>spans
strathon spans search --tool send_email --limit 50halts
Operator kill-switches. See Runtime Intervention.
strathon halts list
strathon halts create --scope project --reason "Emergency"
strathon halts delete <halt-id>templates
strathon templates list
strathon templates apply <template-name>agents
strathon agents listcompliance
strathon compliance export --format sarifbudgets
Cost and iteration budgets. See Budgets.
strathon budgets list
strathon budgets create --name "monthly cap" --type cost --limit 100 --window fixed
strathon budgets forecast
strathon budgets delete <budget-id>audit
strathon audit list --last 24hprojects
strathon projects list
strathon projects create --name "Production Agents" --slug prod-agentsapprovals
Human-in-the-loop approvals. See Human Approval.
strathon approvals list --status pending
strathon approvals approve <approval-id>
strathon approvals deny <approval-id>notifications
strathon notifications listadmin
strathon admin list-users
strathon admin create-user --email user@company.com
strathon admin reset-password --email user@company.com
strathon admin transfer-ownership --to user@company.com
strathon admin revoke-all-keysScripting example
Because every command supports --json, the CLI composes with standard Unix
tooling. For example, list every policy currently in shadow status:
strathon policies list --json | jq '.[] | select(.shadow == true) | .name'See also
- Runtime Intervention — policies, actions, halts, budgets, webhooks
- CEL Reference — the policy match-expression language
- API Keys — creating and scoping the keys the CLI authenticates with