在 Paseo 中同时使用 OpenAI Codex 与 DeepSeek
今天(2026 年 7 月 31 日),DeepSeek 更新了 DeepSeek-V4-Flash 的正式版本,官方公告如下:
🚀 DeepSeek-V4-Flash Official API is now LIVE in public beta!
— DeepSeek (@deepseek_ai) July 31, 2026
🔷 We've massively upgraded its Agent capabilities—benchmark scores are now far surpassing the V4-Pro-Preview. Check out the massive performance leap below! 👇
🔷 The official V4-Flash now natively supports the Responses API format and is fully adapted for Codex!
deepseek-v4-flash 原生支持 Responses API 并完全适配 Codex(配置细节见官方文档),正好可以直接接进 Paseo 使用。
Paseo 内置支持 Codex。通过派生 Provider,可以在保留官方 OpenAI GPT 的同时,增加一个使用 DeepSeek 的 Codex Provider。
最终效果:
Codex:使用 OpenAI GPT 和 Codex 登录状态。Codex (DeepSeek):使用 DeepSeek 或兼容 Responses API 的网关。- 两个 Provider 在 Paseo 中独立显示,可以按任务选择。
1. 配置 Paseo
Paseo 配置文件位置:
- 正常安装:
~/.paseo/config.json - 仓库开发环境:
.dev/paseo-home/config.json
加入两个 Provider:
1 | { |
重载 Paseo 配置后,Provider 列表中会同时出现:
1 | Codex |
其中:
Codex使用 OpenAI 登录和 GPT 模型。Codex (DeepSeek)继承 Paseo 的 Codex adapter,但使用独立的 API 地址、密钥和模型。
有了 codex-deepseek 配置后,DeepSeek 所需信息已经由 Paseo 注入 Codex app-server:
OPENAI_BASE_URLOPENAI_API_KEY- 模型 ID
model_provider和model_providers
因此:
~/.codex/config.toml只需保留标准 OpenAI Codex 配置,甚至可以不配置,完成codex login即可。~/.codex/deepseek.config.toml不是 Paseo 所必需的。- 只有想在终端直接运行
codex --profile deepseek时,才需要 DeepSeek profile。
最简结构就是:
1 | OpenAI Codex |
2. (可选)配置 DeepSeek Codex Profile(仅终端使用)
以下配置只影响在终端直接运行 codex --profile deepseek,Paseo 不依赖它。
如果需要在终端中直接使用 DeepSeek,创建:
1 | ~/.codex/deepseek.config.toml |
示例:
1 | model = "deepseek-chat" |
设置 API Key:
1 | export DEEPSEEK_API_KEY="<your-api-key>" |
运行:
1 | codex --profile deepseek |
如果使用代理或内部网关,将 base_url 和模型 ID 替换为网关提供的值。该接口必须兼容 OpenAI Responses API。
3. 排查问题
检查 Codex 是否可用:
1 | codex --version |
检查 DeepSeek profile:
1 | codex --profile deepseek |
检查 Paseo Provider:
1 | npm run cli -- provider ls |
查看开发环境日志:
1 | tail -f .dev/paseo-home/daemon.log |
生产环境日志通常位于:
1 | tail -f ~/.paseo/daemon.log |
如果 DeepSeek Provider 可见但模型不可选,确认 Paseo 配置中的模型 ID 与 DeepSeek profile 使用的模型 ID 一致。