Skip to content

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode,DeepSeek Harness and more. Only official website: ccswitch.io

16.5 KB
Raw Blame

CC Switch v4.0.45

This release makes Antigravity third-party providers take effect on switching, the same way Claude Code does: switching writes the card into the Enterprise Gateway in ~/.gemini/config/config.json, so newly started agy sessions and Antigravity Desktop after a restart both use it, and you no longer have to open a terminal from the card. Antigravity provider cards can also be switched straight from the tray. Antigravity Desktop's login now follows account switches. Claude Desktop model-mapping cards gain a "Full URL" switch, and the Skills "Discover" view no longer re-downloads repositories that haven't changed.

Fixes include: tools failing to install from the "Apps" page when the Windows user name contains spaces and parentheses, tool follow-up turns being rejected when Codex uses Fable 5.2, agy quota queries ignoring the global proxy and agy not finding the agy.exe installed by the desktop installer, the AppImage crashing on startup on newer Wayland systems, Skills "Symlink only" not working on Windows, the tray not showing GitHub Copilot quota, Kimi For Coding Global quota not being found, standalone web search in Codex aggregation mode going to the wrong provider, empty names in streamed tool calls, large Pi sessions no longer importing usage, remote MCP servers from Hermes and OpenCode being saved as SSE, empty MCP arguments being dropped, IME problems in more forms, and screen readers reading the English interface as Chinese.


Changes

Antigravity third-party cards are now switch-mode

Antigravity third-party cards used to take effect only in terminals opened from a CC Switch card. Antigravity is now a switch-mode app, like Claude Code and Codex:

  • How it takes effect: switching writes the card's address, Key, protocol and models into ~/.gemini/config/config.json, under its top-level gateway and models; plugins and other settings in the same file are left alone. The agy CLI and Antigravity Desktop read the same file: newly started agy picks it up right away, while the desktop app reads it only at startup and has to be restarted.
  • Official cards: switching to an official card clears the gateway, and agy goes back to its own Google login. An official card bound to an account in "Accounts" switches agy's login first; if that fails, nothing is switched. The gateway and the Google login can't be used at the same time, so while a third-party card is in use, you can't open a terminal with an official card.
  • Cards: the card in use shows "In use" and can't be deleted; on the other cards the main button changes from "Open Terminal" to "Switch", and terminals are now opened with the terminal icon on the card. Cards show the gateway's default model.
  • Form: you can choose the protocol (Gemini native genai, or OpenAI-compatible Chat Completions), enter one model ID per row (the first row is the default; you can also click "Fetch Models" and tick them), and enter a CA certificate path for self-signed or corporate certificates. When no model is entered, agy fetches the model list from the address itself. The bottom of the form shows what config.json will look like after switching to this card; other settings you change there apply to all cards once saved.
  • Quota: while a third-party card is in use, agy doesn't use the Google login, so quota shows the last values fetched before switching away, and agy is no longer started just to query quota.
  • Tray: like Gemini CLI, Antigravity has its own row in the tray that expands to list its provider cards; click one to switch. Official cards bound to an account show the account name. The old account list is gone.
  • Other: when Antigravity has no cards yet, a gateway already enabled in config.json is imported as the default card at startup (you can also click "Import Current Config"); deep links with enabled=true switch to the card after importing it. Opening a terminal with a Key card still uses that card's own private config directory.

Upgrading doesn't change config.json by itself, and existing Key cards are kept as they are. To have agy use a Key card, click its "Switch" on the Antigravity page. Models entered on old cards are display names, which the gateway doesn't accept, so they aren't written; if you want to limit the models, enter model IDs again in the form.

Antigravity Desktop's login follows account switches

