CC Switch v4.0.10

The sixth fix release for 4.0 stable

This release focuses on one-click import links (ccswitch:// deep links): clicking a link while CC Switch is not running no longer loses it; links can declare the API format, import Pi providers and bring the site's own icon; Codex and Grok Build links keep the provider's own configuration instead of having it replaced with a fixed template; and the confirmation dialog lets you choose whether to switch right after import. Site owner guides in Chinese, English and Japanese and an online link generator are also published. Provider icons can now be uploaded from local images, and once saved to "My Icons" any provider can use them; the usage page adds first-token time, which can be estimated from session logs even when routing is off. It also fixes upstreams that require thinking rejecting Claude Code's haiku-tier requests in Routing mode, Codex sessions left by using an official account through routing in v3.20 and earlier failing to open, and Grok Build third-party providers being unable to generate session titles. For everything new in 4.0, see the v4.0 release notes.


What changes for users

New parameters for site owners

Site owner guide and online generator

New

Provider icons can be uploaded from local images and kept in "My Icons" for reuse. The icon picker is split into two groups, "My Icons" and "Built-in Icons", and the search box filters both. Click "Upload", the first tile in "My Icons", pick a PNG, JPG, WebP or SVG (up to 2 MB) and give it a name (the file name by default), and it is saved to "My Icons" and used for the current provider; from then on other providers and other apps can pick it directly without uploading it again, and uploading the same image again reuses the existing entry. Hover over an icon to rename or delete it; cards store the image itself, so renaming or deleting does not affect providers already using it. Images are shrunk to a 96×96 PNG, and "My Icons" and provider configs both travel with cloud sync, with no separate files saved on disk; SVGs are converted to bitmaps first, any scripts and external requests inside them are not run, and the original file does not go into the database. Site icons brought in by one-click import links are shown as "Current icon" and can be saved to "My Icons". In the picker, one click on an icon now selects it and closes the picker; to remove the icon, click "Clear icon" next to the search box.

The usage page shows first-token time. The routing service has always recorded first-token time, but it used to be visible only in hover tooltips and request details. Provider stats and model stats now have a "First token" column, which takes the median of successful streaming requests through the routing service, so occasional slow requests from queuing or cold starts don't pull it up; the request log also adds a "First token" column after "Speed". When routing is off, it is estimated from session log timestamps and shown with ≈: for Claude Code, from replies that start with thinking; for Codex, from timestamps written by newer versions; replies that start with body text or a tool call have no estimate. Records imported before the upgrade are not backfilled.

Usage query adds a Sub2API template. The templates in "Configure usage query" add Sub2API, which needs only the provider's Key and address, with or without /v1; it shows the plan name, and unlimited subscriptions no longer show as a negative balance.

New presets: NekoCode (Claude Code, Claude Desktop, Codex, OpenCode, OpenClaw, Hermes, Pi; MiniMax Code uses the Pi preset). YYLX is shown as 「鱼鱼连线」 in the Simplified Chinese interface (「魚魚連線」 in Traditional Chinese); the English interface still shows YYLX.

Fixes

Other: The description of "Connection mode" now leads with what each mode is good at: Direct is the most native, Routing can hot-switch providers and supports failover and format conversion, and Aggregation lets you switch seamlessly between models from several providers inside the client. All usage table columns are now left-aligned, and the provider and model columns in the request log give up some width to the number columns. The Japanese interface changes 「高級オプション」 to 「詳細オプション」.

Upgrade Notes

The database schema is unchanged, still at 20.


Thanks

Thanks to @funkpopo (OpenRouter showing the plan as expired when the balance is zero, and Codex usage recorded under the wrong model after switching models mid-thread), @hulkbig (unconfirmed directories being saved when settings auto-save) and @NestorRay (the flash on Windows when opening provider pages) for their contributions.

Thanks to @hao-lin-lwh, @desmonna, @mossonli, @enderzcx, @nbcoming, @liyangdeamo-svg, @linhay and @aofee for reporting issues, providing reproduction details and helping verify fixes.

For the full technical details, see the CHANGELOG.