CC Switch v4.0.21

This release adds switching between multiple official subscription accounts for Claude Code: add a few Claude accounts in Accounts, choose one for each official card, and Claude Code uses the account of whichever card you switch to; to use several accounts at once, use "Open Terminal" on a card, and that terminal stays on the card's account. Sign-in goes through Claude Code's official flow, tokens stay only in Claude Code on your machine, and CC Switch does not upload or refresh them, and does not sign out. Cards bound to an account and Accounts both show each account's plan and remaining quota. In addition, "Open Terminal" moves onto the card, Codex model lists can be reordered by dragging, and Lightweight mode persists across restarts. Fixes cover managed ChatGPT accounts wrongly reporting an expired sign-in after a restart, Codex requests going to a different address through routing, extra timeout / autoApprove in Codex's MCP configuration, OpenCode and Grok Build not installing properly under npm 12, wrong times in Kimi Code usage, and Oh My Pi's models.yml not being editable when it contains &, * or !. For everything new in 4.0, see the v4.0 release notes.


New

Switch between multiple official Claude subscription accounts

If you have more than one Claude subscription (say a personal Max and a company Team, or several Pro accounts), before you could only /logout and then /login in Claude Code, or create a configuration folder for each account yourself. Now you can manage several accounts in CC Switch (#1928).

Security and compliance. When a tool manages subscription accounts, what matters most is keeping tokens safe and not violating Anthropic's terms. This feature follows the approach in Claude Code's official documentation, and tokens always stay only in Claude Code on your own machine:

Switching accounts by switching cards moves the sign-in between Claude Code's storage locations on your machine (only in Claude Code's own format), a use the official docs do not specifically cover. If you only want the methods the docs describe, keep cards on "Follow Claude Code login" and use other accounts only through "Open Terminal" on a card.

How to use it:

A few notes:

Codex model lists can be reordered by dragging

Each row of the model list in the Codex provider form starts with a drag handle, and the order can be changed with the mouse or the keyboard (#8870). This order is the order of the /model menu in Codex. When the first row stands for the default model, the model dragged to the first row becomes the new default. Before, moving a model meant deleting it and adding it back.

Improvements

"Open Terminal" moves onto the card. It used to be in the ⋯ menu; now it is an icon button to the left of "Edit". The hover tooltip reads "Open Terminal with This Provider", and adds "(Isolated)" when the terminal is pinned to this card (cards with their own address and Key filled in, and official cards with a Claude account selected).

The "Add account" button of each group in Accounts stays to the right of the title. Before, when a group had no accounts, the button moved into the empty-state message, so the buttons of different groups sat at different heights. The ChatGPT login method is now a small dropdown next to the button. The "Delete all accounts" menu in the title is removed; accounts are deleted from the menu on their own row. The quota bars of all accounts are now aligned and the same length.

Lightweight mode persists across restarts. If you quit CC Switch while in Lightweight mode, it starts in Lightweight mode next time instead of showing the main window. A cold start from a ccswitch:// link still opens the main window, so the import dialog can be shown.

Hermes cards show "Default", and "Set as default" moves into the ⋯ menu. Hermes writes every added provider into config.yaml, and the current one is only the default, as with OpenClaw, OpenCode and Kimi Code. The old power-icon "Enable" button looked like a toggle.

The usage column no longer shifts sideways when a card becomes "In use".

When SSE is selected for an MCP server, a hint shows which apps do not support it (#8882). Codex only supports stdio and HTTP and treats an SSE address as an HTTP connection, which fails when the server only supports SSE; Pi and Antigravity report an error when saving. A hint now appears under "Write to" in advance.

When the Claude Desktop upstream address is githubcopilot.com, the upstream format shows "Selected automatically by routing" (#8838), the same as when a GitHub Copilot provider is selected.

OpenCode's OMO and OMO Slim cards no longer show "Connectivity check" (#8842). They only map agents to models and have no address to test; clicking it used to report an error.

Turkish translation completed (#8836).

Presets: DeepSeek presets all use the Flash model; the official Kimi presets add K3.1 Pro and K3.1 Pro HighSpeed, with low / high / max thinking levels (#8867); OpenClaw's MiniMax M3.1 Flash can select max; ClinePass (#8885) and TeamoRouter Claude (#8266) are added; Claude Desktop's OpenCode Go uses the address from the official docs, and its quota can now be queried (#8720, #8779).

Fixes


Thanks

Thanks to @L4XB (Codex routing address, Gemini export syntax), @syxscott (Codex remote compaction usage), @jlxzl (OpenCode Go address for Claude Desktop), @Railgun-wiki (Copilot address detection for Claude Desktop), @VipCrazyMaster (connectivity check on OMO cards), @allenxu09 (usage trend chart), @alkank (Turkish translation), @2867297362mjb-sketch (TeamoRouter presets), @zayokami (end-to-end routing tests), @Ming-Sir-69 (Windows build fix), @SaladDay (issue and PR templates, CI) for their contributions.

Thanks to @chunliang7258, @Lightly20110815, @Catcaca11j, @xovow, @Haoxuan1016, @karenepitaya, @lwdreamroom, @QingYunA, @bamboodew, @Little-TBS, @sojo-negai, @ppdragon2026, @smart-wcm, @oscarachiang for reporting issues and providing reproduction details and fix ideas.

Special thanks to @octo-patch: your PR found and fixed a real problem, and was closed only because the same problem was later fixed separately on the main branch.

For the full technical details, see the CHANGELOG.