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
[FEATURE]: Add HTTP/SOCKS5 proxy support for outbound requests #37036
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
Problem
OpenCode doesn't support HTTP/HTTPS or SOCKS5 proxies. Users behind corporate firewalls can't use it with LLM providers, the webfetch tool, or any other outbound feature. The existing proxy-env.ts reads HTTP_PROXY but only applies it to WebSocket connections.
Solution
Add proxy support to opencode.json (fallback to env vars):
Please review these issues to see if your request is already tracked. If your issue covers something not addressed there, consider adding a comment to the most relevant open issue instead.
Activity
github-actions commentedon Jul 15, 2026
This issue might be a duplicate of existing issues. Please check:
opencode.jsonwith nearly identical scope (HTTP/HTTPS proxy,noProxy, webfetch, all outbound paths on Desktop/Windows)webfetchTransport errors even whenHTTPS_PROXYis set, covering undici CONNECT + HTTP/2 failuresPlease review these issues to see if your request is already tracked. If your issue covers something not addressed there, consider adding a comment to the most relevant open issue instead.