CC Switch v4.0.2

The second fix release for the 4.0 preview

This release fixes Claude Code conversations on a ChatGPT account breaking with a 400 error and Codex aggregated models not showing up, among other issues. In Claude Code's Aggregation mode, /model now lists just the aggregated models, and changing them no longer needs a Claude Code restart. MCP servers can also be synced to Pi 1.0. Starting with this release, the first launch after an update shows a short summary of what changed. For everything new in 4.0, see the v4.0 release notes.

Preview builds do not update automatically. In-app updates follow stable releases only. If you installed 4.0.0 or 4.0.1, download 4.0.2 from this page and install it manually.


New

MCP servers can be synced to Pi 1.0. Pi 1.0 has built-in MCP with the same config format as Claude Code, so the MCP page can now turn on sync for Pi. CC Switch writes only the connection fields and leaves Pi's own settings, such as timeouts, tool exposure and OAuth, as they are. Turning sync off does not delete the entry; it is marked disabled in Pi, and those settings are still there when you turn it back on. Configurations Pi does not support (the SSE transport, special characters in the name) are flagged right away and never written to the file.

A short summary after updating. The first time you open CC Switch after an upgrade, a window lists the main changes of every version since you last opened it, a few lines each; click "Details" for the full notes. To see it again later, click "Recent updates" in Settings → About.

Fixes

Polish

Upgrade Notes

Claude Code's Aggregation mode needs Claude Code 2.1.243 or later. Aggregated models are now listed in /model through the modelPicker setting, which Claude Code added in 2.1.243. Earlier versions ignore this setting, so /model shows none of the aggregated models: you can only use the default model, or pick another one by hand with /model <model ID>. Run claude --version in a terminal to check your version and claude update to upgrade.

The database version is now 20, with a new column for Pi's sync switch; upgrading writes nothing to Pi. Once 4.0.2 has opened the database, going back to 4.0.1, 4.0.0 or 3.x shows "Database version is too new". The database is backed up automatically before the upgrade, under ~/.cc-switch/backups/ (files starting with db_backup_).


Thanks

Thanks to @parkavenue9639 and @ggbdpq (the ChatGPT account 400 fix), @Owlbay and @LystranG (MCP sync for Pi, plus Owlbay's fix for the time MCP preset) and @allenxu09 (the usage time range picker) for their contributions, and to @killServer0 for reporting the time MCP preset issue.

For the full technical details, see the CHANGELOG.