Claude Code
Claude Code is the terminal entry for Claude. With Qiuqiu Token, use CC Switch first, then fall back to manual installation and settings.json when needed.
Recommended Path
- Use CC Switch Quick Config to write the Qiuqiu Token provider, Claude Code token, Base URL, and model.
- If CC Switch does not apply, install Claude Code manually for your platform.
- Continue to
settings.jsononly when manual configuration is required.
Install and Configure
Prepare balance and the Claude Code Base URL in Quick Start, then create a Claude Code token in Create an API Token.
Windows
winget install OpenJS.NodeJS.LTS
choco install nodejs-lts
scoop install nodejs-ltsnode -v
npm -vnpm install -g @anthropic-ai/claude-codeclaude --version
claude doctorcd your-project-folder
claudeManual Configuration
Create the configuration directory:
- Windows:
%USERPROFILE%\.claude - macOS / Linux:
~/.claude
mkdir %USERPROFILE%\.claude
cd %USERPROFILE%\.claudeCreate settings.json
Create settings.json after preparing a Claude Code token and the Claude-compatible Base URL.
{
"env": {
"ANTHROPIC_AUTH_TOKEN": "PASTE_CLAUDE_CODE_TOKEN_KEY",
"ANTHROPIC_BASE_URL": "https://api.qiuqiutoken.com"
}
}Restart all Claude Code terminal windows so the new configuration is loaded.
Verification
- The terminal recognizes
claude, andclaude doctorhas no critical installation errors. settings.jsoncontains the Claude Code token andANTHROPIC_BASE_URL.- Claude Code starts in a project directory and completes a small request.
- The Qiuqiu Token console shows usage.
FAQ
claudedoes not exist: add the npm global bin directory to PATH and reopen the terminal.- It still connects to the default service: confirm that
ANTHROPIC_BASE_URLpoints to Qiuqiu Token and no local override exists. - Authentication fails: confirm the Base URL has no manually appended
/v1and the token belongs to the Claude Code group.
