CC Switch v4.0

A redesigned interface, the new Aggregation mode, and safer config switching

This is the biggest CC Switch release yet. With it, we've rethought the core of the CC Switch experience: how you connect to models, how you switch providers, and how you manage a growing set of AI coding tools.

The interface has been redesigned from the sidebar to the tray, giving apps, config, usage and sessions each a clear place. 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. Session management has been rewritten from scratch: what the AI did in each turn, what it changed and which step failed are all visible at a glance. And the config-writing core has been rebuilt: switching providers now replaces only the key fields instead of rewriting the whole file, which removes a great deal of complexity and puts an end to a whole class of lost-settings problems.


A Redesigned Interface

The new interface uses a sidebar layout and an orange theme. Switching apps, plus global features like MCP, Skills, Prompts, Sessions, Accounts and Usage, are all one click away in the sidebar.

The new interface: sidebar, mode tabs and provider cards

The Apps page: versions, installs and upgrades for every AI coding tool in one place

Upgrading users see a short note on first launch explaining where things have moved.


Aggregation: Many Providers, One Model Picker

Until now, using another provider's model meant going back to CC Switch, switching providers, and returning to your client.

Turn on Aggregation, 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.

Models from several providers listed together in Codex's model picker

Aggregation: one default provider plus six added providers

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.

ModeHow requests travelBest for
DirectThe client talks to the provider directlyEveryday use
RoutingThrough local routing to one provider, with protocol conversion and failoverIncompatible protocols, or when you need failover
AggregationThrough local routing, dispatched by model to several providersMixing models from several providers in one session

A Tribute to opencodex

Aggregation learned a great deal from opencodex and builds directly on its ideas: prefixing model IDs with the provider so models from many providers can share the Claude Code and Codex pickers; letting Codex compact context on third-party models; and detecting when a background service is still using an old model list, then prompting a restart. All of these came out of opencodex's exploration. Our thanks to its author (@lidge-jun) and contributors for open-sourcing this work, and our deepest respect for their open-source spirit!

If you want a tool dedicated to bringing any model into Codex and Claude Code, we highly recommend giving opencodex a try!


Session Management: See Every AI Coding Session Clearly

AI coding tools keep a complete record of every session on your machine, but the raw logs are thousands of lines of JSON and nearly impossible to read. This release rewrites session management from scratch to make those records as readable as possible, and adds token usage and cost for each session.

The session reader: step summaries, tool call details and the conversation outline

The session reader redesign was led by @Owlbay. Many thanks to Owlbay for the enormous effort.


Switch Providers, Keep Your Config Intact

This is the most important under-the-hood change in this release. It applies to Claude Code, Codex, Gemini CLI, Grok Build and Claude Desktop.

CC Switch launched in August 2025, when the API ecosystem was far less mature than it is today. API formats often differed widely between official and third-party providers, so the original design rewrote the whole config file on every switch. That choice brought a series of problems and a lot of complexity. Now that the ecosystem has matured, it's time to rebuild.

Before: Switching providers rewrote the entire config file from that provider's saved snapshot. Hooks, plugins and permissions you added to settings.json, or MCP servers you added to config.toml, were either lost on switch or absorbed into one provider's snapshot, disappearing as soon as you switched to another.

Now: Switching replaces only the endpoint, credential, model and protocol, plus the provider's own switches. Everything else stays exactly where it was:

The editor previews what your config file will look like after switching. Global settings you edit there are written to the config file, and before saving CC Switch checks whether another program has changed the file in the meantime.

The new write engine also adds several layers of protection:

Turning routing on or off no longer relies on backing up and restoring your whole config. When Codex switches to a third-party provider, the ChatGPT login it overwrites is stashed locally and restored automatically when you switch back to your official account.


Usage

The Usage page has redesigned metrics, a trend chart, a request log, and four paginated tables for providers, models and pricing. A new "All" time range shows your daily usage as a 53-week heatmap, and wide-range queries no longer freeze the window.

Usage: the 53-week heatmap and request log

Output speed is now measured over generation time only, without the wait for the first token. Even without routing, requests imported from Claude Code and Codex session logs get an estimated speed, marked with "≈".


More Improvements


Fixes


Before You Upgrade

Where settings live has changed. Shared settings now stay in the client's own config file, and the "common config snippet" feature has been removed. A model or reasoning effort you pick temporarily in the client goes back to the provider's value when you switch away and back. To keep it, save it in the provider editor.

Some fixes take effect after one switch. The Codex model catalog and session history fixes apply the next time CC Switch writes the Codex config, so just switch providers once after upgrading. Re-sync your existing MCP config once to clear the old type field.

Restart when prompted after switching. Codex, Gemini CLI and Grok Build need a restart after switching models, and clients need a restart after the Aggregation list changes.

Existing cards stay as they are. Preset updates only apply to newly created providers. New pricing only backfills requests previously recorded at $0; other historical costs are not recalculated.

Two settings have been removed. Per-provider cost multipliers (relay prices already include their multiplier, so applying another one only skews the numbers), and the connectivity-check advanced settings (built-in defaults are used now).


Thanks

Thanks to everyone who contributed to this release:

@Owlbay (session reader redesign, usage heatmap and performance), @qyinter (extensive UI/UX polish), @funkpopo, @allenxu09, @ISuuuu, @SailingLoong, @ggbdpq, @tingfeng347, @Hexc01, @zhengkaics, @DEAN-Cherry, @7ten7, @2doright, @RemindZ, @M3chD09, @Richard-Zhang1019, @YuxuZhou-CN, @Eureka0w0v0, @Ne1ther, @h6rime, @bigben446, @szupzj18, @AnxForever

Thanks also to @PnutCN, @Aaron-WealthTech, @parkavenue9639, @RuriLothlorien, @Ming-Sir-69 for detailed bug reports and investigation that helped us pin down the problems.

Special thanks to the opencodex project; much of Aggregation's design benefits from its open-source exploration.

And thanks to everyone who filed an issue or helped reproduce a bug. For the full technical details, see the CHANGELOG.