CLI for Strathon, the open-source AI agent firewall.
Project description
Strathon CLI
Command-line interface for Strathon, the open-source AI agent firewall.
Install
pip install strathon-cli
Usage
# Set your API key
export STRATHON_API_KEY=stra_...
# Policy management
strathon policies list
strathon policies create --name "block-email" \
--expr 'attrs["gen_ai.tool.name"] == "send_email"' --action block
strathon policies create --template block-prompt-injection
strathon policies create --from-english "block all shell commands"
strathon policies import policies.yaml
strathon policies test --name my-policy --last 100
# Traces and spans
strathon traces list --last 1h
strathon traces tree <trace-id>
strathon spans search --tool send_email --limit 50
# Operations
strathon halts create --scope project --reason "Emergency"
strathon budgets list
strathon approvals list --pending
# Compliance and audit
strathon compliance export --format sarif
strathon audit list --last 24h
# Administration
strathon admin list-users
strathon admin reset-password --email user@company.com
Every command supports --json for scripting and CI pipelines.
Configuration
| Variable | Required | Default |
|---|---|---|
STRATHON_API_KEY |
Yes | |
STRATHON_ENDPOINT |
No | http://localhost:4318 |
Documentation
License
MIT. See LICENSE.
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
strathon_cli-1.1.0.tar.gz
(12.9 kB
view details)
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 strathon_cli-1.1.0.tar.gz.
File metadata
- Download URL: strathon_cli-1.1.0.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ff83888a584dea6a7bfd6e70ea9a2311e8be5f94b118b6460d0632f18fb6d43
|
|
| MD5 |
cfd82faa6f434159042ff8b171e62196
|
|
| BLAKE2b-256 |
f71701b97f5e7d54cc1f39d8ff17306f28c0d5551949c57db2fdf5b7d6b44c86
|
File details
Details for the file strathon_cli-1.1.0-py3-none-any.whl.
File metadata
- Download URL: strathon_cli-1.1.0-py3-none-any.whl
- Upload date:
- Size: 12.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10f7178a237d135653c82fb529154d7009b34bc86a0d2b2ea3c430135cf2feb8
|
|
| MD5 |
0ef3154cd8fc56c9cf1750d4edf6cf22
|
|
| BLAKE2b-256 |
f1bee0d51f1bb9b9f2f652e628b72f589016d9b6e338ae40d5afd76b4cafa05a
|