Skip to content

Windows Guide ​

This guide helps you configure AI coding tools on Windows using Any API as the API gateway.

Step 1: Install Node.js ​

  1. Visit https://nodejs.org
  2. Download the LTS version .msi installer
  3. Double-click the installer and follow the prompts

Method 2: Package Manager ​

powershell
# Using Chocolatey
choco install nodejs

# Or using Scoop
scoop install nodejs

TIP

Use PowerShell for these commands. If you encounter permission issues, run PowerShell as Administrator.

Verify installation:

powershell
node --version
npm --version

Step 2: Install Claude Code ​

powershell
npm install -g @anthropic-ai/claude-code

Verify installation:

powershell
claude --version

Step 3: Set Environment Variables ​

Method 1: Temporary (Current Session) ​

powershell
$env:ANTHROPIC_BASE_URL = "https://anyapi.pro"
$env:ANTHROPIC_AUTH_TOKEN = "your_api_key"
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_TOKEN

Step 4: Start Using ​

powershell
claude

Or navigate to a project directory first:

powershell
cd C:\Projects\my-project
claude

Common Issues ​

PowerShell Execution Policy Error ​

powershell
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

claude 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

API PLAT