Claude Code
Manual install
Section titled “Manual install”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:
winget install OpenJS.NodeJS.LTSchoco install nodejs-ltsscoop install nodejs-ltsOpen a new terminal:
node -v
npm -vIf npm is slow from your network, switch to this mirror first. Otherwise, install directly.
npm config set registry https://registry.npmmirror.comnpm install -g @anthropic-ai/claude-codeclaude --version
claude doctorDownload the Node.js installer from nodejs.org, or install it with Homebrew:
brew install nodeOpen a new terminal:
node -v
npm -vIf npm is slow from your network, switch to this mirror first. Otherwise, install directly.
npm config set registry https://registry.npmmirror.comnpm install -g @anthropic-ai/claude-codeclaude --version
claude doctorUse the Linux installation guidance on nodejs.org or install it from NodeSource, then continue.
node -v
npm -vIf npm is slow from your network, switch to this mirror first. Otherwise, install directly.
npm config set registry https://registry.npmmirror.comnpm install -g @anthropic-ai/claude-codeclaude --version
claude doctorManual setup
Section titled “Manual setup”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.
-
Create and enter the configuration directory.
mkdir %USERPROFILE%\.claude cd %USERPROFILE%\.claudemkdir -p ~/.claude cd ~/.claudemkdir -p ~/.claude cd ~/.claude -
Create or update
settings.json.{ "env": { "ANTHROPIC_AUTH_TOKEN": "sk-your-token", "ANTHROPIC_BASE_URL": "https://api.qiuqiutoken.net" } } -
Close all Claude Code terminal windows, open a new terminal, then start Claude Code from your project.
cd your-project-folder claudecd your-project-folder claudecd your-project-folder claude
