Codex App 在登录状态使用自定义 Provider

方法很简单:

  1. 在 Codex App 完成 ChatGPT 登录。
  2. ~/.codex/config.toml 中加入:
1
2
3
4
5
6
7
8
9
model_provider = "custom"
preferred_auth_method = "apikey"

[model_providers.custom]
name = "custom"
base_url = "https://xxx/v1"
wire_api = "responses"
experimental_bearer_token = "sk-xxxxxxxx"
requires_openai_auth = true
  1. 重启 Codex App。

现在,你可以在使用第三方 Provider 的同时,正常使用 Codex App 的插件功能,还可以使用 Codex Mobile,在手机上监控开发任务。

使用 Hugo 构建
主题 StackJimmy 设计