Skip to main content

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.

Metadata

Release files for strathon-cli 1.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for strathon-cli 1.4.0
File Size Uploaded
strathon_cli-1.4.0.tar.gz 19.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for strathon-cli 1.4.0
File Interpreter ABI Platform
strathon_cli-1.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 38.0 kB

Release files / strathon_cli-1.4.0.tar.gz

Download URL strathon_cli-1.4.0.tar.gz
Size 19.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1010d33586e28538a62756056a0bc36ef78afa56fe69b1792893d6e5bf6c7fb0
BLAKE2b-256 checksum
How to use checksums
a6430420427fd2fa47ec98e805481b853d8adadf83e2e41e58707146d6260295
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / strathon_cli-1.4.0-py3-none-any.whl

Download URL strathon_cli-1.4.0-py3-none-any.whl
Size 18.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
663874b098f63fd4972ec293858a4c4a39c9d2aaa9fbdd6185578af6120bbb78
BLAKE2b-256 checksum
How to use checksums
e321621c461f3275a395e9a37e09a238a76b66672b4c644c0b17bd824b7515ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release history Release notifications | RSS feed

This release

1.4.0 This release

2 release files

1.3.0

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page