Description
Node.js fetch (backed by undici) does not respect HTTP_PROXY/HTTPS_PROXY environment variables. Users behind corporate proxies cannot use OpenClaw — all outbound requests bypass the proxy and fail.
Repro
- Set
HTTPS_PROXY=http://your-proxy:8080
- Run OpenClaw gateway or CLI
- Attempt any outbound API call (e.g., chat with a cloud model)
- Observe: request goes direct, bypassing proxy — fails in environments that block direct connections
Expected
Outbound fetch calls should route through the configured proxy, matching behavior of curl, wget, and other tools that respect these standard env vars.
Environment
- Node.js 22+ with undici
- Any OS
- Any proxy configuration
Fix
PR #19660
Description
Node.js
fetch(backed by undici) does not respectHTTP_PROXY/HTTPS_PROXYenvironment variables. Users behind corporate proxies cannot use OpenClaw — all outbound requests bypass the proxy and fail.Repro
HTTPS_PROXY=http://your-proxy:8080Expected
Outbound fetch calls should route through the configured proxy, matching behavior of curl, wget, and other tools that respect these standard env vars.
Environment
Fix
PR #19660