CC Switch Download: Latest v4.0.28 & Setup

CC Switch v4.0.28 (2026-11-08): ccswitch.io is the only official website. Download from GitHub Releases, then add QCode.cc to Claude Code or Codex CLI.

Updated 2026-11-10

Need an API key? Sign up →Endpoints & base URLs →

On This Page

Last verified: 2026-11-09 · 📄 Per official docs (CC Switch v4.0.28, released 2026-11-08; download, CLI and client-list sections checked against the README, Releases and CHANGELOG on 2026-11-09)

At a glance

Item Details
Models you can use depends on the managed CLI itself: Claude Code (Claude ✅), Codex (GPT ✅), OpenCode / OpenClaw / Hermes Agent — CC Switch is not an inference endpoint; it only writes each CLI's config files
Protocol & Base URL per managed target: Claude endpoint https://api.qcode.cc/api · Codex endpoint https://api.qcode.cc/openai
Where to configure in-app; lands in ~/.claude/settings.json, ~/.codex/config.toml, etc.
Official docs Website · GitHub repo · user manual

CC Switch is a cross-platform desktop application (Windows / macOS / Linux) that manages API provider configurations for Claude Code, Claude Desktop, Codex, Gemini CLI, Grok Build, OpenCode, OpenClaw, Hermes, Pi, MiniMax Code, Kimi Code and Oh My Pi from one UI, plus Antigravity CLI (agy) since v4.0.18 (list from the official README checked 2026-10-26; the three additions are covered below). This guide shows how to add QCode.cc as a custom provider in CC Switch, how to switch between multiple providers/accounts with one click, and covers common use cases and troubleshooting.

Why Use CC Switch

  • No manual config editing: Visual forms replace settings.json / config.toml
  • One-click provider switching: Switch between qcode.cc, official Anthropic, and local proxies instantly
  • Claude + Codex ecosystem: Manage both Claude Code and Codex CLI configurations in a single app
  • Multi-account / multi-plan management: Save several configs for the same provider (e.g. a work key and a personal key) and switch anytime
  • System tray shortcuts: Switch providers from the tray menu without opening the main window

CC Switch is essentially a "configuration profile switcher": each provider is one profile, and a switch replaces only the key fields in the target CLI's config file (endpoint, key, model name, protocol and so on) while everything else stays (official README). Only one provider is active at a time, which helps you avoid assuming several providers are live together.

Prerequisites

Website, Download and Installation by OS

As of 2026-11-09, the official CC Switch README states: “The Only Official Website: ccswitch.io”. Source code and installers live in the GitHub repository, on its Releases page; the latest version is v4.0.28 (released 2026-11-08, per the release page and CHANGELOG). The 2026-10-26 pass of this page checked v4.0.20 (released 2026-10-24); the 2026-10-15 pass checked v4.0.12 (released 2026-10-14). Download from these two places only.

System requirements (official README):

  • Windows: Windows 10 and above
  • macOS: macOS 12 (Monterey) and above
  • Linux: x86_64 or ARM64 with glibc 2.35+ and WebKitGTK 4.1, e.g. Ubuntu 22.04+, Debian 12+, recent Fedora; RHEL / Rocky / Alma 8–9 are not supported yet

In the file names below, {version} is the latest version on the Releases page (for example 4.0.28):

OS Download and install
Windows Installer CC-Switch-v{version}-Windows.msi, or the portable CC-Switch-v{version}-Windows-Portable.zip; on Windows on ARM use CC-Switch-v{version}-Windows-arm64.msi or CC-Switch-v{version}-Windows-arm64-Portable.zip
macOS Homebrew is recommended: brew install --cask cc-switch (update with brew upgrade --cask cc-switch); or download CC-Switch-v{version}-macOS.dmg (recommended) or the .zip manually. It is a Universal build that runs natively on Apple Silicon and Intel; the README says it is code-signed and notarized by Apple, so you can install and open it directly
Linux .deb (Debian / Ubuntu), .rpm (Fedora and other distros that ship WebKitGTK 4.1), .AppImage (any distro meeting the requirements above), each in x86_64 and arm64, named like CC-Switch-v{version}-Linux-x86_64.deb
Arch Linux paru -S cc-switch-bin

