Model list error: Codex model list does not match the provider
Quick fix
Most related issues remain unresolved. Retest after upgrading to the latest Codex configuration-writing logic. If it persists, provide… (/.codex/config.toml)
Symptom
Section titled “Symptom”关闭cc-switch, 切换为原生codex, model列表显示为openrounter中的模型选择
开启cc-switch, model列表显示为codex原生列表,gpt模型选择With cc-switch closed, switching to native codex shows model choices from openrounter in the model list. With cc-switch enabled, the model list shows the native codex list and gpt model choices.
The maintainer said that the old configuration restoration logic used when exiting CC Switch may leave the model list showing OpenRouter models after exit. Version 4.0 rewrote Codex configuration writing: when switching providers, it replaces only key fields such as the endpoint, credentials, and model; on exit, it writes the configuration again based on the current settings and handles the model catalog pointer separately. The issue has not confirmed whether upgrading resolves the problem.
Upgrade to the latest version and retest.
If the issue persists, specify whether you use Codex CLI or the desktop app, provide the Codex version, and share ~/.codex/config.toml from both states.
Affected Versions
Section titled “Affected Versions”Source Issues
Section titled “Source Issues”This page is distilled from 1 real issues
(No FAQ yet)
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.