Skip to content

Route Claude usage polling through HTTP proxy (or add a real off switch) #800

Description

@nengqi

Operating system

macOS

Orca version

v1.2.2

Details

The usage bar in the bottom-left polls Anthropic's servers to fetch Claude usage. Two problems in my network environment:

  1. The poll bypasses my HTTP proxy. On my machine the claude CLI and Claude Code are configured to go through a proxy (required for stable Anthropic access in my region). Orca's usage fetch appears to hit Anthropic directly, which risks triggering anti-abuse / IP-based rate limits on my Anthropic account — a hard-to-reverse consequence for what is a cosmetic feature.

  2. No real way to disable it. Per [Bug]: Auto usage check does not disable #683 the Settings toggle that looks usage-related actually controls a separate token statistic; hiding the usage bar via right-click is the only workaround, and it's unclear whether hiding the UI also stops the underlying polling.

Requested behavior (either is fine, ideally both)

Related: #521, #683.

Activity

  1. added
    os:macos
    on Apr 18, 2026
  2. added a commit that references this issue on Apr 18, 2026
    7e7fe7e
  3. nengqi commented on Apr 18, 2026

    @nengqi
    ContributorAuthor

    Submitted a fix: #803.

    TL;DR: Node's fetch (undici) doesn't honor HTTP_PROXY envvars without an explicit dispatcher. The PR wires a ProxyAgent into fetchViaOAuth keyed off HTTPS_PROXY / ALL_PROXY / HTTP_PROXY.

    Phase 2 follow-up (not in this PR): a Settings UI field so users whose proxy lives in a GUI proxy app (Shadowrocket, Clash, system-level) can configure it without exporting shell envvars — a GUI-launched Orca won't inherit envvars set only in .zshrc. Happy to send that as a separate PR once this lands.

  4. added theissue type on Jul 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

os:macos

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions