Claude Code with DeepSeek, GLM, Qwen and other models
Claude Code speaks Anthropic's API, and several providers now serve that same API. Point Claude Code at the provider's endpoint with your key (the ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN variables) and the agent stays the same while the model behind it changes. Wittley does that setup per account, keeps the key out of your config files and lets you mix providers by task.
Step by step
- Pick a provider with an Anthropic-compatible API DeepSeek, GLM, Qwen, Kimi, MiniMax and OpenRouter have presets; anything else goes in as a custom endpoint.
- Add the account Say “add my DeepSeek key”. A secure card opens; the key goes there, never in the chat.
- Test it Wittley makes a short call to confirm the key and the model before it uses the account.
- Choose how it is used Leave it on automatic (picked by task and remaining quota), or pin the account when you want one model only.
How Wittley solves it
Same agent, different model
Tools, files and permissions are still Claude Code's. What changes is who answers: DeepSeek, Z.ai GLM, Alibaba Qwen, Moonshot Kimi, MiniMax, OpenRouter or a custom endpoint.
The key never sits in a dotfile
Adding a provider opens a secure card; the key goes straight to the local vault and the model never reads it. No exported variables in your shell profile.
Strong model for hard work, cheap one for routine
Heavy tasks go to the strongest model you have and routine ones to the cheapest. You can also name a model for one task, such as a second opinion on a review.
One combined quota
Claude subscriptions and provider keys count toward one combined quota, and an agent that hits a limit continues on another account.
Save the DeepSeek key to the vault?
Goes straight to the local vault. The model only learns that the field was saved.
Frequently asked questions
Can Claude Code use DeepSeek or Qwen?
Yes, through each provider's Anthropic-compatible endpoint. Claude Code stays the agent; the model behind it changes.
Is it as good as Claude?
It depends on the model and the task, which is why you don't have to pick one: hard tasks go to Claude, routine ones to the cheaper model, and the assistant routes each task for you.
Is it cheaper?
Usually, per token, but prices change often. Check the provider's current pricing; Wittley shows the usage of each account.
Where does my API key go?
Into the local vault, through a secure card. The model never sees it.
Related features
Related problems
Want to try Wittley?
The waitlist gets the beta invite (December) and first access to the Hub.