r/opencode • • 8d ago

Exclude local device/network access

I wish to exclude access to other connected devices on the same network.

According to docs, I simply execute the below line in Terminal? I'm assuming this is broad, right? I mean, this will restrict device connections by any other app/device? Or is this simply to exclude OpenCode from access?

export HTTP_PROXY=http://proxy.example.com:8080
export HTTPS_PROXY=http://proxy.example.com:8080
export NO_PROXY=localhost,127.0.0.1,::1
1 Upvotes

5 comments sorted by

View all comments

Show parent comment

1

u/sasreedit 8d ago

Okay, thanks. Would I then restrict OpenCode to public, blocking private network access?

2

u/n_santana8062 8d ago

For a hard boundary, enforce egress rules around OpenCode and its child tools, including IPv6 private/link-local ranges; proxy settings alone don't isolate LAN access.