Skip to main content
  1. Due to Claude Code’s multi-agent nature, quota consumption can be quite significant. It’s recommended to set limited quotas for your Key to prevent billing surprises.
  2. Make sure your local VPN is disabled during use, otherwise you might experience lag with GPT-5.5.
Anthropic’s official documentation states that Claude Code does not support routing non-Claude models through a gateway, so this setup is a usage that the official documentation does not support. If you only need Claude models on AIHubMix, see the Claude Code integration guide. For the Anthropic-compatible interface on AIHubMix, see Anthropic-Compatible API.

Quick Configuration Guide

1️⃣ Install Claude Code

acc code requires the claude command, so install Claude Code first. On macOS / Linux, run in terminal:
On Windows, run in PowerShell:
To install Claude Code with npm instead, Node.js 22 or later is required.

2️⃣ Global npm Package Installation

Run in terminal:
Replace sk-*** with your API key generated on AiHubMix. Configuration items other than models will be processed with system environment variables taking priority.
  • For Mac users, you can navigate to your username directory and press ⌘ + ⇧ + . to show the hidden .zshrc file, then open it with the system’s “TextEdit” app and add the above content.
  • After adding the configuration, run source ~/.zshrc in terminal and press enter to make the configuration effective.
On Windows, run the following command in PowerShell to set the user-level environment variable, then reopen your terminal:

4️⃣ Generate Configuration File

Replace sk-*** below with your AiHubMix API key, then run this one-liner in terminal:
Optional settings:

5️⃣ Usage

More Resources


Last updated: 2026-10-17