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
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
Install using npm
Requires Node.js version 18 or higher2. Connect Claude Code to AIHubMix
Set environment variables to connect Claude Code to AIHubMix. Requirements:- Use
https://aihubmix.comasANTHROPIC_BASE_URL - Provide the AIHubMix API Key as the
ANTHROPIC_API_KEY
.claude/settings.json
AIHUBMIX_API_KEY with the actual AIHUBMIX API key.
3. Start
Navigate to your project directory and start Claude Code:4. Verification
You can confirm your connection by entering the/status command in Claude Code.
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.
