球球TokenQiuqiu Token Docs中文

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.

  1. Use CC Switch Quick Config to write the Qiuqiu Token provider, Claude Code token, Base URL, and model.
  2. If CC Switch does not apply, install Claude Code manually for your platform.
  3. Continue to settings.json only 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

Command Prompt / Terminal
winget install OpenJS.NodeJS.LTS
choco install nodejs-lts
scoop install nodejs-lts
Command Prompt / Terminal
node -v
npm -v
Command Prompt / Terminal
npm install -g @anthropic-ai/claude-code
Command Prompt / Terminal
claude --version
claude doctor
Command Prompt / Terminal
cd your-project-folder
claude

Manual Configuration

Create the configuration directory:

  • Windows: %USERPROFILE%\.claude
  • macOS / Linux: ~/.claude
Command Prompt / Terminal
mkdir %USERPROFILE%\.claude
cd %USERPROFILE%\.claude

Create settings.json

Create settings.json after preparing a Claude Code token and the Claude-compatible Base URL.

settings.json
{
  "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, and claude doctor has no critical installation errors.
  • settings.json contains the Claude Code token and ANTHROPIC_BASE_URL.
  • Claude Code starts in a project directory and completes a small request.
  • The Qiuqiu Token console shows usage.

FAQ

  • claude does 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_URL points to Qiuqiu Token and no local override exists.
  • Authentication fails: confirm the Base URL has no manually appended /v1 and the token belongs to the Claude Code group.