baseurl error or 401: Codex's base_url is overridden by the routing address
Quick fix
The configuration write behavior changed in CC Switch 4.0. If the issue persists after upgrading to 4.0, provide the version and reproduction steps.
Symptom
Section titled “Symptom”为什么不这样修改模型就会报baseurl错误或者401Why does it report a baseurl error or 401 if I don't make this change?
The user reported that in Windows 11 and CC Switch 3.16.5, the Codex configuration used `http://127.0.0.1:15721/v1` as the actual `base_url` and set `experimental_bearer_token` to `PROXY_MANAGED`. They were also concerned that using a routing address in the general configuration would replace the provider's actual `base_url`. The maintainer replied that CC Switch 4.0 had changed the interface and configuration write behavior, so the issue was closed. The issue does not say whether 4.0 resolved the specific base_url or 401 behavior.
Upgrade to CC Switch 4.0 and try again. If the issue persists, report back with the version and reproduction steps.
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.