mirror of
https://github.com/deepseek-ai/awesome-deepseek-agent.git
synced 2026-11-05 01:07:37 +00:00
[GH-ISSUE #5] 如何接入Codex? #1
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/awesome-deepseek-agent#1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ipcjs on GitHub (Apr 28, 2026).
Original GitHub issue: https://github.com/deepseek-ai/awesome-deepseek-agent/issues/5
添加OpenAI格式的配置,到Codex,报错:
网上检索下,发现codex,已经不支持自己的chat/completions接口了,有点幽默🌚:
Deprecating
chat/completionssupport in Codex · openai/codex · Discussion #7782@yuercl commented on GitHub (Apr 28, 2026):
不止是 chat/completions接口,还有很多地方不适配
@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
总结:就是填个配置、设个环境变量,一步到位。
@ipcjs commented on GitHub (Apr 29, 2026):
😄️,AI就是这样,不会的不会说不会,一定给你瞎编出来
@rainnight2013 commented on GitHub (Apr 29, 2026):
所以现在就是codex没办法用ds的模型?
@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.
@meteor-liu-xinyu commented on GitHub (Apr 29, 2026):
感谢大佬适配,不过我转去用接入copilot了
@mustardwheat commented on GitHub (Apr 30, 2026):
可以试试https://github.com/ZhiYi-R/moon-bridge
用于将Anthropic Messages格式的Provider转换成OpenAI Responses,对deepseek有很好的适配,且可以将图片分析委派给专门的视觉 Provider 来让deepseek获得visual能力
@BenedictKing commented on GitHub (May 4, 2026):
试试 https://github.com/deepseek-ai/awesome-deepseek-agent/pull/55 完美接入codex和claude,还能无缝切换其他渠道