Skip to main content

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


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.0.tar.gz (17.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

strathon_cli-1.2.0-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

Details for the file strathon_cli-1.2.0.tar.gz.

File metadata

  • Download URL: strathon_cli-1.2.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

Hashes for strathon_cli-1.2.0.tar.gz
Algorithm Hash digest
SHA256 985b551765b7144f0e47fd84b54a275eae4e54624b634e8a93bc2241c0e607f5
MD5 63e67fcb5c17eef403c1944750f3abe2
BLAKE2b-256 4ab7217271f9b893b9bac1c748e2a03372da8141b7f68f64f85177614397c573

See more details on using hashes here.

File details

Details for the file strathon_cli-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: strathon_cli-1.2.0-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

Hashes for strathon_cli-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9aa06b1dfe9156a44d7a4cf2aa4beb646b89411c1d17b29879279ec266fcf5ee
MD5 743842c74479736ea4f5bc3a958915ea
BLAKE2b-256 a73affed2ac8d53ef01ae0d2e8d0289805f508a3d82f7f9f617d0dac6525aa26

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page