# superagent-ai/superagent

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/superagent-ai-superagent).**

6,631 stars · 959 forks · TypeScript · MIT

## Links

- GitHub: https://github.com/superagent-ai/superagent
- Homepage: https://superagent.sh
- awesome-repositories: https://awesome-repositories.com/repository/superagent-ai-superagent.md

## Topics

`ai` `anthropic` `guardrails` `llm` `openai` `prompt-injection` `security`

## Description

Superagent is an AI safety platform that protects applications from prompt injections, data leaks, and harmful outputs through built-in guardrails. It functions as a prompt injection detection system, data redaction tool, and red team testing tool, automatically removing personally identifiable information and protected health data from AI inputs and outputs while scanning image uploads with vision AI to detect visual prompt injection attacks before processing.

The platform routes every prompt through a sequential pipeline of safety checks including injection detection, data redaction, and content filtering, with safety capabilities loaded as interchangeable plugins that can be composed into custom guardrail configurations. It intercepts all prompts at a network proxy layer before they reach the language model for inspection and filtering, and can filter and redact sensitive data from language model responses in real-time as they stream back to the client. The system also simulates adversarial scenarios against production AI agents to evaluate their security and robustness, and analyzes code repositories to identify and report AI agent-targeted attacks and security vulnerabilities.

Beyond its security core, the platform enables building conversational AI agents that answer questions, generate content, and automate workflows using large language models, with the ability to pull information from third-party APIs and vector stores to enrich responses. It supports querying documents through retrieval-augmented generation, maintains conversation context across turns, and provides a unified interface over multiple vector database backends for document storage and semantic search. All capabilities are exposed through both a REST API and client SDKs for Python, TypeScript, and Swift.

## Tags

### Part of an Awesome List

