Follow the steps below to install and configure Claude Code
Open the Node.js download page and confirm the version is LTS (for example v24.14.1 (LTS)). This Windows guide provides an x64 installer by default, which works for most devices.
After installation, verify the version:
node --versionInstall the official Claude Code CLI with npm. If you hit permission issues, run PowerShell as administrator.
npm install -g @anthropic-ai/claude-codeRemove-Item -Recurse -Force $env:USERPROFILE\.claudeAfter deletion, Claude will regenerate a fresh config and use the environment variables you set.
Persistent setup (write to system environment variables)
Run the following commands in PowerShell to write the environment variables permanently. You need to reopen PowerShell afterward.
Shortcut to PowerShell: press Win + X and choose "Windows PowerShell", or press Win and search for "PowerShell".
[System.Environment]::SetEnvironmentVariable("ANTHROPIC_BASE_URL", "https://aicoding.0011.ai", "User")
[System.Environment]::SetEnvironmentVariable("ANTHROPIC_API_KEY", "YOUR_API_KEY", "User")
[System.Environment]::SetEnvironmentVariable("ANTHROPIC_AUTH_TOKEN", "YOUR_API_KEY", "User")Other option: temporary setup (current session only, not recommended)
$env:ANTHROPIC_BASE_URL = "https://aicoding.0011.ai"
$env:ANTHROPIC_API_KEY = "YOUR_API_KEY"
$env:ANTHROPIC_AUTH_TOKEN = "YOUR_API_KEY"Go to any project folder and run the command below to start Claude Code CLI:
claude