Practical overview
When it fits
Use it when building an AI application that needs runtime input or tool-call checks, text redaction, or repository threat analysis.
Who it is for
- Developers integrating safety checks into AI applications or agents.
- Teams that want to redact sensitive information from text or scan repositories for AI-targeted threats.
Documented uses
- Check application inputs for prompt injections and malicious instructions at runtime.
- Block potentially unsafe tool calls before they proceed.
- Remove PII, PHI and secrets from text.
- Scan a repository for threats such as repository poisoning and malicious instructions.
Requirements & limits
The README directs users to sign up at superagent.sh for an API key. The repository is public and MIT-licensed.
- The README lists TypeScript and Python SDKs; the repository’s primary language is TypeScript.
- Guard and Redact are documented with code examples, and Scan is shown accepting a repository URL.
- The Test red-team scenario feature is explicitly marked “Coming soon.”
- The README describes running Guard with open-weight models on your infrastructure; it does not provide setup details for that option in the excerpt.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Set up the TypeScript SDK
Install the package and configure the API key for an application integration.
Before you start
- A Superagent API key obtained through sign-up at superagent.sh
- A TypeScript project using npm
Steps
Install the package with npm install safety-agent.
Set the SUPERAGENT_API_KEY environment variable to your key.
Expected outcome
The package is installed and the documented API key environment variable is configured for application use.
Guide limitations
- These setup steps do not demonstrate a completed application call.
- The README marks the red-team Test feature as coming soon.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 7 October 2026
- Original website title
- superagent-ai/superagent · Official homepage title · retained in its source language

