Skip to content

[FEATURE]:Add Proxy Configuration (Support Socks Protocol & Blacklist/Whitelist with Wildcards) #18193

Closed as not planned

Description

@bigkun

Feature hasn't been suggested before.

  • 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.

Activity

  1. added
    discussion
    on Mar 19, 2026
  2. added
    core
    on Mar 19, 2026
  3. github-actions commented on Mar 19, 2026

    @github-actions
    Contributor

    This issue doesn't fully meet our contributing guidelines.

    What needs to be fixed:

    • 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:

    If you believe this was flagged incorrectly, please let a maintainer know.

  4. added
    needs:compliance
    and removed
    needs:compliance
    on Mar 19, 2026
  5. github-actions commented on Mar 19, 2026

    @github-actions
    Contributor

    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.

  6. removed
    discussion
    core
    on May 3, 2026
  7. github-actions commented on Jul 3, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions