A Python SDK that sits between your AI app and any LLM intercepting every prompt and response to enforce security policies, block data leaks, and detect threats. Everything runs locally.
Autonomous agents run in loops. If they get stuck retrying a bug fix, you can wake up to a $100 API bill overnight. You have zero visibility until the bill arrives.
Coding agents require full codebase access. If you leave an AWS_SECRET_KEY in a
.env file, the agent will silently upload it to a third-party LLM provider.
Sending unauthorized PII (like customer emails in a test database) to foreign LLM APIs violates privacy regulations like GDPR and DPDP.
Guardian acts as an HTTP proxy or a native Python SDK, integrating effortlessly with modern AI tools without modifying their internal code.
analytics command.
policy.yaml file.
If using the Proxy, developers see the block instantly inside the UI of their tool
(e.g. Claude Code chat) and in the background proxy logs.
If using the SDK, it surfaces in their standard Python server logs.
Zero crashes. In Proxy mode, Guardian cleanly returns a standard HTTP 400/403
error. This ensures CLI agents display an error message gracefully instead of crashing their
process.
In SDK mode, it raises a standard Python Exception.
No obscure stack traces. They see a completely transparent, actionable string telling them exactly
what policy they violated.
Example: 🚨 [BUDGET_EXCEEDED] Daily budget of $10.00
exceeded.