Feature Request: permissions for webfetch #1185

Closed
opened 2026-02-16 17:29:54 -05:00 by yindo · 0 comments
Owner

Originally created by @kanaka on GitHub (Aug 8, 2025).

Originally assigned to: @thdxr on GitHub.

I would like to be able to run without any external network access/requests while running.

I tried doing this by disabling networking in the docker container where I run opencode, but opencode needs to do dep and module resolution on startup so that didn't work.

My immediate use case is that I'm doing some automated eval tasks (opencode run ...) and want to remove the variability and lack of reproducibility that comes from opencode getting data from the web.

The basic request is to add a permission setting for the webfetch tool. This isn't foolproof because opencode might try and fallback to using CLI tools via bash. So a complete solution would be someway to restrict opencode from all internet access once it does initial startup. But for now, permissions for webfetch would be awesome.

Originally created by @kanaka on GitHub (Aug 8, 2025). Originally assigned to: @thdxr on GitHub. I would like to be able to run without any external network access/requests while running. I tried doing this by disabling networking in the docker container where I run opencode, but opencode needs to do dep and module resolution on startup so that didn't work. My immediate use case is that I'm doing some automated eval tasks (`opencode run ...`) and want to remove the variability and lack of reproducibility that comes from opencode getting data from the web. The basic request is to add a permission setting for the webfetch tool. This isn't foolproof because opencode might try and fallback to using CLI tools via bash. So a complete solution would be someway to restrict opencode from all internet access once it does initial startup. But for now, permissions for webfetch would be awesome.
yindo closed this issue 2026-02-16 17:29:54 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1185