CC Switch Overview & Installation
CC Switch is a cross-platform desktop application and command-line utility built to manage API provider configurations for AI coding clients—including Claude Code, Codex CLI, Codex Desktop App, Claude Desktop, and Gemini CLI—from a single place.
Instead of manually editing JSON, TOML, or shell profile files every time you change models, rotate keys, or move between personal and team workspaces, CC Switch writes clean client configurations for you with one click.
Why Pair CC Switch with RKAPI
Using CC Switch alongside RKAPI streamlines everyday development workflows:
- One-click profile switching: Move seamlessly between personal API keys, team shared-wallet keys, or keys scoped to different model groups without hand-editing
~/.claude/settings.jsonor~/.codex/config.toml. - Fewer formatting mistakes: CC Switch validates JSON/TOML structure and keeps your API Base URLs consistent (
https://api.zwwbai.comfor Anthropic/Claude vs.https://api.zwwbai.com/v1for OpenAI/Codex). - Safe backups and portability: Export your provider profiles before migrating machines or setting up a remote Linux devbox with the CC Switch CLI.
- Built-in usage visibility: Configure live quota and remaining-balance queries against RKAPI right inside CC Switch.
Before You Start
Make sure you have an active RKAPI account at https://s2pbxm0xv5y.adtyai-fz.top and at least one API key (sk-...). If you are new to RKAPI's dual-domain architecture, read Quick Start & Dual Domains first.
Supported Clients
| Client | Protocol | RKAPI Base URL | Setup Guide |
|---|---|---|---|
| Claude Code | Anthropic Messages | https://api.zwwbai.com (no /v1) | Claude Code Setup |
| Codex CLI | OpenAI Responses | https://api.zwwbai.com/v1 | Codex CLI Setup |
| Codex Desktop App | OpenAI Responses | https://api.zwwbai.com/v1 | Codex Desktop App |
| Claude Desktop | Anthropic Messages | https://api.zwwbai.com (no /v1) | Claude Desktop Setup |
| Gemini CLI | Gemini Native | https://api.zwwbai.com (no /v1) | Common Configuration |
Downloading & Installing CC Switch
Download the latest release for your operating system from the official CC Switch GitHub Releases page (open-source desktop app by the CC Switch maintainers).
macOS
- Download the
.dmginstaller matching your processor:- Apple Silicon (M1 / M2 / M3 / M4):
aarch64/arm64build - Intel Mac:
x86_64build
- Apple Silicon (M1 / M2 / M3 / M4):
- Open the
.dmgfile and drag CC Switch into the Applications folder. - Launch CC Switch from Applications.
macOS Gatekeeper Prompt
If macOS reports that the app cannot be verified on first launch, open System Settings → Privacy & Security, scroll down, and click Open Anyway, or remove the quarantine attribute in Terminal:
xattr -cr "/Applications/CC Switch.app"Windows
- Download the Windows installer (
.msior-setup.exe,x64orarm64depending on your CPU). - Run the installer and follow the setup prompts.
- Launch CC Switch from the Start Menu.
If Windows SmartScreen displays a publisher warning for a newly released build, click More info → Run anyway after verifying you downloaded from the official release page.
Linux
Choose the package format that fits your distribution:
AppImage (universal):
bashchmod +x CC-Switch-*.AppImage ./CC-Switch-*.AppImageDebian / Ubuntu (
.deb):bashsudo apt install ./cc-switch_*.debFedora / RHEL (
.rpm):bashsudo dnf install ./cc-switch-*.rpm
Working on a headless server, SSH session, or WSL without a desktop GUI? Skip the desktop installer and follow the CC Switch CLI guide instead.
Documentation Roadmap
Follow these guides in order to get the cleanest setup with RKAPI:
- Common Configuration — Dual-domain URL rules, organizing multiple RKAPI profiles, backups, proxy settings, and clearing conflicting shell environment variables.
- Claude Code Setup — Add RKAPI to CC Switch for Claude Code, inspect the generated
~/.claude/settings.json, and verify in terminal. - Codex CLI Setup — Configure
https://api.zwwbai.com/v1,wire_api = "responses", and~/.codex/auth.jsoncleanly. - Codex Desktop App — Share
~/.codex/between Codex CLI and Codex Desktop App, bypass consumer login prompts, and fix endpoint overrides. - Claude Desktop Setup — Configure Claude Desktop workflows via CC Switch, handle full restarts on macOS/Windows, and solve TLS or environment conflicts.
- Usage & Balance Query — Track real-time token spend in RKAPI's console and enable in-app balance/quota checks in CC Switch.
- CC Switch CLI — Switch providers, inspect active settings, and import/export profiles from headless servers, SSH, or WSL.
Prefer Manual Configuration?
CC Switch is completely optional. If you prefer configuring clients directly without a switcher app, see the Interactive Setup Wizard or our standalone guides for Claude Code, Codex CLI, and Claude Desktop.