Providers

200+ LLM providers. Switch without changing your workflow.

Use /provider inside the REPL to add, edit, or switch provider profiles at any time. No config files to edit manually — the wizard handles credentials, base URLs, and model selection.

/provider          # add, edit, or switch provider profiles
/provider doctor   # health check: reachability, auth, model availability

All providers

Provider Preset Auth
AnthropicanthropicAPI key or OAuth
OpenAIopenaiAPI key
Google GeminigeminiAPI key
DeepSeekdeepseekAPI key
MistralmistralAPI key
xAI / Grokxai-oauthxAI OAuth
GitHub Copilotgithub-onboardGitHub OAuth
Codex (ChatGPT)codex-oauthChatGPT OAuth
GroqgroqAPI key
OpenRouteropenrouterAPI key
Together AItogetherAPI key
Cloudflare Workers AIcloudflare-workers-aiAPI key
Cloudflare AI Gatewaycloudflare-ai-gatewayAPI key
NVIDIA NIMnvidia-nimAPI key
MiniMaxminimaxAPI key
Z.AI (GLM Coding Plan)zaiAPI key
Moonshot AImoonshotaiAPI key or Kimi Code OAuth
Azure OpenAIazure-openaiAPI key
Alibaba Coding Plandashscope-intlAPI key
Alibaba Coding Plan (China)dashscope-cnAPI key
BankrbankrAPI key
OpenCode Zenopencode-zenAPI key
OpenCode GOopencode-goAPI key
AWS BedrockbedrockAWS credential chain
Google Vertex AIvertexApplication Default Credentials
Azure AI FoundryfoundryDefaultAzureCredential
OllamaollamaNone — local, free
LM StudiolmstudioNone — local, free
Atomic Chatatomic-chatNone — local, free
Any OpenAI-compatiblecustomBase URL + optional key

Local models (Ollama)

Run Claudin fully offline with no API key using Ollama.

# Pull a model
ollama pull qwen2.5-coder:7b

# Launch claudin with it
ollama run qwen2.5-coder:7b

Any model available on ollama.com/library works — llama3, mistral, phi4, deepseek-coder, and more.

Advanced usage

Multi-profile workflows

/provider supports any number of profiles, switchable at any time — the change takes effect on the next request. Common patterns:

  • Cost split — a strong cloud profile (Anthropic, OpenAI, Codex) for hard sessions and a fast/cheap profile (DeepSeek, Ollama, Groq) for routine tasks.
  • Provider redundancy — primary cloud profile plus a fallback on a different provider for outage windows.
  • Local vs remote — local Ollama profile for offline work, cloud profile for connectivity-dependent tasks.
  • Role split — separate profiles for dev and review, switched manually between sessions.

Profiles live under providerProfiles[] in ~/.claudin/settings.json; the active one is referenced by activeProviderProfileId. All sessions and sub-agents share the same active profile — there is no per-agent routing.

Custom headers

The Anthropic preset includes a Custom headers field on the profile (one Header: Value per line), sent on every request from that profile. Use it to route through proxies that require extra headers, or to tag requests at a corporate gateway.

/provider doctor

/provider doctor runs reachability, auth, and model-availability checks against the active profile — useful when a fresh profile fails to send its first message, a previously working profile starts erroring out, or you want a one-shot before/after comparison after editing a profile. It never mutates state, only reports.

/provider migrate vs. /import

/provider migrate and /import solve different problems. /provider migrate copies only your Claude Code sign-in — OAuth tokens and provider settings — and is offered automatically as a banner the first time you open /provider with an existing ~/.claude/. /import is the general form: it reads eight agents (Claude Code, openclaude, Codex, Gemini CLI, Qwen Code, opencode, Kimi CLI, Cursor), never touches credentials, and never overwrites anything without confirmation. See the migration guide for the full walkthrough.

Custom proxies & LiteLLM

The custom preset works with any OpenAI-compatible base URL — self-hosted gateways, corporate proxies, or LiteLLM. Set baseUrl, optionally apiKey, and the model alias your gateway exposes.