docs/user-manual/en/1-getting-started/1.5-settings.md
This section describes how to configure CC Switch according to your preferences.
Cmd/Ctrl + ,CC Switch supports three languages:
| Language | Description |
|---|---|
| Simplified Chinese | Default language |
| English | English interface |
| Japanese | Japanese interface |
Language changes take effect immediately without restarting.
| Option | Description |
|---|---|
| System | Automatically matches the system's dark/light mode |
| Light | Always use the light theme |
| Dark | Always use the dark theme |
When enabled, CC Switch automatically runs when the system starts.
| Option | Description |
|---|---|
| Minimize to tray | Clicking the close button hides to the system tray |
| Exit directly | Clicking the close button fully exits the app |
"Minimize to tray" is recommended for convenient provider switching via the tray.
Starting from v3.13.0, CC Switch adds Lightweight Mode — a tray-only running state that minimizes desktop footprint when idle.
How to enter: Right-click the tray icon → click Lightweight Mode. The main window is destroyed (not just hidden), freeing UI resources and memory.
How to exit: Click Open Main Window from the tray menu, or trigger CC Switch via deep link / relaunch. The window is rebuilt on demand, with state preserved.
| Aspect | Minimize to Tray | Lightweight Mode |
|---|---|---|
| UI process | Kept in memory | Fully destroyed |
| Idle resource footprint | Same as normal run | Near zero |
| Reopen speed | Instant (direct show) | Slightly slower (window rebuild) |
| Tray switching | Available | Available |
| Deep link wake | Available | Available (on-demand rebuild) |
Use case: If CC Switch runs in the background for long periods and you mainly switch providers via the tray menu, enabling Lightweight Mode significantly reduces memory usage.
Note: Lightweight Mode state is not persistent — the next normal launch returns to normal mode. Combine with Launch on Startup for long-term use.
When enabled, CC Switch automatically syncs the configuration to the VS Code Claude Code extension (writes primaryApiKey to ~/.claude/config.json) when switching providers.
Use case: If you use both Claude Code CLI and the VS Code extension, enable this option to keep both configurations in sync.
When enabled, skips the Claude Code onboarding flow, suitable for users already familiar with Claude Code.
Note: This option writes the
skipIntroductionfield to~/.claude/settings.json.
Choose which applications to display in the app switcher. Each app can be toggled independently, but at least one must remain visible.
Configurable apps: Claude, Codex, Gemini, OpenCode, OpenClaw.
Use case: If you only use Claude Code and Codex CLI, you can hide the other apps to keep the interface clean.
Set the sync method when installing skills to each app's directory:
| Method | Description |
|---|---|
| Symlink | Creates symbolic links pointing to skill source files; saves space, syncs in real-time |
| Copy | Copies skill files entirely to the target directory |
Recommended: Symlink is the default method. Switch to Copy if you encounter permission issues.
Choose the terminal application that CC Switch uses when opening a terminal.
Supported terminals (by platform):
| Platform | Terminal Options |
|---|---|
| macOS | Terminal, iTerm2, Alacritty, Kitty, Ghostty, WezTerm |
| Windows | CMD, PowerShell, Windows Terminal |
| Linux | GNOME Terminal, Konsole, Xfce4 Terminal, Alacritty, Kitty, Ghostty |
The storage location for CC Switch's own data, defaulting to ~/.cc-switch/.
You can customize each CLI tool's configuration directory:
| Setting | Default | Description |
|---|---|---|
| Claude Directory | ~/.claude/ | Claude Code configuration directory |
| Codex Directory | ~/.codex/ | Codex configuration directory |
| Gemini Directory | ~/.gemini/ | Gemini CLI configuration directory |
| OpenCode Directory | ~/.opencode/ | OpenCode configuration directory |
| OpenClaw Directory | ~/.openclaw/ | OpenClaw configuration directory |
Note: After changing directories, the app must be restarted, and the corresponding CLI tools must also be configured to use the same directory.
Click the "Export" button to save a backup file containing:
The backup file is in JSON format and can be viewed with a text editor.
Note: Importing will overwrite existing configuration. It is recommended to export your current configuration as a backup first.
Settings > Proxy Tab
The Proxy tab centralizes all proxy-related features:
Start/stop the local proxy service, configure the listen address and port. See 4.1 Proxy Service for details.
Configure failover queues and automatic switching strategies by app (Claude/Codex/Gemini). See 4.3 Failover for details.
Configure model pricing correction rules for proxy billing statistics calibration.
Configure CC Switch's outbound HTTP/HTTPS proxy, applicable for scenarios where external API access requires a proxy.
Settings > Advanced Tab
Customize configuration file directories for each app. See the "Directory Configuration" section above for details.
Import/export configuration backups. See the "Data Management" section above for details.
The Backup Management panel provides full control over database backups.
| Setting | Options | Default |
|---|---|---|
| Backup Interval | Disabled, 6h, 12h, 24h, 48h, 7d | 24 hours |
| Retention Count | 3, 5, 10, 15, 20, 30, 50 | 10 backups |
When an interval is set, CC Switch automatically backs up the database on schedule. Older backups beyond the retention count are automatically removed.
The panel displays all existing backups with:
db_backup_20260315_143000)| Action | Description |
|---|---|
| Backup Now | Create a backup immediately |
| Restore | Restore the database from a selected backup. A safety backup of the current database is created automatically before restoring |
| Rename | Change the backup's display name |
| Delete | Permanently remove a backup (with confirmation) |
Important: Restoring a backup overwrites the current database. A safety backup is always created before the restore operation, so you can recover if needed.
Sync configurations across multiple devices via the WebDAV protocol. Uses v2 protocol with dual-layer versioning for improved reliability.
| Setting | Description |
|---|---|
| Service Preset | Jianguoyun / Nextcloud / Synology / Custom |
| Server URL | WebDAV server URL |
| Username | Login username |
| Password | Login password (app-specific password; saved credentials are preserved if left unchanged) |
| Remote Directory | Remote storage path (default: cc-switch-sync) |
| Profile Name | Device profile name (default: default) |
| Auto Sync | Enable automatic synchronization on a configurable interval |
| Action | Description |
|---|---|
| Test Connection | Verify WebDAV URL, username, and password are valid |
| Upload | Upload local database to remote. Shows progress spinner |
| Download | Download remote database. Shows remote snapshot info (protocol version, DB version, timestamp, size) before confirming. A safety backup of the local database is created automatically before overwriting |
When Auto Sync is enabled:
Before downloading, CC Switch displays details about the remote snapshot:
Note: Upload overwrites remote data, and download overwrites local data. A safety backup is always created before downloading.
| Setting | Description |
|---|---|
| Enable Logging | Enable/disable application logging |
| Log Level | error / warn / info / debug / trace |
Log level descriptions:
Settings > OAuth Auth Center Tab
Added in v3.13.0, the OAuth Auth Center (Beta) provides unified management for third-party OAuth credentials. It currently supports two account types:
| Account Type | Purpose |
|---|---|
| GitHub Copilot | Used with the Copilot reverse proxy |
| ChatGPT (Codex OAuth) | Used with the Codex OAuth reverse proxy; manage ChatGPT accounts |
What you can do here:
Note: Both features use reverse-engineered OAuth flows and carry account risk and Terms of Service risk. Before using, please read the full risk notice in 2.1 Add Provider → Codex OAuth Reverse Proxy.
Settings > About Tab
Displays the current CC Switch version number, with support for:
Automatically detects installed CLI tool versions:
| Tool | Detection Contents |
|---|---|
| Claude | Current version, latest version |
| Codex | Current version, latest version |
| Gemini | Current version, latest version |
| OpenCode | Current version, latest version |
| OpenClaw | Current version, latest version |
Click the "Refresh" button to re-detect.
Provides quick commands to install/update CLI tools:
npm i -g @anthropic-ai/claude-code@latest
npm i -g @openai/codex@latest
npm i -g @google/gemini-cli@latest
npm i -g opencode@latest
npm i -g openclaw@latest
Click the "Copy" button to copy to clipboard.