Claude Code model router

AegisGate

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).

Install

From source
git clone https://github.com/ax128/AegisGate.git

From the README

AegisGate
English | 中文

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 compat mode converts Anthropic /v1/messages requests to OpenAI /v1/responses on the fly, enabling Claude Code / Anthropic SDK to talk to…
Read the full README on GitHub

Details

Language
Python
License
MIT
Last updated
14 September 2026
Topics
ai-agentai-gatewayapi-securityclaudecodexcursordata-loss-preventionfastapillm-firewallllm-securitymcpopenai-proxy

FAQ

What is AegisGate?

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). It is a model router for Claude Code, from ax128/AegisGate on GitHub.

How do I install AegisGate?

Clone ax128/AegisGate from GitHub and follow the setup steps in its README.

Is AegisGate popular?

ax128/AegisGate has 71 GitHub stars and 11 forks. It was last updated on 14 September 2026.

More model routers & proxies

Opendray

69

Opendray/opendray

Self-hosted gateway for Claude Code, Codex, Antigravity, Grok Build, OpenCode. Run AI coding agents on your own infra with a shared local-first memory layer. Drive from web, mobile, Telegram / Slack / Discord / Feishu / DingTalk / WeCom. Open REST + WebSocket API. Apache 2.0.

Model routers & proxies14

Claude Code Proxy

67

kiyo-e/claude-code-proxy

Proxy that translates between the Anthropic API and OpenAI-compatible APIs, so Claude Code can run against other models.

Model routers & proxies16

Claude CLI

77

codingauto/claude_cli

Claude Code Proxy 是一个 完全开源 的住宅代理服务,为 Claude / Anthropic API 等 AI 服务提供稳定、持久、难以被检测的住宅 IP 访问能力,支持多代理供应商与企业级防风控功能。

Model routers & proxies

CC Simplerouter

83

kdsuomi/cc-simplerouter

Install and setup in 26 seconds. Simplerouter configures Claude Code to use any compatible OpenRouter model in seconds, WITHOUT manual editing of config files, environment variables, or messing with local webservers/webUIs. It also doesn't overwrite your existing Claude Code subscription sign-in!

Model routers & proxies

Claude Code Wsl2 Setup

55

congmnguyen/claude-code-wsl2-setup

Guides and scripts for Claude Code on WSL2: screenshot paste, Windows notifications, LSP, and statusline.

Model routers & proxies

Claude Code Helper

82

xqnode/claude-code-helper

Windows tray proxy: route Claude Code desktop (Code + Cowork) to DeepSeek, Qwen, and other domestic LLM APIs.

Model routers & proxies

Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.