Page summary

A fast path from adding a provider to completing your first provider switch.

1.4 Quick Start

This section helps you complete the initial setup in 5 minutes.

Step 1: Add a Provider

  1. Select the tool you want to manage in the left sidebar, then click the + (Add Provider) button in the top-right corner of the page
  2. Select your provider under "Provider Preset"
    • Common presets: Zhipu GLM, MiniMax, DeepSeek, Kimi, PackyCode
    • Or select "Custom" for manual configuration
  3. Enter your API Key
  4. Click "Add"

💡 Tip: The add panel supports searching by Chinese name and domain, and different plans and regions of the same provider are merged into one row. Presets auto-fill the endpoint URL, so you only need to enter your API Key.

Step 2: Switch Provider

After adding, the provider appears in the list.

Option 1: Switch from the app page

Option 2: Quick switch via system tray

Step 3: Activation

After switching providers, each CLI tool activates differently:

ApplicationActivation Method
Claude Code✅ Instant effect (supports hot reload)
Claude DesktopRequires restarting Claude Desktop
CodexRequires closing and reopening the terminal
GeminiRequires restarting Gemini CLI
Grok BuildRequires restarting Grok Build
OpenCodeRequires closing and reopening the terminal
OpenClawRequires closing and reopening the terminal
Hermes / Pi / MiniMax CodeOnce added, the provider is written into the tool's configuration; for Pi and MiniMax Code, choose the model to use inside the tool; for Hermes, click "Enable" on the card to make it the current provider

In Routing mode, switching providers for Claude Code, Codex, Gemini CLI, and Grok Build takes effect immediately for subsequent requests; however, if the switch changes the model, Codex, Gemini CLI, and Grok Build may still need a restart.

Direct, Routing, and Aggregation (Optional)

The pages of Claude Code, Codex, Gemini CLI, and Grok Build have "Direct / Routing" tabs at the top, and Claude Code and Codex also have "Aggregation". Clicking a tab only changes what you are viewing and does not change any configuration; to actually switch, click the button on the page that spells out the consequences: "Start routing" or "Switch to Aggregation", and "Back to direct" to return to Direct.

Routing and Aggregation need CC Switch to keep running; quitting CC Switch automatically returns to Direct, and it reconnects the next time you start it. Official subscriptions do not go through routing (Codex's OpenAI Official is the exception). See Enable local routing for details.

Claude Code First Launch Prompt

If Claude Code prompts you to log in or shows an onboarding wizard on first launch, enable the "Skip Claude Code first-run confirmation" option in CC Switch:

  1. Open CC Switch "Settings → App config" and find the Claude Code block
  2. Enable the "Skip Claude Code first-run confirmation" toggle
  3. Restart Claude Code

⚠️ Note: This option writes hasCompletedOnboarding: true to ~/.claude.json, skipping the official first-run confirmation flow.

Verify Configuration

After restarting, launch the corresponding CLI tool and enter a simple question to test:

# Claude Code - enter a test question after launching
claude
> Hello, please briefly introduce yourself

# Codex - enter a test question after launching
codex
> Hello, please briefly introduce yourself

# Gemini - enter a test question after launching
gemini
> Hello, please briefly introduce yourself

# OpenCode - enter a test question after launching
opencode
> Hello, please briefly introduce yourself

# OpenClaw - enter a test question after launching
openclaw
> Hello, please briefly introduce yourself

If the AI responds normally, the configuration is successful.

Note: On first launch, CC Switch automatically imports the existing configuration of Claude Code, Codex, Gemini CLI, and Grok Build as a provider named default, and adds an official provider for these tools and Claude Desktop. Your original configuration is not lost.

Next Steps

Congratulations! You have completed the basic configuration. Next, you can:

Common Issues

Not taking effect after switching?

Make sure you restarted the terminal or CLI tool. The configuration file is updated at switch time, but running programs do not automatically reload it.

Can't find a preset?

If your provider is not in the preset list, select "Custom" for manual configuration. See Add Provider for configuration format details.

How to restore official login?

The provider lists for Claude Code, Claude Desktop, Codex, Gemini CLI, and Grok Build each come with a built-in official provider (such as Claude Official, OpenAI Official, Google Official, and Grok Official). Switch to it, restart the client, and follow the tool's own login flow. If it is missing from the list (for example, because you deleted it or upgraded from an older version), you can add it again from the presets.