Superagent Security Tools
Superagent provides AI security guardrails including prompt injection detection, PII/PHI redaction, and claim verification against source materials.Installation
Environment Variables
Available Tools
Quick Start
1
Simple Usage
2
With Configuration
Adjust agent instructions, tool options, and provider settings for production — see the Configuration section below.
Guard Tool (Prompt Injection Detection)
Redact Tool (PII Removal)
Verify Tool (Claim Verification)
Advanced Example
Response Formats
Guard Result
Redact Result
Verify Result
Best Practices
Guidelines
Guidelines
- Layer security - Use guard before processing user input
- Redact early - Remove PII before storing or processing
- Verify claims - Check factual statements against sources
- Log securely - Don’t log redacted information

