adaptive-llm-gateway

renefichtmueller/adaptive-llm-gateway
★ 1 stars TypeScript 🤖 AI/LLM Updated 5d ago
Self-hosted LLM gateway that turns flat-rate AI subscriptions (Claude Code Max, ChatGPT Plus, Codex, Copilot, M365, Gemini) into one OpenAI/Anthropic-compatible API. Unified subscription wallet, OAuth passthrough on /v1/responses, prompt-injection + PII defense, MCP server, semantic cache, time-travel replay.
View on GitHub →

Quick Install

Copy the config for your editor. Some servers may need additional setup — check the README.

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "adaptive-llm-gateway": {
      "command": "npx",
      "args": [
        "-y",
        "renefichtmueller/adaptive-llm-gateway"
      ]
    }
  }
}

README Excerpt

<div align="center"> **The most feature-complete open-source LLM gateway — built for the era where you already pay for five AI subscriptions.** </div> > ⚠️ **Status**: v0.3 — experimental. Battle-tested on a small private deployment, not yet stress-tested at enterprise scale. APIs may change before v1.0.

Tools (15)

ADAPTIVE_ROUTING_ENABLEDAUTO_SPAWN_BRIDGESDASHBOARD_AUTH_TOKENDATABASE_URLGETINJECTION_DEFENSE_MODELLM_GATEWAY_MIN_TOKENSOLLAMA_URLOUTPUT_DEFENSE_MODEPLUGINS_DIRPOSTREDACT_PII_MODESEMANTIC_CACHE_ENABLEDWATCHDOG_ENABLEDoff

Topics

ai-gatewayanthropicapache-2chatgptclaudecodexcopilotfastifyllmllm-gatewaymcpmcp-serveroauth-passthroughollamaopenai