[BUG] statsig sdk not respecting https_proxy/HTTPS_PROXY

Status Closed — not planned
Maintainer reply None cached
Activity 8 comments · opened Nov 7, 2025 · closed Jan 22, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

it's hard to say for sure, but it seems that I can't use claude with an egress proxy very well. If I disable telemetry it works but without it claude hangs for a few minutes before working. The http proxy seems to work generally, it just hangs presumably the first time it emits telemetry.

Test 1: With Telemetry Disabled (Works)

$ time DISABLE_TELEMETRY=1 claude "just say 'hello'"
hello

real    0m9.153s
user    0m9.932s
sys     0m4.419s

✅ Result: Completes successfully in ~9 seconds

Test 2: With Telemetry Enabled (Hangs)

$ time timeout 30s claude "just say 'hello'"
# Hangs indefinitely, killed by timeout

real    0m30.029s
user    0m9.311s
sys     0m4.205s

❌ Result: Timeout after 30 seconds (exit code 124)

What Should Happen?

It shold be using the same http proxy information for statsig.

Error Messages/Logs

Steps to Reproduce

Not sure how to reproduce without an egress proxy.

Claude Model

None

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.0.35

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Non-interactive/CI environment

Additional Information

_No response_

View original on GitHub ↗

8 Comments

github-actions[bot] · 11 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/2481
  2. https://github.com/anthropics/claude-code/issues/8248
  3. https://github.com/anthropics/claude-code/issues/2583

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

jdx · 11 months ago

#2481 and #8248 could have the same root cause but are different

jtourille · 11 months ago

I confirm that disabling telemetry resolves the issue #8248.

github-actions[bot] · 10 months ago

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

paulmixxx · 9 months ago

Same issue here.

Environment:

  • Claude Code: 2.0.75
  • OS: Linux (Ubuntu)
  • Proxy: local SOCKS/HTTP proxy on 127.0.0.1:2080

Symptoms:

  • Claude Code hangs indefinitely on startup ("Brewing..." never completes)
  • Authentication works fine, credentials are saved
  • After manual re-login it works until next restart

Debugging findings:

  • Deleting ~/.claude/statsig directory temporarily fixes the issue (works once, then hangs again on next launch)
  • DISABLE_TELEMETRY=1 works as a permanent workaround

Workaround:

export DISABLE_TELEMETRY=1

Confirms that statsig SDK is blocking startup when it can't reach its endpoints through the proxy.

github-actions[bot] · 8 months ago

This issue has been automatically closed due to 60 days of inactivity. If you're still experiencing this issue, please open a new issue with updated information.

marcindulak · 8 months ago

This issue was closed incorrectly despite recent human comments. This behavior of the bot is reported at https://github.com/anthropics/claude-code/issues/16497. Please upvote that issue, so maybe it gets noticed.

github-actions[bot] · 8 months ago

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.