Codex cannot select models after configuration
Quick fix
Enable keep-official-login in Codex app enhancements, then log in again and switch providers to restore the model list.
Symptom
Section titled “Symptom”配置后同样用不了,选择不了模型After configuration, it still does not work and no model can be selected.
In cc-switch 3.16.4 and 3.16.5, the Codex desktop client relies on the official account login session to read and cache the proxy-generated model catalog file (cc-switch-model-catalog.json). If the official login state is not kept or the session expires, the Codex frontend cannot load the model dropdown even when the configuration file exists and is correct. Some users report that the changelog says this was fixed, but the model list can still be empty because of stale local cache or an unrefreshed login state.
Open the CC Switch settings page and go to Settings → General → Codex App Enhancements. Enable “Keep official login when switching to third-party (disabled by default)”.
Find the configured third-party API entry, edit it again, and save it to trigger a configuration reload.
In the Codex client, sign out of the current account, sign in again with the official OpenAI/Claude account, then immediately switch back to the third-party API configuration.
Fully quit and restart the Codex desktop app. The model list should then display normally.
Affected Versions
Section titled “Affected Versions”Source Issues
Section titled “Source Issues”This page is distilled from 1 real issues
- Why does the changelog say this is fixed, but I still cannot see models after upgrading?
- That version only fixed the underlying read logic, but the Codex client strongly depends on the login state. If the official account session is not refreshed or the keep-official-login switch is not enabled, local cache can still prevent the model list from rendering. Follow the fix steps to log in and switch again.
- I use API Key login only and have no official account. Can this solve the problem?
- The current mechanism depends on the official account login token to maintain model metadata synchronization through the proxy channel. Pure API Key mode may not trigger the full model-list loading flow. Temporarily bind an official account, complete one login-state handshake, then switch back to API Key, or wait for a later version with better compatibility.
- After enabling keep official login, will third-party API call stability be affected?
- No. This option only keeps the official-side authentication context when switching providers. It helps read model catalog metadata. Actual requests are still forwarded by the cc-switch proxy to your configured third-party upstream, with no impact on concurrency or latency.
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.