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.3.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.3-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: strathon_cli-1.2.3.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.3.tar.gz
Algorithm Hash digest
SHA256 5ce57239c9e9c9b32a8badadef9b223a09cde1543aaf8a234092a70d729c76fc
MD5 ec22cb400348166303e5ae57dca92f08
BLAKE2b-256 454698869e88f15e09346f59d9ea7058e2ba91452a69abe45da8b337e865bf2a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: strathon_cli-1.2.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f0afda40548b0c63ee9ea5f0627652cf3830b48f8848dbdbf0e764e4a1f0253e
MD5 b2f72c46a15e0d549de2b75a49899b70
BLAKE2b-256 cb3dd10e073f171242c2b736c0af135dba7b7a74cf942e3bc03994ae1ea0affb

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