This guide covers configuring an existing HTTP proxy for Claude Code on Windows. Check plans and delivery methods before ordering.
Set a proxy in PowerShell
Section titled “Set a proxy in PowerShell”If your HTTP proxy listens on this computer at port 8080, run the following in PowerShell. For a different host or port, use its actual address.
$env:HTTPS_PROXY = "http://127.0.0.1:8080"claudeIn the new Claude Code session, run /status. The Proxy row should show your address. Make a request to confirm connectivity. Claude Code accepts HTTP and HTTPS proxy addresses. It does not accept a SOCKS5 address directly.
Use the setting across sessions
Section titled “Use the setting across sessions”An editor opened from the Start menu runs outside that PowerShell session. Merge the following into %USERPROFILE%\.claude\settings.json, keep your other settings, and reopen the affected session.
{ "env": { "HTTPS_PROXY": "http://127.0.0.1:8080" }}Keep proxy passwords out of project settings and shared diagnostics. See Anthropic’s network configuration.
Handle WSL separately
Section titled “Handle WSL separately”For Claude Code inside WSL, use the Linux user’s settings and a proxy address reachable from inside WSL. In the default NAT mode, a proxy on the Windows host needs the host’s IP address. Mirrored networking can use 127.0.0.1. See the Linux instructions and Microsoft’s WSL networking guide.
These settings apply to Claude Code. System rules for Windows or WSL, coverage of child processes such as Git, Node or Python, local connections and credential checks await a public CCIso release.
