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.)
# Add to your Claude Code skills
git clone https://github.com/9j/claude-code-muxOpenRouter 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)
claude-* to default model)CCM-SUBAGENT-MODEL tags
Main dashboard with router configuration and provider management
Add and manage multiple AI providers with automatic format translation
Configure models with priority-based fallback routing
Set up intelligent routing rules for different task types
Test your configuration with live API requests and responses
18+ AI providers with automatic format translation, streaming, and failover:
Download the latest release for your platform from GitHub Releases.
# Download and extract (glibc)
curl -L https://github.com/9j/claude-code-mux/releases/latest/download/ccm-linux-x86_64.tar.gz | tar xz
# Or download musl version (static linking, more portable)
curl -L https://github.com/9j/claude-code-mux/releases/latest/download/ccm-linux-x86_64-musl.tar.gz | tar xz
# Move to PATH
sudo mv ccm /usr/local/bin/
# Download and extract
curl -L https://github.com/9j/claude-code-mux/releases/latest/download/ccm-macos-x86_64.tar.gz | tar xz
# Move to PATH
sudo mv ccm /usr/local/bin/
# Download and extract
curl -L https://github.com/9j/claude-code-mux/releases/latest/download/ccm-macos-aarch64.tar.gz | tar xz
# Move to PATH
sudo mv ccm /usr/local/bin/
ccm.exe to your PATHccm --version
If you have Rust installed, you can install directly from crates.io:
cargo install claude-code-mux
This will download, compile, and install the ccm binary to your cargo bin directory (usually ~/.cargo/bin/).
ccm --version
# Clone the repository
git clone https://github.com/9j/claude-code-mux
cd claude-code-mux
# Build the release binary
cargo build --release
# The binary will be available at target/release/ccm
# Copy to /usr/local/bin for global access
sudo cp target/release/ccm /usr/local/bin/
# Or add to your shell profile (e.g., ~/.zshrc or ~/.bashrc)
export PATH="$PATH:/path/to/claude-code-mux/target/release"
# From the project directory
cargo run --release -- start
ccm start
The server will start on http://127.0.0.1:13456 with a web-based admin UI.
💡 First-time users: A default configuration file will be automatically created at:
- Unix/Linux/macOS:
~/.claude-code-mux/config.toml- Windows:
%USERPROFILE%\.claude-code-mux\config.toml
Navigate to:
http://127.0.0.1:13456
You'll see a modern admin interface with these tabs:
Set Claude Code to use the proxy:
export ANTHROPIC_BASE_URL="http://127.0.0.1:13456"
export ANTHROPIC_API_KEY="any-string"
claude
That's it! Your setup is complete.
Navigate to Providers tab → Click "Add Provider"
claude-max💡 Pro Tip: Claude Pro/Max subscribers get unlimited API access for FREE via OAuth!
zenmuxNo comments yet. Be the first to share your thoughts!