Superagent is an open-source TypeScript/SDK to guard AI apps against prompt injections, redact PII, and scan repositories for threats. It supports TypeScript, Python, and CLI integrations and is MIT-licensed.
Collecting history — the radar snapshots this repo daily. The trend line appears after 3 days of data (1 so far).
What it is
An open-source SDK for AI agent safety. Block prompt injections, redact PII and secrets, scan repositories for threats, and run red team scenarios against your agent.
How it works
Provides Guard, Redact, Scan, and Test capabilities in TypeScript and Python, with a CLI and MCP Server integration. Example usage shows creating a client and performing guard and redact operations.
Getting started
Get started: Sign up at https://superagent.sh to get your API key.
TypeScript (SDK):
npm install safety-agent
Python (SDK):
uv add safety-agent
Set your API key:
export SUPERAGENT_API_KEY=your-key
Integration options:
- TypeScript SDK: Embed guard, redact, and scan directly in your app
- Python SDK: Embed guard, redact, and scan directly in Python apps
- CLI: Command-line tool for testing and automation
- MCP Server: Use with Claude Code and Claude Desktop
## Recent releases
Latest node and rust package releases are listed with versions and dates, showing npm and cargo installation commands:
- node-v0.0.9 (2025-09-14):
- Via npm: `npm install -g ai-firewall`
- Via GitHub Packages: `npm install -g @superagent-ai/ai-firewall`
- Via Docker: `docker pull ghcr.io/superagent-ai/superagent/rust:`
- rust-v0.0.9 (2025-09-14):
- Via crates.io: `cargo install ai-firewall`
- Via Docker: `docker pull ghcr.io/superagent-ai/superagent/rust:`
- rust-v0.0.8 (2025-09-11):
- Via crates.io: `cargo install ai-firewall`
- Via Docker: `docker pull ghcr.io/superagent-ai/superagent/rust:`
- node-v0.0.8 (2025-09-11):
- Via npm: `npm install -g ai-firewall`
- Via GitHub Packages: `npm install -g @superagent-ai/ai-firewall`
- rust-v0.0.7 (2025-09-08):
- Via crates.io: `cargo install ai-firewall`
- Via Docker: `docker pull ghcr.io/superagent-ai/superagent/rust:`
- node-v0.0.8 (2025-09-08):
- Via npm: `npm install -g ai-firewall`
- Via GitHub Packages: `npm install -g @superagent-ai/ai-firewall`
## Traction
GitHub stars: 6699
## Behind the repo
Not provided in the README excerpt.
## Caveats
License: MIT
Created: 2023-05-10
Last push: 2026-04-11
Open issues: 13
Languages: TypeScript






