CC Switch v4.0.20

This release adds support for Oh My Pi, the 13th app managed by CC Switch: several providers can be written into its models.yml at the same time, MCP, Skills and prompts sync to Oh My Pi, sessions can be browsed and resumed, and the "Apps" page can install, upgrade and uninstall Oh My Pi. The "Apps" page is split into "Installed" and "Not installed" groups, and installed apps can be dragged to reorder them, with the sidebar following that order. Cards for official Kimi accounts can now have their models edited and be removed from Kimi Code; managed ChatGPT accounts can sign in through the browser. Other fixes cover DeepSeek showing "Plan expired" once the balance runs out, Kimi Code subagent usage not being counted, Skills updates failing with HTTP 429 every time, quota queries returning 401 when Pi's API Key is written as an environment variable reference, Claude Code session titles showing as <local-command-stdout>, and the header not dragging the window on Linux with app-level window controls enabled. For everything new in 4.0, see the v4.0 release notes.


New

Oh My Pi

Oh My Pi (the command is omp) is now a separate app with its own providers, MCP, Skills, prompts and sessions (#6747, #8308). Its configuration is in ~/.omp/agent, or in ~/.omp/profiles/<name>/agent when you use a named profile; you can also point it to another folder in the settings.

Managed ChatGPT accounts can sign in through the browser

When adding a managed ChatGPT account in Accounts or in the Codex provider form, you can choose "Browser login" under "Login method" (#8288, #8284). Some enterprise workspaces turn off device-code sign-in, so these accounts could not be added before; signing in again can also use the browser. "Device-code login" is still available.

Improvements

The "Apps" page is split into "Installed" and "Not installed" groups. Each group title shows a count, and a group with no apps is hidden; right after opening, while detection is still running, a single table is shown first and split into groups once detection finishes, so rows do not jump one by one. Claude Desktop has no command to check, so it is grouped by whether Desktop is installed, and its row still says whether it is connected to CC Switch.

Installed apps can be dragged to reorder them. Hovering over a row shows a drag handle at its start, the same as sorting provider cards. The sidebar and the app opened by default both follow this order; the order is stored only on this device and is not cloud-synced.

Cards for official Kimi accounts can be edited and removed. Before, official cards could only be managed in Accounts, and their models stayed as they were at sign-in. Now you can edit the card: the connection and sign-in are still managed by Accounts, and here you only change the models; "Fetch Models" reads the official models currently available to that account, with the official context window, capabilities and thinking levels. Official cards can also be removed from Kimi Code with "Remove", like other Kimi providers; the card and the sign-in are kept, and clicking "Add" restores it. To delete one, remove it first, or delete it in Accounts.

Kimi accounts without a Kimi Code plan show "No subscription". Before, the quota column in Accounts and on official cards was empty, which looked like a failed query.

The amount is shown even when the balance is used up. When the balance was zero or in debt, provider cards and the tray used to say only "Balance used up", without showing how much was owed, and the red text was hard to tell apart from "Quota unavailable". Now it always shows "Balance <amount>"; at zero or below, the whole line turns red on the card and amber in the tray, as before.

The Chinese text for a failed quota query now reads "额度查询失败" (formerly "额度没查到") on provider cards, in Accounts and in the tray; this only changes the Simplified and Traditional Chinese text, and English is unchanged.

Pi picks fetched models in a dialog. Before, models could only be chosen row by row from a dropdown; now, as with OpenCode, Codex and Kimi Code, a list pops up, each checked model is added as a row with its parameters filled in from presets or models.dev, and unchecking removes the matching row. The per-row dropdown is still there.

Pi's request headers and compatibility options move into "Advanced Options". It is collapsed by default, matching the Claude Code and Codex forms; the explanations of the compatibility options are rewritten in plain language.

When Claude Code or Claude Desktop uses a GitHub Copilot provider, the upstream format shows "Selected automatically by routing" (#8196, #8195). Copilot's upstream format is already chosen automatically per model; before, the form still let you pick one by hand, which had no effect.

All counts on the Usage page's detail tabs are shown at once. Before, the "Models" tab only showed its count after you opened it, and switching apps made the three counts disappear and reappear, shifting the tab bar.

The pricing table adds Kimi K3.1 Pro and K3.1 Pro HighSpeed.

Turkish translation completed (#8616).

Presets: Each vendor's preset models are updated to their current latest models, so they work as soon as you enter a Key.

Fixes

Upgrade Notes

The database schema goes from 22 to 23, adding an Oh My Pi toggle for MCP. The database is backed up automatically before the upgrade; if you go back to an older version after upgrading, it reports that the database version is too new and cannot open it.


Thanks

Thanks to @JackieJK, @allenxu09 (Oh My Pi support), @Llugaes (ChatGPT account browser login), @dsdbb520 (Antigravity subagent usage), @L4XB (Claude Code session titles), @vianrina (Linux window dragging), @Railgun-wiki (Copilot upstream format), @NeeYoonc (image placeholder for orphaned tool results), @alkank (Turkish translation) for their contributions.

Thanks to @CypressStar, @taylortaurus, @SoraStr, @Lain-in-coding, @TomMao23, @L-Molish, @taki-ohh for reporting issues and providing reproduction details and fix ideas.

Special thanks to the following contributors: your PRs found and fixed real problems, and were closed only because the same problems were later fixed separately on the main branch. @yvzhou1111, @AkimioJR, @KirisameLonnet.

For the full technical details, see the CHANGELOG.