Skip to content

OpenCode Attempts Package Installation on Startup Despite Auto-Update Being Disabled #10484

Closed

Description

@suseemani

Description

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.

Screenshot and/or share link

No response

Operating System

macos and redhat linux

Terminal

Ghostty

Activity

  1. github-actions commented on Jan 25, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Feel free to ignore if none of these address your specific case.

  2. dhruvkej9 commented on Jan 25, 2026

    @dhruvkej9

    OPENCODE_DISABLE_AUTOUPDATE should be boolean try with true

    I have set it bashrc and it works fine for me (Ubuntu 24.04)

  3. suseemani commented on Jan 25, 2026

    @suseemani
    Author

    OPENCODE_DISABLE_AUTOUPDATE should be boolean try with true

    I have set it bashrc and it works fine for me (Ubuntu 24.04)

    Unfortunately, it is not working with docker container.

  4. github-actions commented on Mar 27, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions