Windows Manual Troubleshooting Guide
If you cannot run the diagnostic script, or prefer to troubleshoot Claude Code’s connectivity and authentication issues step by step manually, follow the steps below.
Preparation
Open PowerShell (it is recommended to run as Administrator to execute certain network diagnostic commands).
Step 1: Check the Basic Environment
Claude Code requires the curl tool to test network connectivity.
-
Check the curl version
curl --versionExpected result: Displays curl version information (e.g.,
curl 8.x.x ...). If it fails: Windows 10/11 usually comes with curl pre-installed. If not, install it viawinget install curl. -
Check the PowerShell version
$PSVersionTable.PSVersionExpected result: Displays the Major version number (5.1 or higher is recommended).
Step 2: Check Authentication
Claude Code authenticates using the ANTHROPIC_AUTH_TOKEN environment variable.
-
Check whether the token is set
$env:ANTHROPIC_AUTH_TOKEN.Substring(0, 10) + "..."Expected result: Displays the first 10 characters of the token. If it errors or is empty: The token is not set. Set for current session:
$env:ANTHROPIC_AUTH_TOKEN='your-token'Set permanently: Search for “Edit system environment variables” and addANTHROPIC_AUTH_TOKENunder user variables. -
Check for an incorrectly set API Key
$env:ANTHROPIC_API_KEYExpected result: Should be empty. Note:
claude-code.clubdoes not useANTHROPIC_API_KEY. If this variable is set, it may cause conflicts. How to remove:Remove-Item Env:\ANTHROPIC_API_KEY. -
Check the Base URL (optional)
$env:ANTHROPIC_BASE_URLExpected result: Empty (default) or
https://claude-code.club/api.
Step 3: Network Connectivity Check
We need to confirm that claude-code.club is reachable.
-
DNS resolution test
Resolve-DnsName claude-code.clubExpected result: Displays an IPAddress. If it fails: Shows an error. Try
ipconfig /flushdnsto flush DNS. -
TCP connection test (alternative to Telnet/NC)
Test-NetConnection -ComputerName claude-code.club -Port 443Expected result:
TcpTestSucceeded : True. If False: Port 443 is blocked by a firewall or network policy. -
API connectivity test Try making a direct API request (requires the token from Step 2 to be set).
curl -v "https://claude-code.club/api/v1/models" ` -H "x-api-key: $env:ANTHROPIC_AUTH_TOKEN" ` -H "anthropic-version: 2023-06-01"Expected result: HTTP status code 200. Common errors:
- 401 Unauthorized: Token is invalid or expired.
- 403 Forbidden: Token has insufficient permissions.
- Connection refused: Network is unreachable.
Step 4: Check Proxy and VPN
-
Check proxy environment variables
Get-ChildItem Env: | Where-Object { $_.Name -match "proxy" }Expected result: Empty if no proxy is in use. Note: If
HTTP_PROXYorHTTPS_PROXYis set, make sure they point to the correct proxy server. Important: Ensureclaude-code.clubis in theNO_PROXYlist. -
Check Windows system proxy
Get-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings' | Select-Object ProxyEnable, ProxyServer, ProxyOverrideProxyEnable: 1 means enabled.ProxyServer: Proxy address.ProxyOverride: The list of hosts that bypass the proxy (i.e. NO_PROXY).
-
Check WinHTTP proxy
netsh winhttp show proxyExpected result: Usually should be “Direct access (no proxy server)”.
-
Check VPN
Get-NetAdapter | Where-Object { $_.InterfaceDescription -match "VPN|TAP|TUN|Cisco|AnyConnect" -and $_.Status -eq "Up" }If there is any output, a VPN is running. Try disconnecting the VPN or checking the routing table.
Step 5: Check Installation
Confirm that the claude command is in the PATH.
-
Find the claude binary
Get-Command claudeExpected result: Displays the Source path, e.g.
C:\Users\...\npm\claude.cmd. If it errors: Claude Code is not installed or not added to PATH. -
Check the PATH variable
$env:Path -split ';'Confirm that the npm or Claude installation directory is included.
If the steps above still do not resolve the issue, record the output of the commands above and contact technical support.