apimaxDocs
DocsPricingConsole
API ReferenceIntegration GuideUser GuideChangelog

Developer Tools

Claude Code CLI Integration GuideManaging AI Coding Tools with CC Switch

Chat Apps

Cherry Studio Integration GuideChatbox Integration Guide

Docs / Developer Tools

Developer ToolsCC SwitchClaude CodeCodexGeminiDeveloper 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#

  1. Sign in to the APIMAX console.
  2. Go to API Keys.
  3. Locate the key you plan to use and open the action menu on that row.
  4. Select CC Switch.
  5. Choose the app: Claude, Codex, or Gemini.
  6. Enter a configuration name and select the primary model; for Claude you can additionally specify separate Haiku, Sonnet, and Opus models.
  7. Click Open CC Switch and allow the app to open in the system dialog.
  8. 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#

SettingValue
AppClaude
Endpointhttps://api.apimax.ai
API KeyKey generated in the console
ModelA Claude model name available to your account

Codex CLI#

SettingValue
AppCodex
Endpointhttps://api.apimax.ai/v1
API KeyKey generated in the console
ModelA model available to your account that supports the Responses API

Gemini CLI#

SettingValue
AppGemini
Endpointhttps://api.apimax.ai
API KeyKey generated in the console
ModelA 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#

  1. Enable the newly added provider on the CC Switch home page.
  2. Fully exit any running Claude Code, Codex, or Gemini CLI.
  3. Reopen a terminal and switch to your test project directory.
  4. Launch the corresponding tool and send a simple question.
  5. 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.

Next steps

All docs
Claude Code CLI Integration GuideInstall the Claude Code CLI and complete persistent configuration, temporary configuration, and connectivity verification through APIMAX's Claude-compatible API.Cherry Studio Integration GuideAdd APIMAX as a custom OpenAI provider in Cherry Studio, fetch the model list, and verify with a chat.Chatbox Integration GuideConfigure APIMAX's OpenAI-compatible API in Chatbox, add models, and troubleshoot common connection errors.
On this page
OverviewOverviewInstallationMethod 1: One-Click Import from the APIMAX ConsoleMethod 2: Add ManuallyClaude CodeCodex CLIGemini CLISwitch and VerifyTroubleshootingClicking "Open CC Switch" does nothingThe tool still uses the old configuration after importingCodex reports an unsupported endpoint401 / 403Security RecommendationsNext steps