Skip to content

config.toml and auth.json not switching together — Codex

Quick fix

Upgrade to CC Switch v3.16.1 or later; reports indicate the v3.16.1 pre-release resolved this issue.

Error output
config.toml 和 auth.json 未同步切换
English translation

config.toml and auth.json do not switch together

In CC Switch v3.16.0, after configuring multiple providers with local routing enabled and switching providers, Codex's config.toml and auth.json still retained the previous third-party API content. After starting Codex CLI, the original GPT model was still shown. Users reported this on both Windows and Mac.

The original post did not explain the implementation cause. Users reported that v3.16.1 pre-release resolved it, and the maintainer said related issues were fixed or implemented in the v3.16.0 / v3.16.1 changes. If it still reproduces after upgrading, the maintainer requested the version, system, app version, reproduction steps, and logs or screenshots.

  1. Upgrade CC Switch to v3.16.1 or later.

  2. Switch providers with local routing enabled again, then check whether Codex's config.toml and auth.json switch with the provider.

  3. If it still reproduces consistently after upgrading, provide the CC Switch version, operating system, related app version, reproduction steps, and logs or screenshots in the source issue.

ToolCodex
Version3.16.0(受影响版本)
PlatformsWindowsmacOS
When switching APIs now, do I still need to edit them manually?
The discussion does not provide a specific method for manually writing the configuration; reports indicate the issue was resolved after upgrading to v3.16.1 pre-release.
I installed Codex desktop directly on win and have never installed cli.
This report likewise describes config.toml and auth.json retaining the previous third-party API content after switching.

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.