Flatpak is not part of the official releases; the README says you can build it yourself from the .deb (see flatpak/README.md in the repository). Once installed, continue with “Configure Claude Provider” below.

Official-source warning and clients added in v4.0.18–v4.0.20 (2026-10-26)

The official release notes carry a counterfeit warning, quoted verbatim: “Any "CC Switch" website or client that asks you for payment, top-ups, or login credentials is fake.” They add that if you have been tricked into paying, you should stop the transaction and report it through GitHub Issues. Download only from ccswitch.io and GitHub Releases.

Three clients joined the managed list in the 4.0.18–4.0.20 releases (dates from the CHANGELOG):

  • v4.0.18 (2026-10-21) — Antigravity CLI. The notes call it “the 11th app managed by CC Switch” and state: “An Antigravity provider only takes effect when agy is started in a terminal from CC Switch.” Antigravity CLI expects a Gemini API-compatible service. QCode does not currently offer the Gemini series.
  • v4.0.19 (2026-10-23) — Kimi Code, “the 12th app managed by CC Switch”. Its configuration is in ~/.kimi-code/config.toml, or in the folder set by KIMI_CODE_HOME when that is set (release notes).
  • v4.0.20 (2026-10-24) — Oh My Pi, “the 13th app managed by CC Switch”. Its configuration is in ~/.omp/agent, or in ~/.omp/profiles/<name>/agent when you use a named profile (release notes).

What v4.0.21 (2026-10-26) changes in this setup

