Claude Code’s backstage pass to 18+ AI providers
It lets Claude Code call GLM, Kimi, Groq, and 15 other providers in the same session without learning a second API dialect.

What it does
Claude Code Mux is a Rust proxy that intercepts Anthropic API calls from Claude Code and reroutes them to other LLM backends. It translates request formats on the fly, streams responses back via SSE, and automatically fails over to backup providers when the primary one drops. The net effect is that Claude Code can chat with OpenAI, Groq, Gemini, Minimax, Kimi, and a dozen other services without any client-side reconfiguration.
The interesting bit
The proxy does more than dumb forwarding: it can classify requests by task type—websearch, reasoning, or background work—and route each to a model chosen for speed, cost, or capability. It also offers OAuth 2.0 support that the README says unlocks free API access for existing Claude Pro/Max, ChatGPT Plus/Pro, and Google AI Pro/Ultra subscribers.
Key highlights
- Claims roughly 5 MB RAM and sub-millisecond routing overhead.
- Supports 18+ providers with automatic format translation and full streaming.
- Web-based admin UI for managing providers, model mappings, and regex-based routing rules.
- Priority-based failover: if one provider times out, traffic shifts to the next in line automatically.
- OAuth 2.0 support for Claude Pro/Max, ChatGPT Plus/Pro, and Google AI Pro/Ultra subscribers.
Verdict
Grab it if you want Claude Code to shop around for the best model or price per task. Skip it if you are happy paying Anthropic rates for every single request.
Frequently asked
- What is 9j/claude-code-mux?
- It lets Claude Code call GLM, Kimi, Groq, and 15 other providers in the same session without learning a second API dialect.
- Is claude-code-mux open source?
- Yes — 9j/claude-code-mux is open source, released under the MIT license.
- What language is claude-code-mux written in?
- 9j/claude-code-mux is primarily written in Rust.
- How popular is claude-code-mux?
- 9j/claude-code-mux has 520 stars on GitHub.
- Where can I find claude-code-mux?
- 9j/claude-code-mux is on GitHub at https://github.com/9j/claude-code-mux.