Claude Code model router

claude-code-mux

Rust routing proxy for Claude Code with automatic failover and priority-based routing.

517 stars 64 forksModel routers & proxiesArchived Source

Install

Install
cargo install claude-code-mux
From source
git clone https://github.com/9j/claude-code-mux.git

From the README

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

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,
📸 Click to view screenshots (5 images)

Overview Dashboard

*Main dashboard with router configuration and provider management*

Provider Management

*Add and manage multiple AI providers with automatic format translation*

Model Mappings with Fallback

*Configure models with priority-based fallback routing*

Router…
Read the full README on GitHub

Details

Language
Rust
License
MIT
Last updated
19 November 2025
Topics
aianthropicclaude-codeclaude-code-routeropenai

FAQ

What is claude-code-mux?

Rust routing proxy for Claude Code with automatic failover and priority-based routing. It is a model router for Claude Code, from 9j/claude-code-mux on GitHub.

How do I install claude-code-mux?

Run cargo install claude-code-mux, then follow the setup in the README.

Is claude-code-mux popular?

9j/claude-code-mux has 517 GitHub stars and 64 forks. It was last updated on 19 November 2025.

More model routers & proxies

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