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-dangerous-tools
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.3.0.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.3.0.tar.gz.
File metadata
- Download URL: strathon_cli-1.3.0.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 |
fea85bb200e73f6e471e995d32eb8bbd012930e794a84c8162c826feb4f509fd
|
|
| MD5 |
fde4ddf042e4d92ac816403ce2e156cd
|
|
| BLAKE2b-256 |
35d2166cc9874382df6f0c419b84e8fb171d58eb03125a6be5d9a15c16ec1fc5
|
File details
Details for the file strathon_cli-1.3.0-py3-none-any.whl.
File metadata
- Download URL: strathon_cli-1.3.0-py3-none-any.whl
- Upload date:
- Size: 17.8 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 |
f25513a2ff161a30f18a7a51adf76294b06d749a0cffd3018e8fe98d4403fe3f
|
|
| MD5 |
b713c2f8942df886d4b3082aad9e5603
|
|
| BLAKE2b-256 |
fb8275d817000374505f70b390eaf9a0384b806297da299de49c8aed4298c8df
|