Skip to main content

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.

Metadata

Release files for strathon 1.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for strathon 1.4.0
File Size Uploaded
strathon-1.4.0.tar.gz 143.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for strathon 1.4.0
File Interpreter ABI Platform
strathon-1.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 250.2 kB

Release files / strathon-1.4.0.tar.gz

Download URL strathon-1.4.0.tar.gz
Size 143.9 kB
Tags Source
SHA-256 checksum
How to use checksums
973b47b39ff4002193b32a625c57dd96a419f867da644f8876f33982f3b054ad
BLAKE2b-256 checksum
How to use checksums
56480fcd355614a7184f639041c2765c569c40ad2707122611c5941b449c7a71
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / strathon-1.4.0-py3-none-any.whl

Download URL strathon-1.4.0-py3-none-any.whl
Size 106.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
36c52f264d13159f29740ba1ad580bc87f12fef45310b6fcf555395a6fca9a49
BLAKE2b-256 checksum
How to use checksums
fd900a5a41537bb6454d5636cc6bce2460adc4a5a1d4987b71239ee64f82ead1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release history Release notifications | RSS feed

This release

1.4.0 This release

2 release files

1.3.0

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page