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

Uploaded Python 3

File details

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

File metadata

  • Download URL: strathon_cli-1.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 ac55483717f3c9d8f6be281e511ffb2b19029dbc29878e700b1b8c9204952a50
MD5 1832055deeab6a031c179c239e31458c
BLAKE2b-256 321050487e1442a49c2fc96ee733c81566d17b6fbed99c6cb85ae8d8458c2086

See more details on using hashes here.

File details

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

File metadata

  • Download URL: strathon_cli-1.2.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bbfdb22492ff644f93487b1e5d7bea47185d3d489d3541a262e8abe05ab33f62
MD5 9ae68fd195330b3efbf502154b2fb8ed
BLAKE2b-256 a29ea68fa625e3946ee078fdae4aac1999c91642b8e31a19b4c259b5d38a63ee

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