[FEATURE]:add socks5 proxy #8802

Open
opened 2026-02-16 18:10:53 -05:00 by yindo · 1 comment
Owner

Originally created by @SongCF on GitHub (Feb 7, 2026).

Originally assigned to: @thdxr on GitHub.

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

I used a socks proxy (as many people would due to network security restrictions).

I can open https://raw.githubusercontent.com/ in the browser, but when I try to install a plugin in the terminal, I get the error:

curl: (7) Failed to connect to raw.githubusercontent.com port 443 after 8 ms: Couldn't connect to server

After adding export https_proxy=socks5://127.0.0.1:7890, I can successfully use curl in the terminal. However, the fetch function or underlying library does not support this protocol by default, and I still get an error:

Error: UnsupportedProxyProtocol fetching "https://opencode.ai/zen/v1/chat/completions". For more information, pass `verbose: true` in the second argument to fetch()
Originally created by @SongCF on GitHub (Feb 7, 2026). Originally assigned to: @thdxr on GitHub. ### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request I used a socks proxy (as many people would due to network security restrictions). I can open https://raw.githubusercontent.com/ in the browser, but when I try to install a plugin in the terminal, I get the error: ``` curl: (7) Failed to connect to raw.githubusercontent.com port 443 after 8 ms: Couldn't connect to server ``` After adding `export https_proxy=socks5://127.0.0.1:7890`, I can successfully use `curl` in the terminal. However, the fetch function or underlying library does not support this protocol by default, and I still get an error: ``` Error: UnsupportedProxyProtocol fetching "https://opencode.ai/zen/v1/chat/completions". For more information, pass `verbose: true` in the second argument to fetch() ```
yindo added the discussion label 2026-02-16 18:10:53 -05:00
Author
Owner

@smola commented on GitHub (Feb 14, 2026):

Upstream Bun issue: https://github.com/oven-sh/bun/issues/16812

@smola commented on GitHub (Feb 14, 2026): Upstream Bun issue: https://github.com/oven-sh/bun/issues/16812
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8802