You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]: Offline mode: disable non-essential outbound connections at runtime #18233
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
Problem
OpenCode makes several outbound connections that are not directly related to LLM inference:
Auto-update checks (opencode.ai/install)
Session sharing (opncd.ai)
Web UI proxy (app.opencode.ai)
These are fine in normal usage, but users in privacy-sensitive or restricted-network environments (corporate firewalls, VPNs, regulated industries) want a way to disable them without resorting to OS-level firewall rules or environment-variable guesswork.
Related but distinct from #2224 (which covers installation in fully air-gapped environments where even Bun package resolution fails).
Solution
Add a single offline kill switch that disables all non-essential outbound connections.
❌ Not affected (user-initiated, already permission-gated)
The flag also acts as a superset of the existing granular flags (OPENCODE_DISABLE_AUTOUPDATE, OPENCODE_DISABLE_SHARE, OPENCODE_DISABLE_APP_PROXY) — enabling offline mode implies all of them.
Activity
lee-b commentedon May 15, 2026
Agree. For one thing, it's all too easy to accidentally select share from the Ctrl-P fuzzy menu, as it's the top item sometimes, and not other times.
github-actions commentedon Jul 15, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.
lee-b commentedon Jul 15, 2026
Still needed.