+> **Running in Docker or a sandbox?** Install inside the container with the same command, and mount `~/.config/opencode` for persistence. Pass `--companion=no` to skip the desktop companion (it requires a display server). Auto-updates write to `~/.cache/opencode/packages/`, which is separate from config — mount that too if you want updates to survive container restarts.