Add HTTP Proxy support
Status Fixed / completed
Maintainer reply None cached
Activity 6 comments · opened Feb 28, 2025 · closed Mar 6, 2025
claude currently fails behind an HTTP proxy. Nothing in the documentation says how to configure a proxy server, AFAICS.
This is a mandatory feature for entreprise use.
6 Comments
I'm also facing the same issue with claude-code failing behind an HTTP proxy. I've tried using proxychains4 to route its traffic through the proxy, but that didn't work.
I've confirmed that proxychains4 works with other applications. I'm wondering if this is a intended behavior.
I am also facing same issue. It is failing behind corporate firewall and I have found no docs or way to connect. I can definitely get it to work on my personal pc. This is on a mac. I get error oauth failed, with very little diagnostics.
Thank you for the suggestion! the latest version now supports setting
HTTPS_PROXYenv varWhat is this "latest version"? I intall the version
0.2.36 (Claude Code)today, I have theHTTPS_PROXYenv var in the shell (zsh) and still I get@levpopov Claude Code 0.2.44 uses HTTPS_PROXY for itself but NOT for the API, so it still doesn’t work.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.