Feature hasn't been suggested before.
Describe the enhancement you want to request
OpenCode relies heavily on network access (webfetch, package installs, git clone, etc.), but many developers work behind network restrictions that require proxy access. Currently there is no built-in proxy support.
Proposal: Add built-in proxy configuration and auto-start/stop capabilities to OpenCode.
Suggested Implementation
Use Case
- Agent runs
webfetch → times out due to network restriction
- OpenCode auto-starts the configured proxy core
- Network requests go through proxy → succeeds
- After task completion, proxy auto-shuts down
This would be especially helpful for developers in regions with internet restrictions.
Reference Implementation
We built a small PowerShell tool that does exactly this for OpenCode agents: https://github.com/tianshan233/auto-proxy
It demonstrates the full workflow: download subscription → start Mihomo core → set proxy → work → auto cleanup.
Feature hasn't been suggested before.
Describe the enhancement you want to request
OpenCode relies heavily on network access (webfetch, package installs, git clone, etc.), but many developers work behind network restrictions that require proxy access. Currently there is no built-in proxy support.
Proposal: Add built-in proxy configuration and auto-start/stop capabilities to OpenCode.
Suggested Implementation
Use Case
webfetch→ times out due to network restrictionThis would be especially helpful for developers in regions with internet restrictions.
Reference Implementation
We built a small PowerShell tool that does exactly this for OpenCode agents: https://github.com/tianshan233/auto-proxy
It demonstrates the full workflow: download subscription → start Mihomo core → set proxy → work → auto cleanup.