Visit Node.js official website to download the LTS version Windows installer (.msi file)
.msi fileOpen Command Prompt (cmd) or PowerShell and run:
node --version
npm --version
# Install Chocolatey (if not installed)
Set-ExecutionPolicy Bypass -Scope Process -Force
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
# Install Node.js
choco install nodejs
winget install OpenJS.NodeJS
set ANTHROPIC_BASE_URL=https://i7dc.com/api
set ANTHROPIC_AUTH_TOKEN=your-key
cd your-project-folder
claude
$env:ANTHROPIC_BASE_URL="https://i7dc.com/api"
$env:ANTHROPIC_AUTH_TOKEN="your-key"
cd your-project-folder
claude
ANTHROPIC_BASE_URL, Variable value: https://i7dc.com/apiANTHROPIC_AUTH_TOKEN, Variable value: your-key# Set environment variables for current user
[Environment]::SetEnvironmentVariable("ANTHROPIC_BASE_URL", "https://i7dc.com/api", "User")
[Environment]::SetEnvironmentVariable("ANTHROPIC_AUTH_TOKEN", "your-key", "User")
# Verify settings
[Environment]::GetEnvironmentVariable("ANTHROPIC_BASE_URL", "User")
[Environment]::GetEnvironmentVariable("ANTHROPIC_AUTH_TOKEN", "User")
For better user experience, it's recommended to install Windows Terminal:
# Install via Microsoft Store
winget install Microsoft.WindowsTerminal
# Or install via package manager
choco install microsoft-windows-terminal
Ctrl + , to open settingsClaude Codepowershell.exeyour-project-directorySolution:
# Check PATH environment variable
echo %PATH%
# Manually add Node.js to PATH (temporary)
set PATH=%PATH%;C:\Program Files\nodejs
Solution:
# Use domestic mirror source
npm config set registry https://registry.npmmirror.com
Solution:
# Temporarily allow script execution
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
# Permanent setting (requires administrator privileges)
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine
Solution:
After configuration is complete, restart Command Prompt or PowerShell and run the following commands to verify:
echo %ANTHROPIC_BASE_URL%
echo %ANTHROPIC_AUTH_TOKEN%
claude --version
If the correct environment variable values and version information are output, the configuration is successful!
After environment configuration is complete, you can:
claude in any project directory to start using