HAI Gateway Docs

CC Switch

CC Switch multi-tool provider configuration guide

What is CC Switch?

CC Switch is a provider management tool that lets you configure API providers for multiple AI development tools — Claude Code, Codex, Gemini CLI, and more — from a single interface, making it easy to switch between backend services.

Configure Claude Code

Step 1: Add a provider

Click the plus button to add a provider with the following settings:

SettingValue
ProviderHAI
API KeyYour HAI Gateway access key
Base URLhttps://api.hai.network/anthropic
API FormatAnthropic Message (native)
Auth FieldANTHROPIC_API_KEY
Important

The auth field must be set to ANTHROPIC_API_KEY — do not select ANTHROPIC AUTH TOKEN.

Step 2: Save

Click save to start using the provider.

Configure Codex

Step 1: Add a provider

Click the plus button to add a provider with the following settings:

SettingValue
ProviderHAI
API KeyYour HAI Gateway access key
Base URLhttps://api.hai.network/openai/v1
Model NameVisit the HAI Gateway pricing page and copy the full model name, e.g. gpt-5.4-2026-03-05
Important

The base URL must include the /v1 suffix.

Step 2: Save

Click save to start using the provider.

Configure Gemini CLI

Step 1: Add a provider

Click the plus button to add a provider with the following settings:

SettingValue
ProviderHAI
API KeyYour HAI Gateway access key
Base URLhttps://api.hai.network/google
Model NameVisit the HAI Gateway pricing page and copy the full model name, e.g. gemini-3.1-pro-preview

Step 2: Save

Click save to start using the provider.