用Claude desktop(claude桌面版)第三方开发者模式的小伙伴们是否发现更新到最新版本后无法使用claude桌面版了,都在不停的报如下错误。
Your provider setup needs a fix
Some required fields are missing or malformed. Open Setup to finish configuring it.
API Error: Unable to connect to API (ConnectionRefused)
API Error: 502 status code (no body). This is a server-side issue, usually temporary — try again in a moment. If it persists, check status.claude.com.
主要原因是新版 Claude Desktop 加强了模型名路由校验:
旧版:inferenceModels 可以写 qwen / deepseek / 自定义名
新版:必须是 Anthropic provider catalog 里的 Claude 路由名
最稳妥的解决方案是用ccswitch(https://github.com/farion1231/cc-switch)代理。

填入你的模型供应商的API KEY和请求地址,注意一定要anthropic格式的请求地址哦(oepnai的地址协议是不行的)。各大模型厂商现在也都提供兼容的anthropic格式的请求地址。

设置好模型映射,这里举例如果你想用千问的其他模型,比如qwen3.6-plus↔Opus,qwen3.5-plus↔Sonnet。

保存好映射关系后,左上角的设置按钮。

启用Claude路由,不需要路由的不要乱开哦,比如你的Codex是订阅的官方套餐的就不要开启哦。
复制服务器地址。

回到Claude桌面版本,点击顶部菜单里的“Developer→Configure Third-Party Inference”

Connection→选择Gateway模式,在Gateway base URL里填入CCswitch的路由地址(http://127.0.0.1:15721),Gateway API key里填写你的自己的模型的秘钥。

往下拉,进入Model list配置,这里千万不要再填写你自己的模型名称了,全部填Claude他家自己的模型名称,具体如下图,然后Apply locally重启软件就好了。

有些人发现使用Claude桌面版第三方开发者模式后,无法开启“Bypass permissions”疯狗模式了。其实开启Claude 桌面版开发者模式里的Bypass permissions模式超级简单。点击左下角的头像里的“Settings”

在Claude Code里第一个“Allow bypass permissions mode”启用,就可以开启Claude desktop(桌面版)的“Bypass permissions”疯狗模式了。配上千问3.6Plus 1M模型,原来的味道就回来了。

另外介绍下支持Anthropic的中国模型厂商
目前主流“中国模型 + Anthropic Compatible(Claude /v1/messages 格式)”大概分几类:
原生支持 Anthropic Compatible 的中国厂商
这些最适合直接接 Claude Desktop / Claude Code。
| 厂商 | Anthropic Compatible 地址 | 模型示例 |
|---|---|---|
| 阿里云 DashScope | https://dashscope-intl.aliyuncs.com/apps/anthropic | Qwen3.6-Plus / Qwen-Max |
| MiniMax Platform | https://api.minimax.io/anthropic | MiniMax-M2.7 |
| MiniMax 中国站 | https://api.minimaxi.com/anthropic | MiniMax-01 |
| Moonshot AI Platform | https://api.moonshot.ai/anthropic | kimi-k2 / kimi-thinking |
| 智谱 AI Open Platform | https://open.bigmodel.cn/api/anthropic | glm-4.6 / glm-z1 |
| 硅基流动 SiliconFlow | 多数需 gateway 转换 | DeepSeek / Qwen / GLM |
| DeepSeek Platform | https://api.deepseek.com/anthropic | deepseek-chat / deepseek-reasoner |
| longcat(美团) | https://api.longcat.chat/anthropic | LongCat-Flash-Chat LongCat-Flash-Thinking LongCat-Flash-Thinking-2601 LongCat-Flash-Lite LongCat-2.0-Preview(内测中) |
目前兼容 Claude Code 最稳的中国模型
按 Coding / Agent 能力来说:
| 模型 | Coding | Agent | 长上下文 | 稳定性 |
|---|---|---|---|---|
| Qwen Qwen3.6-Plus | 很强 | 很强 | 1M | 很稳 |
| DeepSeek DeepSeek V4 Pro | 极强 | 强 | 1M | 中等 |
| Kimi Kimi K2.x | 强 | 很强 | 超长 | 中等 |
| GLM GLM-4.6 | 中上 | 中上 | 大 | 稳 |
| MiniMax MiniMax-M2.7 | 很强 | 很强 | 大 | 很稳 |
原创文章,作者:产品大法师
,如若转载,请注明出处:https://www.pmtemple.com/artificial-intelligence/18413/
微信扫一扫
支付宝扫一扫