GitHub
FreeMake your AI apps safe.
About GitHub
Superagent SDK is an open-source SDK for AI agent safety, designed to protect AI applications against prompt injections, data leaks, and harmful outputs. It provides runtime guard capabilities to detect and block malicious instructions, redact PII/PHI/secrets from text, scan repositories for AI-targeted attacks like repo poisoning, and run red team scenarios against production agents (test feature coming soon). The SDK works with any LLM provider (OpenAI, Anthropic, Google, Groq, Bedrock, etc.) and offers low-latency guard inference using open-weight models that can run on your own infrastructure. Integration options include TypeScript and Python SDKs, a CLI tool, and an MCP server for use with Claude Code and Claude Desktop. Licensed under MIT.
Key Features
Pros & Cons
- Open-source (MIT) with full transparency
- Low latency guard inference (50-100ms) suitable for real-time applications
- Works with any LLM provider, avoiding vendor lock-in
- Supports self-hosted deployment of guard models for data privacy
- Multiple integration options (SDKs, CLI, MCP) for flexible adoption
- Covers multiple safety dimensions: injection blocking, redaction, repo scanning, red teaming
- Active development with community support via Discord and GitHub
- Test (red team) feature is currently listed as 'coming soon' and not yet available
- Requires API key from superagent.sh for cloud features, which may introduce dependency on external service
- Relatively new project with potentially limited community resources compared to established solutions