- [AI Application Security](https://awesome-repositories.com/f/awesome-lists/ai/ai-application-security.md) — Protects AI applications from prompt injections, data leaks, and harmful outputs with built-in safety guards.
- [AI Agents and Assistants](https://awesome-repositories.com/f/awesome-lists/ai/ai-agents-and-assistants.md) — Builds conversational AI agents that answer questions, generate content, and automate workflows using LLMs. ([source](https://cdn.jsdelivr.net/gh/superagent-ai/superagent@main/README.md))
- [AI Red Teaming](https://awesome-repositories.com/f/awesome-lists/ai/ai-red-teaming.md) — Simulates adversarial scenarios against production AI agents to evaluate their security and robustness.
- [Sensitive Data Redaction](https://awesome-repositories.com/f/awesome-lists/devtools/information-extraction/sensitive-data-identification/sensitive-data-redaction.md) — Automatically removes personally identifiable information and protected health data from AI inputs and outputs.
- [Document Question Answering](https://awesome-repositories.com/f/awesome-lists/ai/document-question-answering.md) — Answers questions over uploaded documents by combining vector search with language model generation. ([source](https://cdn.jsdelivr.net/gh/superagent-ai/superagent@main/README.md))
- [AI Agent Vulnerability Scanners](https://awesome-repositories.com/f/awesome-lists/security/security-and-vulnerability-scanning/ai-agent-vulnerability-scanners.md) — Analyzes code repositories to identify and report AI agent-targeted attacks and security vulnerabilities. ([source](https://docs.superagent.sh))

### Artificial Intelligence & ML

- [AI Safety Guardrails](https://awesome-repositories.com/f/artificial-intelligence-ml/ai-safety-guardrails.md) — Protects applications from prompt injections, data leaks, and harmful outputs with built-in guardrails.
- [Conversation Memory Managers](https://awesome-repositories.com/f/artificial-intelligence-ml/agentic-systems-frameworks/agent-capabilities-skills-tooling/assistant-management/conversation-memory-managers.md) — Retains conversation context across turns so the assistant can reference earlier exchanges. ([source](https://cdn.jsdelivr.net/gh/superagent-ai/superagent@main/README.md))
- [Conversational Session Management](https://awesome-repositories.com/f/artificial-intelligence-ml/conversational-session-management.md) — Maintains conversation state across turns using session identifiers that link to stored context.
- [Third-Party Knowledge Connections](https://awesome-repositories.com/f/artificial-intelligence-ml/knowledge-retrieval-sources/third-party-knowledge-connections.md) — Pulls information from third-party APIs and vector stores to enrich assistant responses. ([source](https://cdn.jsdelivr.net/gh/superagent-ai/superagent@main/README.md))
- [Streaming Content Filters](https://awesome-repositories.com/f/artificial-intelligence-ml/model-response-parsers/model-response-aggregation/model-response-streaming/streaming-content-filters.md) — Filters and redacts sensitive data from language model responses in real-time as they stream back to the client.
- [Agent Response Streams](https://awesome-repositories.com/f/artificial-intelligence-ml/multimodal-agent-capabilities/real-time-streaming/agent-response-streams.md) — Sends assistant replies to the client incrementally as they are generated for real-time interaction. ([source](https://cdn.jsdelivr.net/gh/superagent-ai/superagent@main/README.md))

### Security & Cryptography

- [Prompt Injection Detectors](https://awesome-repositories.com/f/security-cryptography/adversarial-robustness-testing/adversarial-input-generation/adversarial-input-detection/prompt-injection-detectors.md) — Detects and blocks prompt injection attacks, jailbreaks, and malicious instructions before they reach the language model.
- [Safety Guard Blocks](https://awesome-repositories.com/f/security-cryptography/adversarial-robustness-testing/adversarial-input-generation/adversarial-input-detection/prompt-injection-detectors/safety-guard-blocks.md) — Blocks malicious prompts including injections, jailbreaks, and data exfiltration attempts with detailed reasoning. ([source](https://docs.superagent.sh/sdk/examples/claude-code-hooks))
- [Middleware-Style Guardrail Pipelines](https://awesome-repositories.com/f/security-cryptography/content-guardrails/middleware-style-guardrail-pipelines.md) — Routes every prompt through a sequential pipeline of safety checks including injection detection and data redaction.
- [Data Redaction Tools](https://awesome-repositories.com/f/security-cryptography/data-redaction-tools.md) — Automatically redacts personally identifiable information and protected health data from AI inputs and outputs.
- [Adversarial Red Teaming Toolkits](https://awesome-repositories.com/f/security-cryptography/security/offensive-operations/vulnerability-research-analysis/analysis-discovery-tooling/adversarial-testing-resources/adversarial-red-teaming-toolkits.md) — Simulates adversarial scenarios against production AI agents to evaluate security and robustness. ([source](https://docs.superagent.sh))
- [Visual Input Scanners](https://awesome-repositories.com/f/security-cryptography/llm-input-security-scanning/visual-input-scanners.md) — Scans image uploads with vision AI to detect and block visual prompt injection attacks before processing.
- [Visual Prompt Injection Detectors](https://awesome-repositories.com/f/security-cryptography/model-context-protocol-security/prompt-injection-defenses/visual-prompt-injection-detectors.md) — Scans image uploads with vision AI to detect and block visual prompt injection attacks before processing. ([source](https://docs.superagent.sh/sdk/examples/scan-image-uploads))

### Software Engineering & Architecture

- [Guardrail Plugin Architectures](https://awesome-repositories.com/f/software-engineering-architecture/software-architecture/architectural-patterns/plugin-module-systems/modular-plugin-architectures/plugin-based-architectures/plugin-based-architectures/guardrail-plugin-architectures.md) — Loads safety capabilities as interchangeable plugins that compose into custom guardrail configurations.

### System Administration & Monitoring

- [Prompt Interception & Modification](https://awesome-repositories.com/f/system-administration-monitoring/administrative-operations/linux-system-administration/networking/traffic-interception-modification/request-interception-utilities/prompt-request-inspection/prompt-interception-modification.md) — Intercepts all prompts at a network proxy layer before they reach the language model for inspection.

### Data & Databases

- [Vector Stores](https://awesome-repositories.com/f/data-databases/in-memory-data-stores/vector-stores.md) — Converts documents into vector embeddings and stores them in supported vector databases for semantic search. ([source](https://cdn.jsdelivr.net/gh/superagent-ai/superagent@main/README.md))
- [Vector Database Abstractions](https://awesome-repositories.com/f/data-databases/vector-database-abstractions.md) — Provides a unified interface over multiple vector database backends for document storage and semantic search.

### Development Tools & Productivity

- [Agent Threat Scanners](https://awesome-repositories.com/f/development-tools-productivity/repository-automation-interfaces/ai-driven-repository-analysis/agent-threat-scanners.md) — Analyzes code repositories to identify and report AI agent-targeted attacks and security vulnerabilities.
- [REST API Integrations](https://awesome-repositories.com/f/development-tools-productivity/rest-api-integrations.md) — Connects applications to AI assistant capabilities through a standard HTTP API for programmatic control. ([source](https://cdn.jsdelivr.net/gh/superagent-ai/superagent@main/README.md))
- [SDK Integrations](https://awesome-repositories.com/f/development-tools-productivity/sdk-integrations.md) — Builds AI assistants into applications using Python, TypeScript, or Swift client libraries. ([source](https://cdn.jsdelivr.net/gh/superagent-ai/superagent@main/README.md))

### Networking & Communication

- [SDK Interfaces](https://awesome-repositories.com/f/networking-communication/rest-api-interfaces/sdk-interfaces.md) — Exposes all assistant capabilities through both a REST API and client SDKs for Python, TypeScript, and Swift.

### Web Development

- [Third-Party API Integrations](https://awesome-repositories.com/f/web-development/third-party-api-integrations.md) — Integrates third-party services and data sources into assistant workflows through API connectivity. ([source](https://cdn.jsdelivr.net/gh/superagent-ai/superagent@main/README.md))
