Use other models in Claude Code
Point a Claude Code session at DeepSeek, Kimi, GLM, MiniMax, OpenRouter, OpenAI, Gemini, Groq or a local model. Local models are free; cloud routing is part of Pro. Keys go into Credential Manager.
Updated November 4, 2026
Model routing keeps Claude Code's tools, hooks and workflow, but sends a session to another model with your own key. Each session picks its model; the rest keep running on your Claude plan.
- Cloud (Pro): DeepSeek, Moonshot (Kimi), Z.ai (GLM), MiniMax, OpenRouter, OpenAI, Google Gemini, Groq, or any Anthropic- or OpenAI-compatible URL.
- Local (free on both plans): Ollama and LM Studio on your PC. Nothing leaves the machine.
Keys are stored in Windows Credential Manager. A URL that isn't on your own computer must use https, so keys never travel unencrypted.
Doing it by hand instead? See Claude Code on DeepSeek, Kimi or GLM.
Was this helpful?