When to use this
Use this guide if you want:
- Claude Code to call DeepSeek models while keeping a one-click path back to the official config.
- A local alternative to single-client routers such as claude-code-router.
- One-click switching between the official Claude Code config and MuxLayer.
- A route profile that can later switch Claude Code between DeepSeek, MiMo, Anthropic, GitHub Copilot, Kimi, or another provider.
Quick Setup
- Download MuxLayer from Releases and open the app.
- Go to Quick Setup or Providers.
- Add a DeepSeek provider and paste your DeepSeek API key.
- Start the gateway from Overview or Gateway. The default client endpoint is
http://127.0.0.1:9090. - Open Clients and click Apply Config on the Claude Code card.
- Send a test message in Claude Code.
- Confirm the request appears in MuxLayer Logs with the expected provider and route.
What MuxLayer configures
| Claude Code side | MuxLayer side | DeepSeek side |
|---|---|---|
| Anthropic Messages API | /v1/messages local gateway route |
DeepSeek Anthropic-compatible or Chat-compatible upstream |
| Claude model names | Model Mapping or agentgate virtual model |
DeepSeek model IDs |
| Tool calls and streaming | Protocol-aware routing and tracing | Provider-specific DeepSeek handling |
Notes for claude-code-router users
MuxLayer is not a drop-in clone of claude-code-router. It is a desktop gateway that also supports Codex, Gemini CLI, OpenCode, provider failover, cost dashboards, diagnostics, request tracing, and one-click client config restore. If you only need a small Claude Code router, claude-code-router may be enough. If you want one local model entry for multiple AI agent clients, use MuxLayer.
Troubleshooting
| Symptom | Check |
|---|---|
| Claude Code still calls the official endpoint | Re-open Clients and apply the Claude Code config again. |
| DeepSeek returns a model error | Check the provider default model and Model Mapping. |
| Tool calls fail | Check request logs and confirm the selected upstream supports tool calling. |
| Gateway is unreachable | Make sure MuxLayer is running on 127.0.0.1:9090; 1420 is only the development UI port. |