SuperAPI AI Directory

superagent

Superagent is an open-source SDK for AI agent security, used to protect AI applications from threats such as prompt injection, data leakage, and harmful output. It can detect and block prompt injection, malicious instructions, and unsafe tool calls at runtime, automatically remove PII, PHI, and confidential information from text, analyze attacks against AI agents in code repositories (such as repository poisoning and malicious instructions), and plans to provide red-teaming scenarios for production agents. The SDK is compatible with multiple models including OpenAI, Anthropic, Google, Groq, Bedrock, and others, supports running Guard models on your own infrastructure with a latency of about 50-100 milliseconds, and uses the MIT open-source license. Before use, you need to register at superagent.sh to obtain an API key.

Open website

About this tool

Superagent is an open-source SDK focused on AI agent security. Its core goal is to protect AI applications from prompt injection, data leakage, and harmful output, and to help developers prove compliance to customers.

Main capabilities include:

  • Detect and block prompt injection, malicious instructions, and unsafe tool calls at runtime.
  • Automatically remove PII (personally identifiable information), PHI (protected health information), and confidential information from text.
  • Analyze code repositories to identify attacks against AI agents, such as repository poisoning and malicious instructions.
  • Run red-teaming scenarios against production agents (coming soon).

How to use: Developers need to register at superagent.sh to obtain an API key, then set the API key to integrate. The SDK provides multiple integration options; refer to the official documentation for specific details.

Use cases: Suitable for any scenario that needs to enhance the security of AI applications, especially AI agent applications involving user data processing, tool calls, and code repository analysis.

Limitations and notes:

  • The red-teaming feature has not yet been officially released and is marked as "coming soon."
  • Use requires an API key, and registration is required on the official website.
  • The SDK uses the MIT open-source license, supports running Guard models on your own infrastructure, and has a latency of about 50-100 milliseconds.
  • Compatible with multiple models, including OpenAI, Anthropic, Google, Groq, Bedrock, and others.

For more information, visit the official website, documentation, Discord community, and HuggingFace model page.