You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Is it possible to add a proxy server port option to your application settings? #521
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.
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!
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.
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.
Activity
AmethystLiang commentedon Apr 12, 2026
@Jinwoo-H who built this usage tracking feature can help answer
Jinwoo-H commentedon Apr 12, 2026
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!tod-zhang commentedon Apr 12, 2026
I edited the
~/.zshrcfile 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.
fix(rate-limits): route Claude OAuth usage fetch through HTTP proxy
nengqi commentedon Apr 18, 2026
Submitted a fix: #803.
TL;DR: Node's
fetch(undici) doesn't honorHTTP_PROXYenvvars without an explicitdispatcher. The PR wires aProxyAgentintofetchViaOAuthkeyed offHTTPS_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.