While deepclaude could route the claude code to DeepSeek model, I found it very cumbersome to do so. There are Claude Code rebuilds that natively supports DeepSeek v4 pro. For example I found this one:
https://github.com/agentforce314/clawcodex
The config is easy to set. After that, you can switch model just by slash command /
Here are the config example in their README.md:
{
"default_provider": "anthropic",
"providers": {
"anthropic": {
"api_key": "base64-encoded-key",
"base_url": "https://api.anthropic.com",
"default_model": "claude-sonnet-4-6"
},
"openai": {
"api_key": "base64-encoded-key",
"base_url": "https://api.openai.com/v1",
"default_model": "gpt-5.4"
},
"glm": {
"api_key": "base64-encoded-key",
"base_url": "https://open.bigmodel.cn/api/paas/v4",
"default_model": "zai/glm-5"
},
"minimax": {
"api_key": "base64-encoded-key",
"base_url": "https://api.minimaxi.com/anthropic",
"default_model": "MiniMax-M2.7"
},
"openrouter": {
"api_key": "base64-encoded-key",
"base_url": "https://openrouter.ai/api/v1",
"default_model": "deepseek/deepseek-v4-pro"
},
"deepseek": {
"api_key": "base64-encoded-key",
"base_url": "https://api.deepseek.com",
"default_model": "deepseek-v4-pro"
}
}
}
While deepclaude could route the claude code to DeepSeek model, I found it very cumbersome to do so. There are Claude Code rebuilds that natively supports DeepSeek v4 pro. For example I found this one:
https://github.com/agentforce314/clawcodex
The config is easy to set. After that, you can switch model just by slash command /
Here are the config example in their README.md:
{
"default_provider": "anthropic",
"providers": {
"anthropic": {
"api_key": "base64-encoded-key",
"base_url": "https://api.anthropic.com",
"default_model": "claude-sonnet-4-6"
},
"openai": {
"api_key": "base64-encoded-key",
"base_url": "https://api.openai.com/v1",
"default_model": "gpt-5.4"
},
"glm": {
"api_key": "base64-encoded-key",
"base_url": "https://open.bigmodel.cn/api/paas/v4",
"default_model": "zai/glm-5"
},
"minimax": {
"api_key": "base64-encoded-key",
"base_url": "https://api.minimaxi.com/anthropic",
"default_model": "MiniMax-M2.7"
},
"openrouter": {
"api_key": "base64-encoded-key",
"base_url": "https://openrouter.ai/api/v1",
"default_model": "deepseek/deepseek-v4-pro"
},
"deepseek": {
"api_key": "base64-encoded-key",
"base_url": "https://api.deepseek.com",
"default_model": "deepseek-v4-pro"
}
}
}