Back to catalogPending
claude-code-mux
by 9j
High-performance AI routing proxy built in Rust with automatic failover, priority-based routing, and support for 15+ providers (Anthropic, OpenAI, Cerebras, Minimax, Kimi, etc.)
454stars
50forks
Rust
Added 12/27/2025
IDE Extensionsaianthropicclaude-codeclaude-code-routeropenai
Installation
# Add to your Claude Code skills
git clone https://github.com/9j/claude-code-muxClaude Code Mux
OpenRouter met Claude Code Router. They had a baby.
Now your coding assistant can use GLM 4.6 for one task, Kimi K2 Thinking for another, and Minimax M2 for a third. All in the same session. When your primary provider goes down, it falls back to your backup automatically.
⚡️ Multi-model intelligence with provider resilience
A lightweight, Rust-powered proxy that provides intelligent model routing, provider failover, streaming support, and full Anthropic API compatibility for Claude Code.
Claude Code → Claude Code Mux → Multiple AI Providers
(Anthropic API) (OpenAI/Anthropic APIs + Streaming)
Table of Contents
- Key Features
- Installation
- Quick Start
- Screenshots
- Usage Guide
- Routing Logic
- Configuration Examples
- Supported Providers
- Advanced Features
- CLI Usage
- Troubleshooting
- FAQ
- Performance
- Why Choose Claude Code Mux?
- Documentation
- Changelog
- Contributing
- License
Key Features
🎯 Core Features
- ✨ Modern Admin UI - Beautiful web interface with auto-save and URL-based navigation
- 🔐 OAuth 2.0 Support - FREE access for Claude Pro/Max, ChatGPT Plus/Pro, and Google AI Pro/Ultra
- 🧠 Intelligent Routing - Auto-route by task type (websearch, reasoning, background, default)
- 🔄 Provider Failover - Automatic fallback to backup providers with priority-based routing
- 🌊 Streaming Support - Full Server-Sent Events (SSE) streaming for real-time responses
- 🌐 Multi-Provider Support - 18+ providers including OpenAI, Anthropic, Google Gemini/Vertex AI, Groq, ZenMux, etc.
- ⚡️ High Performance - ~5MB RAM, <1ms routing overhead (Rust powered)
- 🎯 Unified API - Full Anthropic Messages API compatibility
🚀 Advanced Features
- 🔀 Auto-mapping - Regex-based model name transformation before routing (e.g., transform all
claude-*to default model) - 🎯 Background Detection - Configurable regex patterns for ba...