Docs / Developer Tools
Managing AI Coding Tools with CC Switch
Import CC Switch configuration in one click from the console or configure it manually to centrally manage your Claude, Codex, and Gemini coding tools.
Overview#
CC Switch is a desktop tool for managing provider configurations for Claude Code, Codex CLI, and Gemini CLI. It is a good fit for users who run multiple AI coding tools at the same time, need to switch models quickly, or prefer not to maintain configuration files by hand.
The APIMAX console already provides a CC Switch import entry, and one-click import is the recommended path.
Installation#
Download the installer that matches your operating system from CC Switch GitHub Releases. Launch it at least once after installing so that the system registers the ccswitch:// protocol.
Method 1: One-Click Import from the APIMAX Console#
- Sign in to the APIMAX console.
- Go to API Keys.
- Locate the key you plan to use and open the action menu on that row.
- Select CC Switch.
- Choose the app:
Claude,Codex, orGemini. - Enter a configuration name and select the primary model; for Claude you can additionally specify separate Haiku, Sonnet, and Opus models.
- Click Open CC Switch and allow the app to open in the system dialog.
- Confirm and add the configuration in CC Switch, then enable that provider.
One-click import automatically fills in the current site URL, API key, and the selected models. The Codex configuration automatically uses the endpoint with /v1, while Claude and Gemini use the site root URL.
The import link contains the API key. Run the import only on your own device, and never copy or forward the link.
Method 2: Add Manually#
If the desktop app cannot be launched, you can create the provider manually in CC Switch.
Claude Code#
| Setting | Value |
|---|---|
| App | Claude |
| Endpoint | https://api.apimax.ai |
| API Key | Key generated in the console |
| Model | A Claude model name available to your account |
Codex CLI#
| Setting | Value |
|---|---|
| App | Codex |
| Endpoint | https://api.apimax.ai/v1 |
| API Key | Key generated in the console |
| Model | A model available to your account that supports the Responses API |
Gemini CLI#
| Setting | Value |
|---|---|
| App | Gemini |
| Endpoint | https://api.apimax.ai |
| API Key | Key generated in the console |
| Model | A Gemini model name available to your account |
Pick model names from the models available in the APIMAX console; do not copy model IDs from other platforms' documentation.
Switch and Verify#
- Enable the newly added provider on the CC Switch home page.
- Fully exit any running Claude Code, Codex, or Gemini CLI.
- Reopen a terminal and switch to your test project directory.
- Launch the corresponding tool and send a simple question.
- Return to the usage logs in the APIMAX console and confirm the corresponding request appears.
Troubleshooting#
Clicking "Open CC Switch" does nothing#
- Confirm CC Switch is installed and has been launched at least once.
- The browser may block external protocols; allow the
ccswitch://link to open. - If it still fails, use the manual setup described in this guide.
The tool still uses the old configuration after importing#
- Confirm in CC Switch that the new provider is enabled.
- Exit and restart the target CLI; an existing process does not automatically reload environment variables.
- Check whether any shell environment variables override the CC Switch configuration.
Codex reports an unsupported endpoint#
- The Codex Endpoint must include
/v1. - Select a model that supports the Responses API.
- Do not copy a Claude model configuration directly into a Codex provider.
401 / 403#
- Import again from the console to avoid dropping characters while copying the key.
- Check the key status, model permissions, and account balance.
Security Recommendations#
- Do not import configurations that contain keys on public computers.
- Do not sync CC Switch configurations to untrusted cloud drives or public repositories.
- Split keys by tool so you can review usage independently and revoke them quickly.

