⌨️CLAUDE_CODE_PROXY_RESOLVES_HOSTS
Also known as CLAUDE_CODE_PROXY_RESOLVES_HOSTS=1
Set to 1, it lets the proxy look up host names.
Think of it like
It is like you give the driver a street name. Then they find the house.
Example
Jack's lab network has no name lookup for the outside world. Only the proxy can find api.anthropic.com, so he sets this to 1.
Why it matters
On a locked network, a request can fail at once if the computer must find the name.
Definition
Example code
bash
export HTTPS_PROXY=http://proxy.example.com:8080
export CLAUDE_CODE_PROXY_RESOLVES_HOSTS=1
claudeCommon mistake
Key takeaways
- 1Proxy does the lookup. Not Claude Code.
- 2Locked networks. No outside lookups.
- 3Off by default. Set 1 to use.