AegisGate — Security skill for Claude Code
Open-source security gateway for LLM APIs — prompt injection detection, PII redaction, dangerous response sanitization, and audit logging.
How to install AegisGate
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open ax128/AegisGate and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What AegisGate does
Open-source security gateway for LLM APIs — prompt injection detection, PII redaction, dangerous response sanitization, and audit logging. OpenAI/Claude compatible, MCP & Agent SKILL support. Drop-in proxy for AI coding agents (Cursor, Claude Code, Codex).
Alternatives in Security
- Anthropic Cybersecurity Skills — 734+ structured cybersecurity skills for AI agents · MITRE ATT&CK mapped · agentskills.io open standard · Work 3.8k ★
- Cve MCP Server — Production-grade MCP server giving Claude 27 security intelligence tools across 21 APIs — CVE lookup, EPSS sco 1.2k ★
- ThinkWatch — Self-hosted AI API and MCP gateway for organizations: SSO and RBAC, per-user identity for MCP tool calls, PII 817 ★
README
AegisGate
**English** | **[中文](README_zh.md)**
**Open-source security gateway for LLM API calls** — sits between your AI agents/apps and upstream LLM providers, enforcing security policies on both request and response sides.
What is AegisGate?
AegisGate is a self-hosted, pipeline-based security proxy designed to protect LLM API traffic. Point your application's `baseUrl` at the gateway, and it automatically applies PII redaction, prompt injection detection, dangerous command blocking, and output sanitization before forwarding to the real upstream model.
Key Features
- Prompt Injection Protection — Multi-layer detection: regex patterns, optional semantic review (gray-zone gated:
AEGIS_ENABLE_SEMANTIC_MODULE+AEGIS_SEMANTIC_SERVICE_URL+AEGIS_SEMANTIC_GRAY_LOW/HIGH), Unicode/encoding attack detection, typoglycemia defense - PII / Secret Redaction — 50+ pattern categories covering API keys, tokens, credit cards, SSNs, crypto wallet addresses/seed phrases, medical records, and infrastructure identifiers. On the three structured LLM routes (
/v1/chat/completions,/v1/responses,/v1/messages) a credential-only subset runs by default to avoid corrupting prompts — see PII Redaction Coverage - Dangerous Response Sanitization — Automatic obfuscation of high-risk LLM outputs (shell commands, SQL injection payloads, HTTP smuggling) with configurable security levels (low/medium/high)
- OpenAI-Compatible + Anthropic Messages API — Drop-in routes for
/v1/chat/completions,/v1/responses,/v1/messages, and the generic proxy; works with OpenAI-compatible providers and Anthropic-compatible Messages upstreams - Anthropic ↔ OpenAI Protocol Conversion — Token-based
compatmode converts Anthropic/v1/messagesrequests to OpenAI/v1/responseson the fly, enabling Claude Code / Anthropic SDK to talk to OpenAI-compatible upstreams (GPT-5.4, etc.) without code changes - **MCP & Agent SKILL S
Related Skills
MCP Intercepter
Transparent proxy + enterprise gateway for MCP: audit logging, tool allow/deny policy, secrets/PII redaction,
Agent Observability Logging
Log everything that happens inside your agent system, from deterministic code: hook-written audit events, inva
Arcjet Py
Runtime security for AI apps and agents: prompt injection detection, tool-call authorization, sensitive-data r
Secure LLM Gateway
Security-focused gateway in front of an LLM API — auth, prompt-injection defense, output filtering, audit logg
Hermes Claude Code Bridge
Run Claude Code or OpenCode as an OpenAI-compatible backend — a security-first, read-only Lead DevOps/SRE agen
Polyagent
Multi-provider AI agent bridge — an MCP server that lets Claude Desktop delegate tasks (security scans, code r
Related Agents
AI Recon
Delegates to this agent when the user wants to map the AI attack surface of an authorized web application befo
LLM Orchestrator
Use this agent for LLM integration work — prompt engineering, multi-provider abstraction (OpenRouter, Gemini,
Security Privacy Guardian
Use when validating PII handling (LGPD/GDPR), secret leakage in code/prompts/traces, eval-case sanitization, o