CC Switch v4.0.19

This release adds support for Kimi Code, the 12th app managed by CC Switch. Kimi Code's command-line and desktop versions share the same configuration, so CC Switch's support covers both. Several Kimi Code providers can be written into its configuration at the same time, and you can add them, remove them and set the default in CC Switch; MCP, Skills and prompts sync to Kimi Code, sessions can be browsed and resumed, and usage is imported from session logs; the "Apps" page can install, upgrade and uninstall Kimi Code. You can also sign in to the Kimi coding plan in Accounts and add several accounts, each showing its nickname and quota. The Usage page has a new layout: time, app, provider and model sit on one row, the selected metric drives both the trend chart and the heatmap, the detail tables become tabs with counts, and you can choose how many request logs to show per page. Other fixes cover Codex reporting unsupported call: exec on every turn after switching from a third-party GPT to another model in Aggregation mode, the whole app freezing when opening the "About" page on Linux/WSL when CC Switch is launched from a terminal, image input being turned off after choosing a model for Codex, Claude Code's VS Code extension showing a redacted_thinking error through a Responses upstream, Claude subscription quota reading the wrong Keychain entry on macOS, the Gemini group missing from Antigravity quota, the console starting on Windows when Hermes is installed in WSL, and a single Esc closing every stacked panel. For everything new in 4.0, see the v4.0 release notes.


New

Kimi Code

Kimi Code (the command is kimi) is now a separate app with its own providers, MCP, Skills, prompts, sessions and usage (#8687). Its configuration is in ~/.kimi-code/config.toml, or in the folder set by KIMI_CODE_HOME when that is set.

💡 Works for both the command-line and desktop versions. Kimi Code's command-line and desktop versions share the same configuration and sign-in in ~/.kimi-code, so the providers, MCP, Skills, prompts and official accounts you add in CC Switch can be used directly by both.

Official Kimi accounts

In Accounts you can click "Sign in to Kimi" (choosing "Kimi Code official sign-in" when adding a provider also takes you there), choose the China or international version, and once you finish authorizing in the browser, the official models are added automatically (#8710, #8726).

Improvements

The Usage page has a new layout (#8711).

"Set as default" for OpenCode and OpenClaw moves into the more menu. The star icon on added cards was hard to recognize, and it was not clear whether it was selected. It is now in the card's more menu, and for providers with several models you can pick the default model from a submenu. The default provider for OpenCode, OpenClaw, Hermes and Kimi Code is now marked in the same blue as "In use".

Pi's provider key is always shown. It is also shown and prefilled when adding from a preset, and can be changed; if it duplicates another Pi card, a hint appears below the input and the card cannot be saved. Before, the error only appeared when saving.

MCP servers show their custom display name (#8692). For servers with a display name set, the list and the delete confirmation show it, with the ID written next to it.

The whole project group header on the Sessions page can be clicked to expand and collapse (#8709).

Presets: Added BuyToken and V-API.

Fixes

Upgrade Notes

The database schema goes from 21 to 22, adding Kimi Code toggles for MCP and Skills. 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 @funkpopo (Kimi Code support, official Kimi accounts), @94mashiro (Usage page layout), @AkimioJR (MCP display names), @minimote (session group headers), @StrengW (Codex session headers), @clarkchen (Bailian Token Plan model list), @allenxu09 (Claude subscription Keychain entry) for their contributions.

Thanks to @jelasin, @Yu-ZhL, @abing7k, @ligoweb, @scially, @Hades-Z, @haibara-brownie, @Tommie-P-xl, @ramonmi, @specetator, @ilov-vveu, @zjcadmin 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. @kuqitt, @GuanyuZ, @Amiyadesi, @cgheaven, @xu-song, @zhangyang-crazy-one, @m11y, @chen-985211, @1074854980, @xiaoshidefeng, @seth-shi, @Konsn666, @HyacinthHaru, @Komikawayi, @aofee, @yan9651688, @yulv706, @harrison-pan, @szupzj18, @yk4642d97f-boop, @czhmartinez, @ntdatt812, @YongmaoLuo, @moeacgx, @zichen0116, @John1Tang, @OriyukiAkari, @Piao-2024, @jintonglu6688, @hhhkkk666-dot, @mikkley, @SailingLoong, @fanxing-6, @songzhibin97, @kZime, @RoiexLee, @wangwenjier, @magicapple123, @jzcangshu, @lyfuci, @ggbdpq, @alfchao, @wrenfix, @NestorRay.

For the full technical details, see the CHANGELOG.