Skip to main content

Open-source AI agent firewall. Blocks dangerous agent tool calls before they execute, with in-process CEL enforcement at the tool-call boundary.

Project description

Strathon SDK

Python SDK for Strathon, the open-source AI agent firewall.

Install

pip install strathon

Optional framework integrations:

pip install "strathon[openai]"          # OpenAI
pip install "strathon[openai-agents]"   # OpenAI Agents SDK
pip install "strathon[anthropic]"       # Anthropic
pip install "strathon[claude-agent]"    # Claude Agent SDK
pip install "strathon[langgraph]"       # LangGraph
pip install "strathon[langchain]"       # LangChain
pip install "strathon[crewai]"          # CrewAI
pip install "strathon[autogen]"         # AutoGen
pip install "strathon[pydantic-ai]"     # Pydantic AI
pip install "strathon[google-adk]"      # Google ADK
pip install "strathon[all]"             # All 10 frameworks

Quick start

from strathon import Client, instrument

client = Client(
    api_key="stra_...",
    endpoint="http://localhost:4318",
)
instrument(client, frameworks=["openai"])

# Your agent code runs as normal. Strathon traces every call
# and enforces CEL policies before tool execution.

Enforce

A policy with action block stops the call before the tool body runs:

from strathon import StrathonPolicyBlocked

try:
    agent.run("Email the Q3 numbers to sales@competitor.com")
except StrathonPolicyBlocked as e:
    print(f"Blocked by policy: {e.policy_name}")
    # The tool call never executed. Recorded in the audit trail.

Seven actions: block, steer, throttle, log, alert, require_approval, allow.

What gets captured

  • Every LLM call: model, tokens in/out, cost, latency
  • Tool calls: name, arguments, result, duration
  • Agent topology: parent-child relationships, handoffs
  • Errors: failed tool calls, model errors, timeouts

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

Uploaded Source

Built Distribution

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

strathon-1.2.3-py3-none-any.whl (100.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: strathon-1.2.3.tar.gz
  • Upload date:
  • Size: 134.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for strathon-1.2.3.tar.gz
Algorithm Hash digest
SHA256 5101d20e836655682c6580e6aa54c16f9237a66ea59ed9fe566eebdf2e945c5a
MD5 3333ca08d962c74ba1f3cb1bcb6f2674
BLAKE2b-256 ce8ef066f14aafc6d82b7633590df67d3cd3b6b22711cf64a26051b5362eadbc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: strathon-1.2.3-py3-none-any.whl
  • Upload date:
  • Size: 100.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for strathon-1.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8dac6afe62771df765a7578e5fa0714f8c946cef55b3c90322c9e833138f72ba
MD5 53483bcd91a272f5d2ffaf98f8a40ff5
BLAKE2b-256 74a45bd1864af5afae13f4ec3bc22a1ffdad529f4828ce320f88a3f71da8bdf3

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