Developers relying on browser extensions for network routing are hitting silent failures in terminal-based LLM tools. A new technical deep-dive confirms that while web browsers often respect system-level proxy settings, command-line interfaces operate in a separate network reality. This discrepancy causes frequent timeouts and authentication errors for tools like Claude Code, which do not inherit the browser's proxy configuration automatically.
The Silent Bypass in Node.js
The root of the confusion lies in inconsistent environment variable support. Testing conducted on Node 22.23.1 reveals that the native fetch API completely ignores the HTTPS_PROXY variable by default. Unlike curl, which respects these standard variables immediately, Node requires the experimental NODE_USE_ENV_PROXY=1 flag to route traffic through a proxy. This behavior persists even though curl successfully connects using the same configuration, leading developers to believe their network stack is broken rather than misconfigured.
Claude Code's Specific Limitations
Anthropic's Claude Code CLI introduces its own set of constraints that differ from general terminal tools. According to official documentation, Claude Code respects standard HTTPS_PROXY and HTTP_PROXY variables but explicitly lacks support for SOCKS proxies. Users with proxies offering both HTTP and SOCKS5 ports must force the tool to use the HTTP endpoint. Furthermore, environment variables are read only at startup, meaning changes made in a shell session do not propagate to already-running processes or background agents without a restart.
Diagnostic Methods for Network Discrepancies
To isolate these routing issues, developers are advised to use Cloudflare's /cdn-cgi/trace endpoint. By running curl -s https://claude.ai/cdn-cgi/trace in the terminal and comparing the output IP with a browser-based check, users can instantly verify if their tools are using different network paths. This simple diagnostic reveals whether a service sees two different origins for the same account, which is a common cause of login failures and API restrictions.
Key Takeaways
- Node.js
fetchignoresHTTPS_PROXYunlessNODE_USE_ENV_PROXY=1is set. - Claude Code supports HTTP proxies but fails to handle SOCKS5 connections.
- Environment variables must be set before tool startup; runtime changes are ignored.
- Use Cloudflare's trace endpoint to compare browser and terminal IP addresses.
The Bottom Line
The fragmentation of proxy support across the Node ecosystem is a critical UX failure for LLM tooling. Until standard environment variables are universally respected, developers must manually configure network stacks for every CLI tool they adopt.