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
OpenCode Attempts Package Installation on Startup Despite Auto-Update Being Disabled #10484
I am attempting to start the container in a restricted environment that has access only to the LLM and no external network connectivity. To prevent automatic updates or package installations, I set the environment variable OPENCODE_DISABLE_AUTOUPDATE=1 when starting the container.
However, during startup, OpenCode still attempts to install packages. This behavior makes it difficult to run the container in environments with limited or no outbound access.
Please let me know if there is an additional configuration required to fully disable package installation on startup, or if this is an expected behavior.
If you want, I can also help tailor this to match the project’s issue template (e.g., adding steps to reproduce, expected vs. actual behavior).
Plugins
oh-my-opencode
OpenCode version
1.1.32
Steps to reproduce
Prepare an environment with restricted network access, allowing connectivity only to the LLM endpoint and no access to external package repositories.
Start the OpenCode container with the environment variable OPENCODE_DISABLE_AUTOUPDATE=1 set (for example, via docker run -e OPENCODE_DISABLE_AUTOUPDATE=1 ...).
Observe the container startup logs.
Notice that during startup, OpenCode attempts to install or update packages despite auto-update being disabled.
This issue might be a duplicate of existing issues. Please check:
Disable force dependency update while starting #8729: Disable force dependency update while starting - Reports forced dependency reinstallation on every startup with bun add --force, causing 60-90+ second startup times
Activity
github-actions commentedon Jan 25, 2026
This issue might be a duplicate of existing issues. Please check:
bun add --force, causing 60-90+ second startup timesautoupdate: falseconfig is ignored, causing unwanted auto-updatesFeel free to ignore if none of these address your specific case.
dhruvkej9 commentedon Jan 25, 2026
OPENCODE_DISABLE_AUTOUPDATE should be boolean try with true
I have set it bashrc and it works fine for me (Ubuntu 24.04)
suseemani commentedon Jan 25, 2026
Unfortunately, it is not working with docker container.
github-actions commentedon Mar 27, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.