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" # needs STRATHON_AI_API_KEY on the receiver
strathon policies import policies.yaml
strathon policies test --name my-policy --last 100
# Traces and spans
strathon traces list --limit 50 --agent my-agent
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 --status pending
# Compliance and audit
strathon compliance export --format sarif
strathon audit list --limit 100
# Administration
strathon admin list-users
strathon admin reset-password --email user@company.com
Every read command takes a --json flag for scripting and CI pipelines.
Configuration
| Variable | Required | Default |
|---|---|---|
STRATHON_API_KEY |
Yes | |
STRATHON_ENDPOINT |
No | http://localhost:4318 |
Documentation
License
Apache License 2.0. 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.2.2.tar.gz
(17.8 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.2.2.tar.gz.
File metadata
- Download URL: strathon_cli-1.2.2.tar.gz
- Upload date:
- Size: 17.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
439c5ce772cd9d79b630fd4ecd8e0b2de3ffe02f59ad96b5d111bb4220084046
|
|
| MD5 |
e1aefa42f52b5981abdc4f9fd2a77442
|
|
| BLAKE2b-256 |
3964c6f18e823ac40743a2b3578f35639969751e4ab9b8b1c6f2fc717503092b
|
File details
Details for the file strathon_cli-1.2.2-py3-none-any.whl.
File metadata
- Download URL: strathon_cli-1.2.2-py3-none-any.whl
- Upload date:
- Size: 17.7 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 |
c820b3284f432e18a48677b4235b2ed997ed2c57bf4ac48842d7e551821ac523
|
|
| MD5 |
58431ac5b690d97c58efe597fc067283
|
|
| BLAKE2b-256 |
1d78dffc0e4bf3c3355be1332059034b0193325805ecc248b46b73b6e8911ff4
|