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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file strathon-1.2.2.tar.gz.
File metadata
- Download URL: strathon-1.2.2.tar.gz
- Upload date:
- Size: 133.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4d53ae9278b6d1265cafc862b2b219557ab4767aecbabc88729316d3cb14912
|
|
| MD5 |
a5ead7a32e023a19ea3b40b6d7ab69dc
|
|
| BLAKE2b-256 |
fff8241826000377bad4f8fde91e73b594623faf34aefce72c8767ad3570558d
|
File details
Details for the file strathon-1.2.2-py3-none-any.whl.
File metadata
- Download URL: strathon-1.2.2-py3-none-any.whl
- Upload date:
- Size: 100.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4ef58cdf99d1a66abd582dadd97d36fad2f0bd6dce104dcd67ed148dc99d852
|
|
| MD5 |
68577a0f43a1172ab882edc9ff84b709
|
|
| BLAKE2b-256 |
a8fb6003cce4c5caf90ba11747dd422c7c31c459593ee029f4d13b77f4bd8f16
|