[FEATURE]: Allow overriding WebFetch tool’s User-Agent header #6553

Open
opened 2026-02-16 18:04:34 -05:00 by yindo · 1 comment
Owner

Originally created by @Zohair-coder on GitHub (Jan 16, 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

My organization runs behind a corporate proxy. The proxy requires Kerberos/NTLM authentication for all HTTP requests that look like they come from the browser based on the User-Agent header. It seems like the WebFetch tool sets the header to something that looks like it’s coming from a browser, which means I get a 401 response from the proxy for all of my requests made by the WebFetch tool. Please allow overriding this headers.

Originally created by @Zohair-coder on GitHub (Jan 16, 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 My organization runs behind a corporate proxy. The proxy requires Kerberos/NTLM authentication for all HTTP requests that look like they come from the browser based on the User-Agent header. It seems like the WebFetch tool sets the header to something that looks like it’s coming from a browser, which means I get a 401 response from the proxy for all of my requests made by the WebFetch tool. Please allow overriding this headers.
yindo added the discussion label 2026-02-16 18:04:34 -05:00
Author
Owner

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

This issue might be a duplicate of existing issues or closely related to broader feature requests. Please check:

  • #8822: Corporate proxy issue with NO_PROXY environment variable not being respected
  • #7209: Feature request for tool-specific proxy configuration
  • #7155: OpenCode crashes when http_proxy environment variable is set
  • #6953: OpenCode ignores system proxy environment variables (HTTP_PROXY/HTTPS_PROXY)
  • #4959: Request to disable models.dev fetch for corporate proxy environments
  • #531: Foundational request for HTTP_PROXY & HTTPS_PROXY support

While #9013 is specifically about overriding the User-Agent header (which is unique), the underlying issue is part of a broader pattern of corporate proxy and authentication challenges. You may want to coordinate with ongoing efforts to improve proxy and network configuration handling across OpenCode.

Feel free to ignore if your specific case is distinct from these issues.

@github-actions[bot] commented on GitHub (Jan 16, 2026): This issue might be a duplicate of existing issues or closely related to broader feature requests. Please check: - #8822: Corporate proxy issue with NO_PROXY environment variable not being respected - #7209: Feature request for tool-specific proxy configuration - #7155: OpenCode crashes when http_proxy environment variable is set - #6953: OpenCode ignores system proxy environment variables (HTTP_PROXY/HTTPS_PROXY) - #4959: Request to disable models.dev fetch for corporate proxy environments - #531: Foundational request for HTTP_PROXY & HTTPS_PROXY support While #9013 is specifically about overriding the User-Agent header (which is unique), the underlying issue is part of a broader pattern of corporate proxy and authentication challenges. You may want to coordinate with ongoing efforts to improve proxy and network configuration handling across OpenCode. Feel free to ignore if your specific case is distinct from these issues.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6553