Windows Guide
This guide helps you configure AI coding tools on Windows using Any API as the API gateway.
Step 1: Install Node.js
Method 1: Official Website (Recommended)
- Visit https://nodejs.org
- Download the LTS version
.msiinstaller - Double-click the installer and follow the prompts
Method 2: Package Manager
powershell
# Using Chocolatey
choco install nodejs
# Or using Scoop
scoop install nodejsTIP
Use PowerShell for these commands. If you encounter permission issues, run PowerShell as Administrator.
Verify installation:
powershell
node --version
npm --versionStep 2: Install Claude Code
powershell
npm install -g @anthropic-ai/claude-codeVerify installation:
powershell
claude --versionStep 3: Set Environment Variables
Method 1: Temporary (Current Session)
powershell
$env:ANTHROPIC_BASE_URL = "https://anyapi.pro"
$env:ANTHROPIC_AUTH_TOKEN = "your_api_key"Method 2: Permanent (Recommended)
powershell
[System.Environment]::SetEnvironmentVariable("ANTHROPIC_BASE_URL", "https://anyapi.pro", "User")
[System.Environment]::SetEnvironmentVariable("ANTHROPIC_AUTH_TOKEN", "your_api_key", "User")TIP
You need to reopen PowerShell for permanent settings to take effect.
Verify environment variables:
powershell
echo $env:ANTHROPIC_BASE_URL
echo $env:ANTHROPIC_AUTH_TOKENStep 4: Start Using
powershell
claudeOr navigate to a project directory first:
powershell
cd C:\Projects\my-project
claudeCommon Issues
PowerShell Execution Policy Error
powershell
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUserclaude Command Not Found
- Verify installation:
npm list -g @anthropic-ai/claude-code - Reopen the terminal
- Check if the npm global path is in your PATH
Slow npm Installation
Use a mirror:
powershell
npm install -g @anthropic-ai/claude-code --registry=https://registry.npmmirror.com