Skip to content

Claude Code

If your machine does not have the claude command yet, install Claude Code for your system first. If Claude Code is already installed, go straight to manual setup.

Download the Node.js installer from nodejs.org, or choose one package-manager command:

cmd
winget install OpenJS.NodeJS.LTS
cmd
choco install nodejs-lts
cmd
scoop install nodejs-lts

Open a new terminal:

cmd
node -v
npm -v

If npm is slow from your network, switch to this mirror first. Otherwise, install directly.

cmd
npm config set registry https://registry.npmmirror.com
cmd
npm install -g @anthropic-ai/claude-code
cmd
claude --version
claude doctor

If you are not using CC Switch, write Claude Code’s settings.json manually. Use the Anthropic-compatible root Base URL without appending /v1, and use a token from the Claude Code group.

  1. Create and enter the configuration directory.

    cmd
    mkdir %USERPROFILE%\.claude
    cd %USERPROFILE%\.claude
  2. Create or update settings.json.

    json
    {
    "env": {
    "ANTHROPIC_AUTH_TOKEN": "sk-your-token",
    "ANTHROPIC_BASE_URL": "https://api.qiuqiutoken.net"
    }
    }
  3. Close all Claude Code terminal windows, open a new terminal, then start Claude Code from your project.

    cmd
    cd your-project-folder
    claude