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"
strathon policies import policies.yaml
strathon policies test --name my-policy --last 100

# Traces and spans
strathon traces list --last 1h
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 --pending

# Compliance and audit
strathon compliance export --format sarif
strathon audit list --last 24h

# Administration
strathon admin list-users
strathon admin reset-password --email user@company.com

Every command supports --json for scripting and CI pipelines.

Configuration

Variable Required Default
STRATHON_API_KEY Yes
STRATHON_ENDPOINT No http://localhost:4318

Documentation

License

MIT. 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.1.0.tar.gz (12.9 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.1.0-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: strathon_cli-1.1.0.tar.gz
  • Upload date:
  • Size: 12.9 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.1.0.tar.gz
Algorithm Hash digest
SHA256 9ff83888a584dea6a7bfd6e70ea9a2311e8be5f94b118b6460d0632f18fb6d43
MD5 cfd82faa6f434159042ff8b171e62196
BLAKE2b-256 f71701b97f5e7d54cc1f39d8ff17306f28c0d5551949c57db2fdf5b7d6b44c86

See more details on using hashes here.

File details

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

File metadata

  • Download URL: strathon_cli-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 12.5 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 10f7178a237d135653c82fb529154d7009b34bc86a0d2b2ea3c430135cf2feb8
MD5 0ef3154cd8fc56c9cf1750d4edf6cf22
BLAKE2b-256 f1bee0d51f1bb9b9f2f652e628b72f589016d9b6e338ae40d5afd76b4cafa05a

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