agentbastion
preventIn-process firewall for AI agents
A firewall for AI agents: block prompt injection, guard tool calls, redact PII/secrets — a checkpoint between the agent you ship and the world.
pip install agentbastion What it does
- Three guards in one SDK: inbound injection block, tool-call guard, outbound PII/secret redaction
- Tool-call guard is the differentiator — stops mass email/delete/refund/exfil
- Drop-in SDK: data never leaves your box; optional LLM judge
- Honest benchmark: recall 0.90, FPR 0.0
Quickstart
from agentbastion import Bastion
bastion = Bastion()
result = bastion.check_input(user_text)
Version 0.9.0 · MIT + BSL-1.1 (gateway)