(#9999)

  • After an account switch or a verified sign-in, the login state cached by Antigravity Desktop is cleared and any existing standalone token file is synced, so the desktop app uses the new account once it's reopened. On Linux, both the login and default Secret Service collections are read and written.
  • "Add account" first stashes and clears the current login, so agy opens straight into sign-in. If you cancel, close the dialog, time out, or quit CC Switch before signing in finishes, the original login is written back as long as the keychain is still empty; a new account that has already signed in is kept.
  • When you sign in again to an expired account, CC Switch recognizes that it's the same account; signing in to a different account shows a warning.
  • Switching accounts, signing in and opening a terminal no longer check whether agy is running or ask you to quit it first; after switching accounts, you are told that a running Antigravity needs a restart for the change to take effect.

The Skills "Discover" view no longer re-downloads repositories

(#10061)

Opening the "Discover" view shows the cache right away instead of re-downloading every repository after each restart; when repositories have updates, they are fetched only when you click "Refresh". On refresh, each repository's latest commit is checked first, and unchanged repositories aren't downloaded (the author measured traffic for 7 repositories dropping from 67.74 MB to 26 KB). At most 3 repositories are downloaded at once, and the interface no longer freezes during a refresh. Repositories whose branch is set to HEAD show and remember their actual default branch.


New

"Full URL" switch for Claude Desktop

(#8713, closes #8393)

Model-mapping cards are forwarded through local routing. When the upstream address already ends in a version segment (such as Zhipu's https://open.bigmodel.cn/api/paas/v4), routing appends /v1/chat/completions and the request goes to /v4/v1/chat/completions and gets a 404. Claude Desktop cards whose "Connection Mode" is "Model Mapping" now have the "Full URL" switch too: turn it on and enter the full request address, and routing uses it as is. The switch turns off automatically when "Connection Mode" goes back to "Direct" or you pick another preset; official and managed-login providers don't have it.

Presets

Added APIONE.


Fixes

  • Installing and upgrading tools on the "Apps" page failed when the Windows user name contained spaces and parentheses (see #10067): when the temp directory path contained a space together with characters such as (, ), & or ^, install and upgrade scripts failed with "is not recognized as an internal or external command". The path is no longer split.
  • Codex tool follow-up turns to Fable 5.2 were blocked (see #10070): when the turn that called a tool returned no thinking block, the next turn carrying the tool results was rejected locally by CC Switch. Such requests are now sent upstream with adaptive thinking.
  • agy quota queries ignored the global proxy (see #10071): agy runs in the background (quota queries, fetching model lists) now use the global proxy from Settings, including SOCKS5.
  • agy installed by the Antigravity Desktop installer wasn't found on Windows (see #10105): %USERPROFILE%\.gemini\bin is now checked as well, so the login terminal in "Accounts", quota queries, model list fetching and the "Apps" page can all find it.
  • Quota for Antigravity accounts that aren't current in "Accounts" (#10073, closes #10072; #10087): non-current accounts only read locally saved quota, their refresh button is greyed out, and a hint says the quota can be checked after switching to that account; provider cards bound to an account also explain, when refreshing a non-current account, that only the signed-in account can be checked. Longer hints no longer cover the account name, and the full text shows on hover when it's truncated.
  • Antigravity kept showing a failure after a failed quota query (#10062): a failed result is reused for at most 20 seconds; if you switch accounts during a query, its result is no longer shown as the old account's quota; a timeout ends the whole process group, and the query is no longer retried automatically, which stretched the wait to 60 seconds. The terminal opened by "Add account" can now start agy even when agy isn't on PATH.
  • "Import Current Config" failed when only Antigravity Desktop was installed (see #10107): it used to say the configuration files were missing; now there is no error, and the page shows "No providers yet".
  • The AppImage crashed on startup on newer Wayland systems (closes #10078): the AppImage no longer bundles the Wayland cursor and other display-related libraries, and uses the system's instead.
  • The Linux window icon showed as the generic Wayland icon (#7639, closes #7638): the installed desktop file is renamed to cc-switch.desktop. After upgrading, you may need to pin the taskbar icon again.
  • Skills "Symlink only" didn't work on Windows (see #10081): when Developer Mode is off and CC Switch isn't running as administrator, a directory junction is used instead, which doesn't need administrator rights; "Auto" also no longer falls back to copying for lack of permissions.
  • The tray didn't show GitHub Copilot quota (see #10106): Copilot cards created from a preset without a usage config now show quota in the tray menu and panel too.
  • Kimi For Coding Global quota couldn't be queried (#9667): the Global address is now recognized and queried in its own region. The card's "Monthly" line shows whichever of the monthly total and monthly coding quotas has less left, and both are listed when expanded.
  • Standalone web search in Codex aggregation mode went to the default provider (#9864): it's now sent to the selected provider based on the model in the search request.
  • Copilot requests without tools from Claude Code got a 400 (#9998): these requests used to be treated as warmup requests and downgraded to gpt-5-mini; they now stay on Auto.
  • Codex tool calls failed with unsupported call (#7912, closes #7671): some streaming Responses upstreams send an empty tool name and call ID in the end event; they are now filled in from the start event.
  • Read tool arguments were empty through a Responses relay (#6481)
  • Pi sessions over 128 MiB stopped importing usage (#8122, closes #8121)
  • Remote MCP servers imported from Hermes and OpenCode were saved as SSE (#8824, closes #8823): both apps connect with Streamable HTTP by default, so these servers are now imported as HTTP.
  • The MCP editor dropped empty arguments on save (#8561, closes #8560)
  • Disabled variants showed up in the OMO and OMO Slim options (#8152, closes #8149)
  • Re-adding the official Claude Desktop or Grok Build provider said "Provider added" (#6297, closes #6280): nothing was actually added; it now says the provider already exists.
  • Typing with an IME in the Claude, Pi and Claude Desktop forms duplicated or dropped characters (#6648)
  • Picking a single day in the usage statistics calendar didn't select the whole day (#4501): it now covers 00:00:00 to 23:59:59 of that day. The provider filter is also wider (#7209).
  • Screen readers read the English interface as Chinese (see #10097): the page's language attribute now follows the interface language.

Thanks

Thanks to @funkpopo (Antigravity Desktop login sync), @allenxu09 (Skills Discover view, Copilot Auto, test cleanup), @YUZHEthefool (Skills Discover view), @jimpablo (quota for non-current Antigravity accounts), @fnyfree (Antigravity quota failures and login terminal), @SHYXIN (Claude Desktop Full URL), @clarkchen (Kimi For Coding Global), @MoMoJee (standalone web search in aggregation mode), @yukitakasama (streamed tool call names), @ashel-wang (Read tool arguments), @lyfuci (usage for large Pi sessions), @L4XB (remote MCP import), @Bortlesboat (empty MCP arguments), @xue-ding-e (OMO disabled variants), @Lingbou (Linux window icon), @kakiuwang-ui (message when re-adding official providers), @KtzeAbyss (IME input), @wxwwt (usage calendar), @Chang-Yo (usage filter), @SailingLoong (regression test), @zydo (CI cleanup) for their contributions.

Special thanks to @ningjiang233 (#10048), who pinned down and tested the fix for unsigned tool turns to Fable 5.2; @kui123456789 (#8490) did the first traffic optimization for the Skills Discover view, which #10061 builds on; @jimpablo (#10056) fixed the tray ignoring the manual-only quota switch when querying Antigravity account quota, though that part was replaced when the tray moved to listing provider cards.

Thanks to @BingWuJ, @Peng-io, @fedlin, @hongyonggang, @kami-ay1, @PHOENIX-collab-bot, @PorkneckRon, @MegaWall3, @zhouys0725, @hmjBill, @ShenNannan, @ZH-UCAS for issue reports and reproduction details.

For the full technical details, see the CHANGELOG.