[GH-ISSUE #5] 如何接入Codex? #1

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

Originally created by @ipcjs on GitHub (Apr 28, 2026).
Original GitHub issue: https://github.com/deepseek-ai/awesome-deepseek-agent/issues/5

添加OpenAI格式的配置,到Codex,报错:

unexpected status 404 Not Found: Unknown error, url: https://api.deepseek.com/responses

网上检索下,发现codex,已经不支持自己的chat/completions接口了,有点幽默🌚:
Deprecating chat/completions support in Codex · openai/codex · Discussion #7782

Originally created by @ipcjs on GitHub (Apr 28, 2026). Original GitHub issue: https://github.com/deepseek-ai/awesome-deepseek-agent/issues/5 添加OpenAI格式的配置,到Codex,报错: ``` unexpected status 404 Not Found: Unknown error, url: https://api.deepseek.com/responses ``` 网上检索下,发现codex,已经不支持自己的chat/completions接口了,有点幽默🌚: [Deprecating `chat/completions` support in Codex · openai/codex · Discussion #7782](https://github.com/openai/codex/discussions/7782)
Author
Owner

@yuercl commented on GitHub (Apr 28, 2026):

不止是 chat/completions接口,还有很多地方不适配

<!-- gh-comment-id:4334488992 --> @yuercl commented on GitHub (Apr 28, 2026): 不止是 chat/completions接口,还有很多地方不适配
Author
Owner

@cnazev commented on GitHub (Apr 29, 2026):

我昨晚问ds 还说最推荐codex使用,结果看官方文档里根本没有列出codex的配置方法......

昨晚是这么回答的

Codex (极其丝滑)

你只需要找到配置文件 (~/.codex/config.json),填入以下内容即可:
json

{
"model": "deepseek-chat",
"model_provider": "deepseek",
"model_providers": {
"deepseek": {
"name": "DeepSeek",
"baseURL": "https://api.deepseek.com/v1",
"envKey": "DEEPSEEK_API_KEY"
}
}
}

然后在终端里设置一下你的 API 密钥,就能立刻使用。
export DEEPSEEK_API_KEY="你的密钥"
codex

总结:就是填个配置、设个环境变量,一步到位。

<!-- gh-comment-id:4340499369 --> @cnazev commented on GitHub (Apr 29, 2026): 我昨晚问ds 还说最推荐codex使用,结果看官方文档里根本没有列出codex的配置方法...... 昨晚是这么回答的 Codex (极其丝滑) 你只需要找到配置文件 (~/.codex/config.json),填入以下内容即可: json { "model": "deepseek-chat", "model_provider": "deepseek", "model_providers": { "deepseek": { "name": "DeepSeek", "baseURL": "https://api.deepseek.com/v1", "envKey": "DEEPSEEK_API_KEY" } } } 然后在终端里设置一下你的 API 密钥,就能立刻使用。 export DEEPSEEK_API_KEY="你的密钥" codex 总结:就是填个配置、设个环境变量,一步到位。
Author
Owner

@ipcjs commented on GitHub (Apr 29, 2026):

我昨晚问ds 还说最推荐codex使用,结果看官方文档里根本没有列出codex的配置方法......

😄️,AI就是这样,不会的不会说不会,一定给你瞎编出来

<!-- gh-comment-id:4340509873 --> @ipcjs commented on GitHub (Apr 29, 2026): > 我昨晚问ds 还说最推荐codex使用,结果看官方文档里根本没有列出codex的配置方法...... 😄️,AI就是这样,不会的不会说不会,一定给你瞎编出来
Author
Owner

@rainnight2013 commented on GitHub (Apr 29, 2026):

添加OpenAI格式的配置,到Codex,报错:

unexpected status 404 Not Found: Unknown error, url: https://api.deepseek.com/responses

网上检索下,发现codex,已经不支持自己的chat/completions接口了,有点幽默🌚: Deprecating chat/completions support in Codex · openai/codex · Discussion #7782

所以现在就是codex没办法用ds的模型?

<!-- gh-comment-id:4340921377 --> @rainnight2013 commented on GitHub (Apr 29, 2026): > 添加OpenAI格式的配置,到Codex,报错: > > ``` > unexpected status 404 Not Found: Unknown error, url: https://api.deepseek.com/responses > ``` > > 网上检索下,发现codex,已经不支持自己的chat/completions接口了,有点幽默🌚: [Deprecating `chat/completions` support in Codex · openai/codex · Discussion #7782](https://github.com/openai/codex/discussions/7782) 所以现在就是codex没办法用ds的模型?
Author
Owner

@yuercl commented on GitHub (Apr 29, 2026):

做了一个deepseek codex cli的适配器:https://github.com/yuercl/deepseek-codex-adapter 。有bug的话,欢迎提issue和pr

I've created an adapter for the DeepSeek Codex CLI: https://github.com/yuercl/deepseek-codex-adapter. Please feel free to submit issues and pull requests if you find any bugs.

<!-- gh-comment-id:4343372611 --> @yuercl commented on GitHub (Apr 29, 2026): 做了一个deepseek codex cli的适配器:https://github.com/yuercl/deepseek-codex-adapter 。有bug的话,欢迎提issue和pr I've created an adapter for the DeepSeek Codex CLI: https://github.com/yuercl/deepseek-codex-adapter. Please feel free to submit issues and pull requests if you find any bugs.
Author
Owner

@meteor-liu-xinyu commented on GitHub (Apr 29, 2026):

做了一个deepseek codex cli的适配器:https://github.com/yuercl/deepseek-codex-adapter 。有bug的话,欢迎提issue和pr

I've created an adapter for the DeepSeek Codex CLI: https://github.com/yuercl/deepseek-codex-adapter. Please feel free to submit issues and pull requests if you find any bugs.

感谢大佬适配,不过我转去用接入copilot了

<!-- gh-comment-id:4343400090 --> @meteor-liu-xinyu commented on GitHub (Apr 29, 2026): > 做了一个deepseek codex cli的适配器:https://github.com/yuercl/deepseek-codex-adapter 。有bug的话,欢迎提issue和pr > > I've created an adapter for the DeepSeek Codex CLI: https://github.com/yuercl/deepseek-codex-adapter. Please feel free to submit issues and pull requests if you find any bugs. 感谢大佬适配,不过我转去用接入copilot了
Author
Owner

@mustardwheat commented on GitHub (Apr 30, 2026):

可以试试https://github.com/ZhiYi-R/moon-bridge
用于将Anthropic Messages格式的Provider转换成OpenAI Responses,对deepseek有很好的适配,且可以将图片分析委派给专门的视觉 Provider 来让deepseek获得visual能力

<!-- gh-comment-id:4349391829 --> @mustardwheat commented on GitHub (Apr 30, 2026): 可以试试https://github.com/ZhiYi-R/moon-bridge 用于将Anthropic Messages格式的Provider转换成OpenAI Responses,对deepseek有很好的适配,且可以将图片分析委派给专门的视觉 Provider 来让deepseek获得visual能力
Author
Owner

@BenedictKing commented on GitHub (May 4, 2026):

试试 https://github.com/deepseek-ai/awesome-deepseek-agent/pull/55 完美接入codex和claude,还能无缝切换其他渠道

<!-- gh-comment-id:4368736656 --> @BenedictKing commented on GitHub (May 4, 2026): 试试 https://github.com/deepseek-ai/awesome-deepseek-agent/pull/55 完美接入codex和claude,还能无缝切换其他渠道
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#1
No description provided.