opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Is it possible to use proxy?

Open chetverovod opened this issue 1 month ago • 3 comments

Question

Is it possible to use proxy server as gasket between opencode and Internet?

chetverovod avatar Nov 30 '25 19:11 chetverovod

This issue might be a duplicate of existing issues. Please check:

  • #531: Support HTTP_PROXY & HTTPS_PROXY for millions of users who are behind fire walls in some regions and some organizations
  • #4823: v1.0.119: nothing to see in an environment with a proxy
  • #3989: acp-command unhandled rejection (proxy-related crashes in v1.0.35)
  • #4284: socket connection error with ProxyChains from v1.0.0
  • #1711: Different proxies for different providers?
  • #2446: AWS Bedrock Provider doesn't seem to respect proxy
  • #1694: Use local SSL trust store (proxy with self-signed SSL certs)

Feel free to ignore if none of these address your specific case.

github-actions[bot] avatar Nov 30 '25 19:11 github-actions[bot]

I think there is a bug w/ HTTP_PROXY and HTTPS_PROXY, looking into them

rekram1-node avatar Dec 02 '25 00:12 rekram1-node

It works fine with HTTPS_PROXY, but if you provide HTTPS_PROXY and HTTP_PROXY it will crash, at list on my NixOS machine.

khrore avatar Dec 02 '25 06:12 khrore

It works fine with HTTPS_PROXY

socks proxy?

anpic avatar Dec 03 '25 19:12 anpic

why not just add proxy support via golang.org/x/net/proxy?

anpic avatar Dec 03 '25 19:12 anpic

This isn't a go codebase my guy

rekram1-node avatar Dec 03 '25 21:12 rekram1-node

This isn't a go codebase my guy

ok :smile: but in other languages too there are stable libraries for proxying everywhere and what about your fork? :wink:

anpic avatar Dec 04 '25 14:12 anpic

ill figure out what the problem is but for now set:

NO_PROXY=localhost,127.0.0.1

rekram1-node avatar Dec 08 '25 07:12 rekram1-node

ill figure out

but is it possible to use socks5 and socks5h proxies as ALL_PROXY?

anpic avatar Dec 08 '25 09:12 anpic