Skip to content

Is it possible to add a proxy server port option to your application settings? #521

Description

@tod-zhang

Is it possible to add a proxy server port option to your application settings?
In my country, I am unable to log in to Claude without using a proxy.

Although I was able to log in to Claude by configuring a proxy via the terminal, I noticed a feature in the bottom-left corner of your application that displays Claude's current usage. I am unsure if the reason I cannot access this feature is that the application itself is not routing through the proxy port.

Image

Activity

  1. AmethystLiang commented on Apr 12, 2026

    @AmethystLiang
    Contributor

    @Jinwoo-H who built this usage tracking feature can help answer

  2. Jinwoo-H commented on Apr 12, 2026

    @Jinwoo-H
    Contributor

    Hi @tod-zhang, the Claude usage indicator info is fetched in a way that may not inherit your proxy, which would explain why the indicator doesn't load. Do you mind sharing how your proxy is configured today - for example, do you rely on HTTP_PROXY / HTTPS_PROXY / ALL_PROXY, a local proxy app/port, etc. It would help evaluate how we could possibly support this. Thanks!

  3. tod-zhang commented on Apr 12, 2026

    @tod-zhang
    Author

    I edited the ~/.zshrc file as follows:
    http_proxy="http://127.0.0.1:7890"
    https_proxy="http://127.0.0.1:7890"

    I am using Shadowrocket—a proxy tool available on the Apple App Store—and I have configured its proxy port to 7890.

    I typically run Claude Code via the standard Terminal or the integrated terminal within VS Code, and I haven't encountered any issues so far.

    On macOS, the feature for displaying usage quotas works correctly because Shadowrocket is capable of directly proxying specific applications.

    On Windows, however, I believe it is necessary to proxy the entire application itself. For instance, you would need to use a tool like Clash or V2Ray with its TUN mode enabled to proxy the app effectively.

  4. added a commit that references this issue on Apr 18, 2026
    7e7fe7e
  5. nengqi commented on Apr 18, 2026

    @nengqi
    Contributor

    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.

  6. 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

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions