Quick Start
This guide will help you get started with Claude Code provided by AIHubMix in just a few minutes.1. Install Claude Code
Quick Installation with a Script (Recommended for First-Time Users)
Run the following commands in your terminal or IDE to download a shell script that automatically configures environment variables for you. Just execute it.Local Installation
macOS, Linux, WSL:npm
Requires Node.js version 18 or higher2. Connect Claude to AIHubMix
Set environment variables to connect Claude Code to AIHubMix. Note: Do not use Anthropic login directly. Requirements:- Use
https://aihubmix.comas base_url - Provide the AiHubMix API Key as the authentication token
- Tip: Make sure to remove the Anthropic API Key to avoid conflicts.
.claude/settings.json
AIHUBMIX_API_KEY with the actual AIHUBMIX API key.
3. Start a Conversation
Navigate to your project directory and start Claude Code:4. Verification
You can confirm your connection by entering the/status command in Claude Code.
Don’t want to configure environment variables manually? Use a graphical tool for quick setup: Configure via CC-Switch.
Switch Models
Override Default Model
You can override the default model aliases through environment variables, configuring Claude Code to use any model on AIHubMix (including OpenAI, Gemini, or GLM models). For example, to replace the default alias “Sonnet” with gpt-5.2-codex:While you can use any model through AIHubMix, we recommend using powerful models (such as Claude Opus 4.5, GPT 5.2, etc.) for the best experience.
Switch Model
Use the Claude Code command:Configure via CC-Switch
- Run CC-Switch and click on “Add Provider”.

- Select “AiHubMix” from the preset list.

- Enter your key in the “API Key” field.

- Once configured, click “Add” to save the settings.

- Return to the homepage, select “AiHubMix” from the provider list, and click “Start” to use it.

Frequently Asked Questions
Q: Using Claude Code, I see the prompt “401, No token provided…”
Open the Claude terminal, type/config, find the Use custom API key option, and check if the Token is correctly configured.
