codex never shows the ds model - Codex
Quick fix
Codex desktop needs an official login state to show third-party models. Enable keep-official-login-when-switching in cc-switch and restart.
Symptom
Section titled “Symptom”为什么我按要求配置后codex从来不显示ds的模型Why does codex never show the ds model after I configure it as instructed?
The Codex desktop model picker decides whether to show third-party custom models based on whether you are signed in with an official ChatGPT identity. Without an official login state it forcibly falls back to the official default model, and that check lives inside the client where cc-switch cannot rewrite it. Separately, some users' errors or inability to switch come from a trailing space on base_url in config.toml, or a wrong wire_api setting (DeepSeek should use chat rather than responses).
Sign in to an official ChatGPT account once in Codex desktop, so official login credentials exist in ~/.codex/auth.json.
Open cc-switch settings, turn on 切换第三方时保留官方登录 (keep the official login when switching to a third party), and confirm the third-party provider has local routing or route takeover enabled.
Quit Codex desktop completely, restart it, and open the model picker again.
Check and correct the DeepSeek config in config.toml: remove any trailing space on base_url and set wire_api to chat.
config.toml model = "deepseek-v4-flash"model_provider = "deepseek"[model_providers.deepseek]name = "DeepSeek"base_url = "https://api.deepseek.com/v1"wire_api = "chat"env_key = "DEEPSEEK_API_KEY"
Affected Versions
Section titled “Affected Versions”Source Issues
Section titled “Source Issues”This page is distilled from 3 real issues
- Why do third-party models disappear again after a while?
- Usually the preserved official login state expired. Sign in to official ChatGPT once more to restore it.
- codex debug models shows the models in the terminal but the desktop app does not.
- That means the data layer is fine and the problem is in the desktop display layer. Confirm keep-official-login is on and restart the desktop app.
- Switching model says I have to run setx DEEPSEEK_API_KEY by hand. What now?
- Older versions needed the environment variable configured by hand. Upgrade cc-switch and enable the local proxy feature, which converts the format automatically with no environment variable needed.
Related problems
Section titled “Related problems”This is an unofficial community wiki with no affiliation to the cc-switch authors or the project itself. Its content is compiled from the project's public GitHub issues. This site distributes no software.