v4.0.21 adds switching between several official Claude subscription accounts in the Accounts area; that applies to official Claude cards, while a QCode provider is still a custom provider with its own Base URL and key. Two changes touch the fields on this page: in the Codex provider form, each row of the model list now has a drag handle, and that 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 (issue #8870); and Open Terminal moved from the ⋯ menu onto the card as an icon button to the left of Edit. The release also fixes Codex requests going to a different address through routing.

Command Line (CLI): No Official One, but a Community CC Switch CLI Exists

As of 2026-10-26, CC Switch itself has no official command-line version. The official FAQ states that CC Switch only ships as a desktop app that needs a graphical interface. For servers, SSH sessions or machines without a desktop, the official README recommends the community-maintained CC Switch CLI — a CLI fork of CC Switch, released separately by another author and not an official CC Switch product. This page has not tested it feature by feature; read its README before relying on it.

Install (from that project's README; the latest version on 2026-10-15 is v5.11.1):

# macOS / Linux: Homebrew
brew install cc-switch-cli

# or the install script (installs to ~/.local/bin; read the script first)
curl -fsSL https://github.com/SaladDay/cc-switch-cli/releases/latest/download/install.sh | bash

On Windows, download cc-switch-cli-windows-x64.zip from its Releases page, unzip it and put cc-switch.exe in a directory on your PATH.

Basic usage:

cc-switch                             # full-screen terminal UI (TUI)
cc-switch provider list               # list providers
cc-switch provider add                # add a provider (field values: see the Claude / Codex sections below)
cc-switch provider switch <id>        # switch provider
cc-switch use <id>                    # shortcut for the line above
cc-switch --app codex provider list   # --app picks the tool; the default is claude
cc-switch start claude <id>           # launch Claude with this provider for this run only, without changing the global one

--app accepts claude (default), codex, and also opencode, hermes, openclaw, pi and so on. By default this CLI shares the ~/.cc-switch data directory with the desktop app; the database version it supports sometimes lags behind the desktop app — if you see “database version is too new”, upgrade the CLI or wait for it to catch up.

If you would rather install neither, editing the config files by hand works too: see the Claude Code tutorial for Claude Code and the Codex tutorial for Codex; the Base URL and key values are the same as on this page.

Configure Claude Provider (for Claude Code)

Launch CC Switch → select Claude Code in the sidebar → click the “+” (Add provider) at the top right → in the app-specific providers tab choose Custom from the preset dropdown → edit the config JSON in the panel (UI wording shifts between versions; go by what your build shows):

Field Value
Provider Name QCode.cc
ANTHROPIC_BASE_URL https://api.qcode.cc/api
ANTHROPIC_AUTH_TOKEN Your QCode.cc API Key (starts with cr_)

Why asia.qcode.cc? It is QCode.cc's Asia endpoint and suits users in mainland China; if it is hard to reach, use api.qcode.cc instead. The same key works across all three domains: api / asia / us.

After saving, click Enable on the card (the card action buttons appear on hover) to make it the current Claude provider. CC Switch will automatically write ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN to ~/.claude/settings.json. Run claude in your terminal to verify the connection.

Choosing a Default Model

QCode.cc offers a full lineup from flagship to lightweight models. Switch in Claude Code with /model, or specify directly in config:

Model Best for
claude-sonnet-5 Daily default, current balanced tier
claude-opus-5-5 Current flagship; hard reasoning and large refactors
claude-opus-5 Previous-generation flagship, still available
claude-sonnet-4-6 Previous-gen Sonnet, still on sale
claude-opus-4-8 Previous-gen flagship, still on sale
claude-haiku-5-5 Fast Q&A, batched small tasks

Rates and context sizes: read them live on qcode.cc/models — this page deliberately no longer copies numbers. Full lineup (GPT and China-family models) is on the same page. Since v3.20.3 the Claude provider editor also has a per-role model mapping panel (Sonnet / Opus / Fable / Haiku / subagent) with a one-click apply-to-all-roles button.

Configure Codex Provider (for Codex CLI)

Select Codex in the sidebar → “+” Add provider → Custom → fill in as follows:

⚠️ The Codex provider editor has a “Needs Local Routing” toggle meant for providers that only speak Chat Completions. Leave it off for QCode — QCode serves the Responses protocol natively, and enabling it would require a local proxy to stay up.

Field Value
Provider Name qcode (lowercase recommended, used as the TOML key)
Base URL https://api.qcode.cc/openai
API Key Your QCode.cc API Key
Default Model gpt-6.1-sol (recommended) or gpt-5.6-terra (for programming)

CC Switch generates the equivalent ~/.codex/config.toml and ~/.codex/auth.json:

model_provider = "qcode"
model = "gpt-6.1-sol"
model_reasoning_effort = "high"

[model_providers.qcode]
name = "qcode"
base_url = "https://api.qcode.cc/openai"
wire_api = "responses"
requires_openai_auth = true

Save, click Enable, then run codex to verify the connection. GPT model options: gpt-6.1-sol / gpt-6-sol / gpt-5.6-terra (rates and context: qcode.cc/models). Read the Codex CLI version from codex --version on your machine; do not trust a historical number in this page.

Codex Desktop App

Bottom line: the Codex desktop app reads the same ~/.codex/config.toml that CC Switch writes, so once QCode is set up as a Codex provider as described above, the desktop app and the command-line version use the same configuration. (This page has not tested sign-in/authentication in the desktop app.) Basis:

  1. OpenAI's official docs (Use API/provider credentials through a gateway) state that the macOS app reads the same ~/.codex/config.toml and that you restart the app after saving the provider settings; on Windows the file is %USERPROFILE%\.codex\config.toml, and the app must also be restarted.
  2. The official CC Switch README asks you to quit the Codex desktop app completely and reopen it (⌘Q on macOS; closing the window is not enough) — that sentence sits in its Aggregation-mode section on refreshing the model list; when you switch an ordinary provider, quitting fully and reopening is a sensible habit too.

To make the desktop app use QCode:

  1. On the Codex tab in CC Switch, add and Enable the QCode provider as in the previous section (Base URL https://api.qcode.cc/openai, wire_api = "responses").
  2. Quit the Codex desktop app completely, then open it again.
  3. In the app, check that the selected model is a GPT model QCode serves (for example gpt-6.1-sol). OpenAI's docs suggest checking the selected model and configuration in the desktop app.

Two reminders:

  • OpenAI's docs warn that a variable set in a terminal may not be available to an app launched from the desktop. If you do not use CC Switch and instead hand-write config.toml and pass the key through an environment variable, make sure the app process can see that variable.
  • As of 2026-10-15, OpenAI's docs call the desktop app the “ChatGPT desktop app”, where you choose ChatGPT or Codex; macOS and Windows builds come from chatgpt.com/download, and Linux has its own official install guide. How ChatGPT-account sign-in coexists with a custom provider in the desktop app is not covered by those official pages, so this page makes no claim about it.

Switching Between Multiple Providers/Accounts

The core value of CC Switch is switching. A common setup:

  1. Under the Claude tab, save several providers, e.g. QCode.cc (primary), QCode.cc (asia) (mainland node), Anthropic Official (for comparison).
  2. To switch, click Enable on the target provider's card — CC Switch rewrites the corresponding ANTHROPIC_BASE_URL / ANTHROPIC_AUTH_TOKEN into ~/.claude/settings.json.
  3. Make the new config live: the official README says Claude Code currently hot-switches provider data; the official FAQ and issue #3057 document the other case — settings.json on disk is already new, but the running session still hits the old provider. If the current session is still on the old node, close it and open a new terminal before running claude again. Codex and other CLIs: always reopen the terminal (FAQ).
  4. Codex works the same way: switching the active item under the Codex tab rewrites ~/.codex/config.toml.

Tray shortcut: CC Switch stays in the system tray; since v3.13.0 the right-click menu is grouped into per-app submenus (Claude / Codex / Gemini), each submenu titled with the currently enabled provider and a usage summary — click a provider name to switch. Tray switching writes the same live files as Enable in the main window; pitfalls are in “After you are connected” below.

Multi-account / Multi-plan Example

Save two configs for the same QCode.cc account, each with a different API Key:

Provider Name Base URL API Key Purpose
QCode.cc (work) https://api.qcode.cc/api Work key Team / billable account
QCode.cc (personal) https://api.qcode.cc/api Personal key Personal projects

Switching the active provider seamlessly moves between the two quotas without mixing billing.

Use Cases

  • Unstable network in China: Use asia.qcode.cc as primary, and one-click switch to the global api.qcode.cc when it jitters.
  • Comparing providers: Run the same task through QCode.cc and official Anthropic to compare responses and cost.
  • Team / personal separation: Use different keys to separate work and personal usage for easy accounting.
  • Claude + Codex together: Manage both Claude Code and Codex CLI in one app, pointed at the Anthropic-protocol and OpenAI-protocol endpoints respectively.

Advanced Claude Code Features (Still Work via QCode)

CC Switch only switches providers; Claude Code's own capabilities are unaffected. After connecting to QCode, the following features work as usual (running on whatever model Claude Code is configured with):

Vision Input: Understand Requirements from Screenshots / Diagrams

Claude Code can feed images to vision-capable models: paste (Ctrl+V), drag-drop, or reference an image file path in your prompt. Common uses:

  • Build UI from a mockup / screenshot
  • Debug from an error screenshot
  • Read architecture diagrams and charts

Vision-capable models via QCode include claude-opus-5 / claude-sonnet-5, plus still-on-sale claude-opus-4-8 / claude-sonnet-4-6 and the GPT family (such as gpt-6.1-sol, gpt-5.6-terra). Live capability flags: qcode.cc/models.

Note: this is image input (understanding), not image generation. To have a model generate images, use the gpt-image-2 model — see gpt-image-2 Image Generation.

Dynamic Workflows (Background Sub-agent Orchestration)

Include the keyword ultracode in your prompt (or simply ask to "run a workflow") to trigger Claude Code's dynamic workflows: it orchestrates tens to hundreds of background sub-agents in parallel, ideal for codebase-wide review, migration, and research. Agents keep running in the background while you continue working; view runs with the /workflows command. This capability runs on whatever model Claude Code is configured with — so it works when Claude Code points at QCode. Further reading: Subagents.

Headless Mode / Automation Output

In scripts and CI, run once with -p and specify an output format:

# Structured JSON (incl. result / total_cost_usd / usage / session_id), parse with jq
claude -p "Summarize test coverage in this repo" --output-format json | jq '.result'

# Newline-delimited streaming JSON events, good for real-time pipes
claude -p "Review src/ for security risks" --output-format stream-json

More pipe and CI usage in Automation & CI/CD.

About Gemini / Antigravity

CC Switch's list includes Gemini CLI, but QCode does not offer Gemini models for now, so there is nothing to set up for QCode under Gemini in CC Switch. Use Claude, GPT or China-family models instead; the models you can call are listed on qcode.cc/models.

For context: Google has retired Gemini CLI (EOL 2026-06-18 for Pro/free tiers; enterprise paid keys are unaffected), succeeded by the Google Antigravity CLI (available since 2026-05-19). CC Switch still maintains Gemini CLI as a first-class app with the same entry as Claude / Codex; that only concerns your own Google account or other sources and has nothing to do with QCode.

Choosing an Endpoint for Your Network

The three endpoints share one key. Pick the one that suits your network; if one is slow to reach, change the Base URL to another.

Endpoint Claude Base URL Codex Base URL
International https://api.qcode.cc/api https://api.qcode.cc/openai
Asia (recommended for CN) https://asia.qcode.cc/api https://asia.qcode.cc/openai
North America / Europe https://us.qcode.cc/api https://us.qcode.cc/openai

Self-check: hitting the path of a Base URL directly returns 401 — that's expected, it means the path is correct and only auth is missing.

One Key for Both Claude and Codex

The Claude and Codex providers in CC Switch can use the same QCode.cc API Key. QCode is billed per token; per-model rates are listed on qcode.cc/models (rules in Billing). Adding two providers does not double-bill you. If you created providers with different keys, each key is billed independently.

After you are connected: switch, coexist, recover

This section is the post-setup traffic that “CC Switch” searches actually bring. How to fill the form is above; this is what happens after it runs.

Several plans / several keys

One provider = one BASE_URL + key + (for Codex) model. You can keep several rows for the same QCode account, for example:

Provider name Role
QCode.cc Global domain, primary
QCode.cc (asia) Asia node, when the mainland path jitters
QCode.cc (work) / QCode.cc (personal) Two different cr_ keys, separate bills

Only one provider is active at a time — CC Switch will not write two configs into ~/.claude/settings.json together. To compare official Anthropic and QCode, click Enable back and forth. Do not expect both to be live.

The CLI did not pick up the new provider

Check in this order; do not start by blaming the key:

  1. Open ~/.claude/settings.json (or ~/.codex/config.toml for Codex) and confirm ANTHROPIC_BASE_URL / base_url is the row you just activated.
  2. File changed, session did not: this is the behaviour in issue #3057 — Claude Code copies the env block from settings.json at process start. A running session does not re-read it. Close the current claude / codex and open a new terminal.
  3. The official README says Claude Code now hot-switches. If your build does, you can skip the restart; if it is still hitting the old node, reopen the session.

Coexist with official Anthropic / ChatGPT login

Official README / FAQ:

  1. Switch to the built-in official provider in the list (Claude Official / OpenAI Official; if you deleted it, add it back from the presets)
  2. Click Enable
  3. Reopen the matching CLI and run its own Log out / Log in (or OAuth)
  4. After that you can flip between official login and the QCode.cc custom provider

Do not hand-merge official OAuth and a QCode ANTHROPIC_AUTH_TOKEN in settings.json — on activate, CC Switch rewrites the fields it owns. Switching among several official Codex accounts follows the README: Codex can switch between different official providers.

Tray-switch pitfalls

  • Missing icon: macOS — menu bar settings; Windows — taskbar overflow; Linux may need libappindicator (official FAQ)
  • Lightweight Mode (tray menu): the main window is destroyed (not hidden) and only the tray stays; before v4.0.21 the mode was not persisted, so a normal start returned to regular mode, and since v4.0.21 (2026-10-26) it survives a restart (release notes); the first ccswitch:// deep link rebuilds the window and is a bit slower (official FAQ, since v3.13.0)
  • Tray click, CLI unchanged: the tray writes the same live files as Activate. It does not kill a running claude. Reopen the session as above
  • Suffixes like (asia) / (work) keep the tray menu readable

The config was overwritten — how to get it back

On activate / takeover, CC Switch writes provider fields into the CLI live files. Several issues (#2992, #4274; plus #1656, a feature request for merge-write behaviour) report a full-file overwrite that dropped keys CC Switch does not own (enabledPlugins, hooks, statusLine, permissions, …). Plugin files often remain on disk; they just no longer load because enabledPlugins is gone.

Recovery paths you can verify (official README / user manual, not a third-party chant):

  1. App backups: ~/.cc-switch/backups/ (rotated; official text: last 10)
  2. An export you made: settings export is named like cc-switch-export-{timestamp}.sql; import overwrites the current DB — export again before importing
  3. There is no “Common Config Snippet” any more: since v4.0 the feature is gone (official README: its buttons have been removed). Switching replaces only the key fields — endpoint, key, model name, protocol — and leaves the rest; settings that were in a snippet before the upgrade were already written into the config file when you switched, so they stay. Before CC Switch rewrites a tool's config file for the first time, it backs up the original to ~/.cc-switch/backups/live-first-write/
  4. Hand edits to Claude: since v4.0 a switch generally does not wipe them; on an older version, if you only edited ~/.claude/settings.json, recover it from your own backup / Time Machine / editor local history

CC Switch’s own DB is ~/.cc-switch/cc-switch.db; device UI is ~/.cc-switch/settings.json. Deleting the latter only resets the UI; it does not restore Claude hooks.

Practical Tips

  • Name with suffixes: Add suffixes like (asia) / (work) to provider names so tray switching is unambiguous at a glance.
  • Check the file, then open a new session: trust ~/.claude/settings.json / ~/.codex/config.toml; a running process does not hot-reload (FAQ / #3057).
  • No trailing slash: QCode requires Base URLs without a trailing / (otherwise SDKs build //v1/...-style broken paths).
  • Keep keys separate: CC Switch stores keys independently per provider; remember to update each one when you rotate keys.
  • Back up your config: since v4.0 switching replaces only the key fields and generally leaves what you added; on older versions, still back up first.

FAQ

The "Enable" button is unclickable after saving

Check in order: ① the endpoint field is not empty; ② the JSON / TOML in the panel is syntactically valid (hand edits break it most often); ③ try removing a trailing / from the Base URL (QCode endpoints require none. CC Switch's own handling of trailing slashes is not documented by CC Switch; this order is our experience).

Every Claude Code request 400s on 2.1.265–2.1.267 (Artifact schema)

Claude Code 2.1.265–2.1.267 shipped an Artifact tool schema that strict gateways reject outright (400, Invalid schema for function 'Artifact'). Since CC Switch 3.20.3 (2026-09-11) the Claude provider editor has a “Disable Artifact Tool” quick toggle, which writes env.CLAUDE_CODE_DISABLE_ARTIFACT="1". The official Claude Code fix is upgrading to ≥2.1.268; see troubleshooting. We have not reproduced each QCode-side interaction — if you hit it, open a ticket with the request id.

401 Unauthorized error

  1. Confirm the API Key starts with cr_ and has no leading or trailing spaces
  2. Check that the key is valid at qcode.cc/dashboard
  3. If Claude returns 401 but Codex works (or vice versa), the key in one of the providers was entered incorrectly — CC Switch stores keys independently per provider

Switching providers had no effect

First check that the live file already shows the new provider. If the file changed, close the current claude / codex session and open a new one (official FAQ; #3057). Do not only click the tray and keep typing in the old window.

Codex spins indefinitely on startup

Check that base_url follows the QCode endpoint convention and ends at /openai (not /openai/v1). wire_api = "responses" must stay. The most common miss: the top-level model_provider is absent or does not match the [model_providers.xxx] table name — Codex then silently falls back to the built-in openai endpoint (official issue #7263 documents the symptom).

Can I use Claude and Codex at the same time?

Yes. CC Switch writes Claude config to ~/.claude/ and Codex config to ~/.codex/. The two configurations are completely independent. Run claude and codex in separate terminals as needed.

I hand-edited settings.json — will activating lose it?

Generally no since v4.0: switching replaces only the key fields (endpoint, key, model name, protocol and so on); plugins, hooks, permissions and environment variables you added stay (official README FAQ). Versions before v4.0 had reports of whole-file replacement that dropped enabledPlugins / hooks (#2992, #4274); on an older version back up first, and restore from ~/.cc-switch/backups/ (including live-first-write/) or an exported .sql if something is lost.

How do I switch back to official Anthropic login?

Switch to the built-in official provider (Claude Official / OpenAI Official; add it back from the presets if deleted) → Enable → reopen the CLI → run official Log out / Log in. Do not hand-build a hybrid “empty env but keep the cr_ key” config.

Aggregation mode in v4.0 and ccswitch:// imports in v4.0.10 (2026-10)

CC Switch released v4.0.0 on 2026-10-04 and v4.0.10 on 2026-10-12 (dates taken from the two release pages: v4.0.0 and v4.0.10). Every line quoted below is verbatim from the English release-notes files in the repository: docs/release-notes/v4.0.0-en.md and docs/release-notes/v4.0.10-en.md; the two release pages above are used only for the dates and carry the Chinese version. Nothing in this section was tested by us, and no import link was executed.

Aggregation mode (v4.0.0)

The new Aggregation mode puts models from several providers into one Claude Code or Codex model picker, so you can switch between them right inside the client

add a few providers, and their models all show up together in the Claude Code or Codex model picker

Whichever model you pick, the request goes straight to that provider, without ever leaving the client.

So several model services can be added, their models appear together in one model picker, and the request goes to whichever provider owns the model you chose, without leaving the client. The same notes state that this is opt-in, that it currently supports Claude Code and Codex, that it dispatches per selected model, and that it offers no failover:

Aggregation is opt-in and currently supports Claude Code and Codex. It routes each request by the model you pick, and does not offer failover.

On screen, the notes describe three tabs at the top of every app page — Direct / Routing / Aggregation — and stress that pressing a tab only changes what you are looking at; the card actions are Add and Remove, plus picking one provider as the default for requests that do not name an aggregated model:

Every app page has three tabs at the top: Direct / Routing / Aggregation. Clicking a tab only changes what you're looking at and never touches your config

Click "Add" or "Remove" on a provider card, then choose one provider as the default to handle requests that don't name an aggregated model

Two points matter for pay-per-token use. First, the notes warn that switching mid-session is possible, but each new model has to rebuild its prompt cache, so the first turn after a switch costs noticeably more (verbatim: You can change to another model partway through a session. Note that after each switch, the new model has to build its prompt cache again, so the first turn after switching costs noticeably more). On QCode, per-model rates are listed on https://qcode.cc/models. Second, a changed model list triggers a restart prompt, and Codex CLI users can restart the background service from that banner:

When the model list changes you're prompted to restart the client, and Codex CLI users can restart the background service from the banner in one click

v4.0.0 also changed how settings are written, which matters if you edit the files by hand:

switching providers now replaces only the key fields instead of rewriting the whole file

The v4.0.10 notes call themselves the sixth fix release for the 4.0 line, centred on one-click import links:

The sixth fix release for 4.0 stable

This release focuses on one-click import links (ccswitch:// deep links)

The behaviour being fixed was clicking a deep link while the app was not open, itemized in the notes:

On Windows and Linux, clicking a one-click import link while CC Switch was not open used to start the app, but the import confirmation dialog did not appear

in lightweight mode the link was also lost when the window was recreated

On macOS the same link brought up the confirmation dialog twice

Links are now stored first and only count as handled once the confirmation dialog has been shown, so they are not lost if something interrupts along the way, and an older link arriving later does not overwrite a newer one.

The confirmation dialog now also offers a choice about switching right after the import. The notes state that this switch is off by default and that turning it on shows a warning that client requests will be sent to the address inside the link (verbatim: The confirmation dialog lets you choose whether to switch right after import, and off by default; when it is on, the dialog warns that client requests will be sent to the address in the link).

On API formats, the notes state:

Non-native formats for Claude Code, Codex and Grok Build need local routing to be on; combinations an app does not support are rejected when the link is parsed

For you this means: when you import a QCode address into Claude Code or Codex through a deep link, look first at the API format the link declares (anthropic / openai_chat / openai_responses / gemini_native) — local routing has to be on beforehand only when that format is not native to the app in question (for example openai_chat in Claude Code); combinations the app does not support are rejected at parse time. Which address to use on the QCode side is unchanged from the endpoint table above and from Endpoints & API paths: https://api.qcode.cc/api for Claude, https://api.qcode.cc/openai/v1 for GPT and Chinese models, and Claude never goes through the OpenAI-compatible address. The same release also published site owner guides in Chinese, English and Japanese plus an online link generator (verbatim: Site owner guides in Chinese, English and Japanese and an online link generator are also published); this page does not reproduce their output.

Next Steps

Don't have a QCode.cc API Key yet? Head to qcode.cc/pricing to pick a plan — one key drives both Claude Code and Codex CLI inside CC Switch.

Get started with QCode

One API key for Claude Code, Codex and more — billed per token, per-model prices on qcode.cc/models

Enterprise →