Skip to content

[BUG] Unable to use HTTP proxy settings #6637

Description

@zhatlas

Environment

  • Platform (select one):
    • Anthropic API
    • AWS Bedrock
    • Google Vertex AI
    • Other: Claude Code Overrides via env
  • Claude CLI version: 1.0.93
  • Operating System: Ubuntu 22.04
  • Terminal: Windows Terminal

Bug Description

After configuring HTTP_PROXY/HTTPS_PROXY in Claude Code v1.0.93, network requests fail to go through the proxy and the following warning is emitted on every run:

(node:19595) [UNDICI-EHPA] Warning: EnvHttpProxyAgent is experimental, expect them to change at any time. (Use `node --trace-warnings ...` to show where the warning was created)

The same proxy settings work correctly in v1.0.92 without any warnings.

Steps to Reproduce

  1. Install or update to Claude Code CLI v1.0.93.
  2. Set environment variable HTTP_PROXY (or HTTPS_PROXY) to a valid proxy URL.
  3. Run any Claude client command that makes an HTTP request (e.g. claude chat --model code-v1).

Expected Behavior

Network requests should be routed through the configured proxy and no experimental-agent warnings should appear.

Actual Behavior

  • Requests do not use the proxy (no outbound network traffic through the proxy).
  • The [UNDICI-EHPA] Warning: EnvHttpProxyAgent is experimental… warning is logged on startup.

Additional Context

  • Downgrading to Claude Code CLI v1.0.92 with the same proxy environment variables restores expected behavior and suppresses the warning.
  • Possible root cause: v1.0.93 switched to Undici’s experimental EnvHttpProxyAgent, which may not properly read environment variables and emits warnings.
  • A workaround is to manually configure a stable ProxyAgent via code or pin back to v1.0.92.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions