[FEATURE]: Is it possible to specify that certain tools use a proxy, such as websearch? These tools should be allowed to use a proxy, while others should continue to use the regular network. #4366

Closed
opened 2026-02-16 17:43:35 -05:00 by yindo · 1 comment
Owner

Originally created by @crper on GitHub (Jan 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

Is it possible to specify that certain tools use a proxy, such as the websearch tool or specific large models? It would be acceptable to allow these tools to use a proxy, while other tools continue to use the regular network.

such as :

Image

The advantage of doing this is that it is particularly helpful in certain special network scenarios. For example, using a proxy can speed up the operation of some large models, and the same applies to web searches, as conventional networks may not allow access due to restrictions imposed by network operators.

Currently, the only way to use a proxy is by setting temporary shell variables, but this approach seems rather crude and results in significant traffic consumption by the proxy.

Originally created by @crper on GitHub (Jan 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 Is it possible to specify that certain tools use a proxy, such as the websearch tool or specific large models? It would be acceptable to allow these tools to use a proxy, while other tools continue to use the regular network. such as : <img width="1586" height="1378" alt="Image" src="https://github.com/user-attachments/assets/72213d87-23e2-4c34-9094-db40154cca88" /> The advantage of doing this is that it is particularly helpful in certain special network scenarios. For example, using a proxy can speed up the operation of some large models, and the same applies to web searches, as conventional networks may not allow access due to restrictions imposed by network operators. Currently, the only way to use a proxy is by setting temporary shell variables, but this approach seems rather crude and results in significant traffic consumption by the proxy.
yindo added the discussion label 2026-02-16 17:43:35 -05:00
yindo closed this issue 2026-02-16 17:43:35 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 7, 2026):

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

  • #4924: Is it possible to use proxy? (directly asks about proxy usage)
  • #531: Support HTTP_PROXY & HTTPS_PROXY for users behind firewalls in certain regions
  • #4959: Add option to disable models.dev fetch for corporate proxy environments (requests selective proxy configuration)
  • #7155: OpenCode Crashes on Launch When http_proxy Environment Variable is Set (proxy-related bug)

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

@github-actions[bot] commented on GitHub (Jan 7, 2026): This issue might be a duplicate of existing issues. Please check: - #4924: Is it possible to use proxy? (directly asks about proxy usage) - #531: Support HTTP_PROXY & HTTPS_PROXY for users behind firewalls in certain regions - #4959: Add option to disable models.dev fetch for corporate proxy environments (requests selective proxy configuration) - #7155: OpenCode Crashes on Launch When http_proxy Environment Variable is Set (proxy-related bug) Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4366