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
I have verified this feature I'm about to request hasn't been suggested before.
I often use opencode in my company's intranet environment, and I also need to access overseas open-source repositories and API interfaces. Currently, the project does not have a proxy configuration function, which forces me to switch the system global proxy — this is cumbersome and often affects the use of other software.
I noticed there are several proxy-related issues in the community (#9736, #12650, #9956, #10962, #531), but most of them only mention basic Socks5 or HTTP proxy support, without covering blacklist/whitelist and wildcard configuration — which is the most needed feature in my actual use case. For example, the internal IP segment of my company (192.168.1.) does not need to go through a proxy, while specific domains (.example.com) must use a proxy. Without this configuration now, either all traffic goes through the proxy (slowing down intranet access) or none does (unable to access overseas resources).
So I hope to add a proxy configuration function to opencode. The core is to support Socks4 and Socks5 proxies (HTTP/HTTPS optional), allowing the setting of server address, port, and optional authentication information. More importantly, add a blacklist and whitelist with wildcard support (such as .example.com, 192.168..*), so that I can accurately control which addresses go through the proxy and which are directly connected. Additionally, it would be better if the configuration can be saved so that I don't have to reconfigure it after restarting the project.
This feature is very useful for me and other users around me who are also in enterprise intranets and need to access resources across networks. It can greatly improve usage efficiency, and also make up for the deficiencies of existing proxy-related issues, avoiding redundant development with incomplete functions.
Reacted by Matthew Kern, ratermir, diffnull and Jeff K
The description appears to be AI-generated (overly structured, formal language, exhaustive bullet lists, and a sign-off like "Thanks for your attention and support!"). Please rewrite it in your own words, describing your actual use case and why this matters to you.
Please edit this issue to address the above within 2 hours, or it will be automatically closed.
This issue might be a duplicate of existing issues. Please check:
Thank you for updating your issue! It now meets our contributing guidelines. We appreciate the clear description of your use case and the detailed explanation of the proxy configuration needs. Your feature request is well-structured and easy to understand.
Activity
github-actions commentedon Mar 19, 2026
This issue doesn't fully meet our contributing guidelines.
What needs to be fixed:
Please edit this issue to address the above within 2 hours, or it will be automatically closed.
This issue might be a duplicate of existing issues. Please check:
If you believe this was flagged incorrectly, please let a maintainer know.
github-actions commentedon Mar 19, 2026
Thank you for updating your issue! It now meets our contributing guidelines. We appreciate the clear description of your use case and the detailed explanation of the proxy configuration needs. Your feature request is well-structured and easy to understand.
github-actions commentedon Jul 3, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.