[GH-ISSUE #62] claude desktop接入不了 #18

Open
opened 2026-10-26 09:43:35 +00:00 by bsakaguchi · 16 comments
Owner

Originally created by @lxy2020 on GitHub (May 6, 2026).
Original GitHub issue: https://github.com/deepseek-ai/awesome-deepseek-agent/issues/62

用claude code的地址接不了claude desktop,会报错。
报错信息:
message: Gateway returned HTTP 404
httpStatus: 404
requestUrl: https://api.deepseek.com/anthropic/v1/models
endpoint: https://api.deepseek.com/
checkedAt: 2026-05-06T03:38:56.651Z

Originally created by @lxy2020 on GitHub (May 6, 2026). Original GitHub issue: https://github.com/deepseek-ai/awesome-deepseek-agent/issues/62 用claude code的地址接不了claude desktop,会报错。 报错信息: message: Gateway returned HTTP 404 httpStatus: 404 requestUrl: https://api.deepseek.com/anthropic/v1/models endpoint: https://api.deepseek.com/ checkedAt: 2026-05-06T03:38:56.651Z
Author
Owner

@lxy2020 commented on GitHub (May 6, 2026):

配置了 Model 还是会报错。
报错信息:
message: Invalid custom3p enterprise config: inferenceModels: configured model "deepseek-v4-flash" is not an Anthropic model. Gateway deployments require an Anthropic model from the provider catalog — expected a gateway model route referencing an Anthropic model (e.g. claude-sonnet-4-5, anthropic/claude-*). Name routes to match the underlying model.
failingField: inferenceModels
checkedAt: 2026-05-06T03:44:16.771Z

<!-- gh-comment-id:4384909810 --> @lxy2020 commented on GitHub (May 6, 2026): 配置了 Model 还是会报错。 报错信息: message: Invalid custom3p enterprise config: inferenceModels: configured model "deepseek-v4-flash" is not an Anthropic model. Gateway deployments require an Anthropic model from the provider catalog — expected a gateway model route referencing an Anthropic model (e.g. claude-sonnet-4-5, anthropic/claude-*). Name routes to match the underlying model. failingField: inferenceModels checkedAt: 2026-05-06T03:44:16.771Z
Author
Owner

@lxy2020 commented on GitHub (May 6, 2026):

window 11

<!-- gh-comment-id:4384936189 --> @lxy2020 commented on GitHub (May 6, 2026): window 11
Author
Owner

@liuxinhh commented on GitHub (May 6, 2026):

Image

在下方添加下自定义大模型列表, 就可以了

<!-- gh-comment-id:4385725951 --> @liuxinhh commented on GitHub (May 6, 2026): <img width="884" height="681" alt="Image" src="https://github.com/user-attachments/assets/14b94314-ffc7-439c-8dd6-68d38f22cb16" /> 在下方添加下自定义大模型列表, 就可以了
Author
Owner

@lxy2020 commented on GitHub (May 6, 2026):

配了,还是报错
message: Invalid custom3p enterprise config: inferenceModels: configured model "deepseek-v4-flash" is not an Anthropic model. Gateway deployments require an Anthropic model from the provider catalog — expected a gateway model route referencing an Anthropic model (e.g. claude-sonnet-4-5, anthropic/claude-*). Name routes to match the underlying model.
failingField: inferenceModels
checkedAt: 2026-05-06T03:44:16.771Z

<!-- gh-comment-id:4385797126 --> @lxy2020 commented on GitHub (May 6, 2026): 配了,还是报错 message: Invalid custom3p enterprise config: inferenceModels: configured model "deepseek-v4-flash" is not an Anthropic model. Gateway deployments require an Anthropic model from the provider catalog — expected a gateway model route referencing an Anthropic model (e.g. claude-sonnet-4-5, anthropic/claude-*). Name routes to match the underlying model. failingField: inferenceModels checkedAt: 2026-05-06T03:44:16.771Z
Author
Owner

@liuxinhh commented on GitHub (May 6, 2026):

Image Image 是不是api端点错了, 你按照我的试试
<!-- gh-comment-id:4385816385 --> @liuxinhh commented on GitHub (May 6, 2026): <img width="900" height="1240" alt="Image" src="https://github.com/user-attachments/assets/8720b408-85ec-43ea-8f42-9ef78efa1002" /> <img width="609" height="547" alt="Image" src="https://github.com/user-attachments/assets/08da4ae4-9cb8-42f9-873f-0fba664b8434" /> 是不是api端点错了, 你按照我的试试
Author
Owner

@liuxinhh commented on GitHub (May 6, 2026):

我的版本是 Claude 1.4758.0 (fb266c) 2026-04-24T20:22:30.000Z

<!-- gh-comment-id:4385835787 --> @liuxinhh commented on GitHub (May 6, 2026): 我的版本是 Claude 1.4758.0 (fb266c) 2026-04-24T20:22:30.000Z
Author
Owner

@jiangxueqians-ai commented on GitHub (May 6, 2026):

版本 1.6259.1 (5095e7)测试联接同样错误,应该是claude自己封的。

Image
<!-- gh-comment-id:4385845972 --> @jiangxueqians-ai commented on GitHub (May 6, 2026): 版本 1.6259.1 (5095e7)测试联接同样错误,应该是claude自己封的。 <img width="1774" height="1370" alt="Image" src="https://github.com/user-attachments/assets/b71e92a8-9bf6-4b52-8fe0-0ee5d8ce54e9" />
Author
Owner

@Ltb2539 commented on GitHub (May 6, 2026):

可以试试这个 https://github.com/Ltb2539/UpstreamKit 刚用codex写的工具 实测Claude 1.6259.0 (dc89db) 2026-05-05T18:14:20.000Z 可以运行

<!-- gh-comment-id:4385993057 --> @Ltb2539 commented on GitHub (May 6, 2026): 可以试试这个 https://github.com/Ltb2539/UpstreamKit 刚用codex写的工具 实测Claude 1.6259.0 (dc89db) 2026-05-05T18:14:20.000Z 可以运行
Author
Owner

@Agents365-ai commented on GitHub (May 6, 2026):

Try https://github.com/Agents365-ai/dsclaude
one script to set claude dekstop, and use co-work, claude code

<!-- gh-comment-id:4386926378 --> @Agents365-ai commented on GitHub (May 6, 2026): Try https://github.com/Agents365-ai/dsclaude one script to set claude dekstop, and use co-work, claude code
Author
Owner

@acewong7 commented on GitHub (May 6, 2026):

version 1.5354.0 可以直接配deepseek-v4-pro和deepseek-v4-flash模型,升级到1.6259.1后不行了,需要在配置里模型前面加claude-才行,但是问题是claude-deepseek-v4-pro的模型传给deepseek后可能由于模型名字不对自动降级到备用的deepseek-v4-flash模型,claude desktop还是用不到pro模型?看论坛有人建议写个http proxy把模型名字再换回官方的deepseek-v4-pro。https://www.reddit.com/r/LocalLLM/comments/1t3oypq/switched_my_claude_code_agent_loop_to_deepseek_v4/

Image
<!-- gh-comment-id:4390008261 --> @acewong7 commented on GitHub (May 6, 2026): version 1.5354.0 可以直接配deepseek-v4-pro和deepseek-v4-flash模型,升级到1.6259.1后不行了,需要在配置里模型前面加claude-才行,但是问题是claude-deepseek-v4-pro的模型传给deepseek后可能由于模型名字不对自动降级到备用的deepseek-v4-flash模型,claude desktop还是用不到pro模型?看论坛有人建议写个http proxy把模型名字再换回官方的deepseek-v4-pro。https://www.reddit.com/r/LocalLLM/comments/1t3oypq/switched_my_claude_code_agent_loop_to_deepseek_v4/ <img width="1952" height="701" alt="Image" src="https://github.com/user-attachments/assets/66731b2d-2b89-4c6c-99b5-504e1510cc51" />
Author
Owner

@TSG9876 commented on GitHub (May 11, 2026):

use cc-Switch to bridge to actual deepseek api end point , enable cc-Switch local routing as default http://127.0.01:15721, configure your cc Switch claude end point to actual deepseek api endpoint https://api.deepseek.com/anthropic

Image

, and the actual model deepseek id

in the claude code , set model id as per suggestion with prefix claude-your model , gateway set as http://127.0.01:15721

<!-- gh-comment-id:4419453592 --> @TSG9876 commented on GitHub (May 11, 2026): use cc-Switch to bridge to actual deepseek api end point , enable cc-Switch local routing as default http://127.0.01:15721, configure your cc Switch claude end point to actual deepseek api endpoint https://api.deepseek.com/anthropic <img width="1107" height="943" alt="Image" src="https://github.com/user-attachments/assets/ee336700-581e-4012-8024-4d5038d0af89" /> , and the actual model deepseek id in the claude code , set model id as per suggestion with prefix claude-your model , gateway set as http://127.0.01:15721
Author
Owner

@Agents365-ai commented on GitHub (May 11, 2026):

version 1.5354.0 可以直接配deepseek-v4-pro和deepseek-v4-flash模型,升级到1.6259.1后不行了,需要在配置里模型前面加claude-才行,但是问题是claude-deepseek-v4-pro的模型传给deepseek后可能由于模型名字不对自动降级到备用的deepseek-v4-flash模型,claude desktop还是用不到pro模型?看论坛有人建议写个http proxy把模型名字再换回官方的deepseek-v4-pro。https://www.reddit.com/r/LocalLLM/comments/1t3oypq/switched_my_claude_code_agent_loop_to_deepseek_v4/

Image

不需要proxy
Try https://github.com/Agents365-ai/dsclaude
one script to set claude dekstop, and use co-work, claude code

<!-- gh-comment-id:4421370159 --> @Agents365-ai commented on GitHub (May 11, 2026): > version 1.5354.0 可以直接配deepseek-v4-pro和deepseek-v4-flash模型,升级到1.6259.1后不行了,需要在配置里模型前面加claude-才行,但是问题是claude-deepseek-v4-pro的模型传给deepseek后可能由于模型名字不对自动降级到备用的deepseek-v4-flash模型,claude desktop还是用不到pro模型?看论坛有人建议写个http proxy把模型名字再换回官方的deepseek-v4-pro。https://www.reddit.com/r/LocalLLM/comments/1t3oypq/switched_my_claude_code_agent_loop_to_deepseek_v4/ > > <img alt="Image" width="1952" height="701" src="https://private-user-images.githubusercontent.com/16329701/588413894-66731b2d-2b89-4c6c-99b5-504e1510cc51.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Nzg1MDgwMjAsIm5iZiI6MTc3ODUwNzcyMCwicGF0aCI6Ii8xNjMyOTcwMS81ODg0MTM4OTQtNjY3MzFiMmQtMmI4OS00YzZjLTk5YjUtNTA0ZTE1MTBjYzUxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjA1MTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwNTExVDEzNTUyMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc5Yzc4YzM4ZjlkMTBlYTBlN2U0MjY4MGNmNDMzM2YwZmY5YzZiNGJmY2IxNzdiNjNiZWQxZTAwOTY2YWEwNWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.seY46bvb6zkbZih3ntGF-huS_U0LvQhWsWIBPlk0MVI"> 不需要proxy Try https://github.com/Agents365-ai/dsclaude one script to set claude dekstop, and use co-work, claude code
Author
Owner

@lxy2020 commented on GitHub (May 13, 2026):

找到了个新解决方案,B站上看到的
在环境变量里面配置一下就好了
环境变量名:NODE_ENV 变量值:production

<!-- gh-comment-id:4436336912 --> @lxy2020 commented on GitHub (May 13, 2026): 找到了个新解决方案,B站上看到的 在环境变量里面配置一下就好了 环境变量名:NODE_ENV 变量值:production
Author
Owner

@lxy2020 commented on GitHub (May 19, 2026):

找到了个新解决方案,B站上看到的 在环境变量里面配置一下就好了 环境变量名:NODE_ENV 变量值:production

1.7 之后又有新的限制,这个方法失效了

<!-- gh-comment-id:4483907170 --> @lxy2020 commented on GitHub (May 19, 2026): > 找到了个新解决方案,B站上看到的 在环境变量里面配置一下就好了 环境变量名:NODE_ENV 变量值:production 1.7 之后又有新的限制,这个方法失效了
Author
Owner

@BiBi2644 commented on GitHub (May 27, 2026):

我的版本是 Claude 1.4758.0 (fb266c) 2026-04-24T20:22:30.000Z

怎么关闭自动更新呀

<!-- gh-comment-id:4554156546 --> @BiBi2644 commented on GitHub (May 27, 2026): > 我的版本是 Claude 1.4758.0 (fb266c) 2026-04-24T20:22:30.000Z 怎么关闭自动更新呀
Author
Owner

@denial123789 commented on GitHub (Aug 28, 2026):

补充一个不修改 Claude Desktop 第三方模型配置的替代路径:可以使用 SandBase CLI 的本地 MCP 桥接,让支持 MCP 的客户端通过 OAuth 发现并调用 DeepSeek 模型/API。

npx -y https://github.com/sandbaseai/cli/releases/download/v0.1.17/sandbaseai-cli-0.1.17.tgz catalog --json
npx -y https://github.com/sandbaseai/cli/releases/download/v0.1.17/sandbaseai-cli-0.1.17.tgz connect

这不是对 Claude Desktop anthropic/v1/models 404 的直接修复;它绕开了该 Provider 端点,适合希望继续使用 MCP 客户端能力的场景。仓库和官方 Registry:
https://github.com/sandbaseai/cli
https://registry.modelcontextprotocol.io/v0.1/servers/io.github.sandbaseai%2Fcli

Disclosure: 我代表 SandBase AI 提供这个替代方案,具体兼容性请按客户端版本验证。

<!-- gh-comment-id:5446807952 --> @denial123789 commented on GitHub (Aug 28, 2026): 补充一个不修改 Claude Desktop 第三方模型配置的替代路径:可以使用 SandBase CLI 的本地 MCP 桥接,让支持 MCP 的客户端通过 OAuth 发现并调用 DeepSeek 模型/API。 ```bash npx -y https://github.com/sandbaseai/cli/releases/download/v0.1.17/sandbaseai-cli-0.1.17.tgz catalog --json npx -y https://github.com/sandbaseai/cli/releases/download/v0.1.17/sandbaseai-cli-0.1.17.tgz connect ``` 这不是对 Claude Desktop `anthropic/v1/models` 404 的直接修复;它绕开了该 Provider 端点,适合希望继续使用 MCP 客户端能力的场景。仓库和官方 Registry: https://github.com/sandbaseai/cli https://registry.modelcontextprotocol.io/v0.1/servers/io.github.sandbaseai%2Fcli Disclosure: 我代表 SandBase AI 提供这个替代方案,具体兼容性请按客户端版本验证。
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
deepseek-ai/awesome-deepseek-agent#18
No description provided.