Possible to not auto update on launch? #6934

Open
opened 2026-02-16 18:05:38 -05:00 by yindo · 4 comments
Owner

Originally created by @Mikec78660 on GitHub (Jan 20, 2026).

Originally assigned to: @thdxr on GitHub.

Question

I'm running my own build and it seems like opencode is replacing my binary on each launch of opencode. I see there is a switch for opencode "opencode upgrade [target]" so I thought only if you started opencode with upgrade would it upgrade but I'm seeing it without using the upgrade switch. Is it possible to not have opencode auto upgrade? Do I just need to change my build number to something higher than the current version number? By default it is just 0.0.0-dev. Maybe it would be possible to not auto upgrade if "dev" was in the build name? Or do I just need to edit that out of the code?

Originally created by @Mikec78660 on GitHub (Jan 20, 2026). Originally assigned to: @thdxr on GitHub. ### Question I'm running my own build and it seems like opencode is replacing my binary on each launch of opencode. I see there is a switch for opencode "opencode upgrade [target]" so I thought only if you started opencode with upgrade would it upgrade but I'm seeing it without using the upgrade switch. Is it possible to not have opencode auto upgrade? Do I just need to change my build number to something higher than the current version number? By default it is just 0.0.0-dev. Maybe it would be possible to not auto upgrade if "dev" was in the build name? Or do I just need to edit that out of the code?
Author
Owner

@github-actions[bot] commented on GitHub (Jan 20, 2026):

I searched through existing issues and could not find a direct duplicate of this issue. The auto-update behavior on launch with custom builds appears to be a unique topic. If you discover related issues during troubleshooting, please link them here.

@github-actions[bot] commented on GitHub (Jan 20, 2026): I searched through existing issues and could not find a direct duplicate of this issue. The auto-update behavior on launch with custom builds appears to be a unique topic. If you discover related issues during troubleshooting, please link them here.
Author
Owner

@Mikec78660 commented on GitHub (Jan 20, 2026):

I thought I could just trick it by doing this, but sadly no, because it doesn't launch with the current installed version it just goes back to the cli.

opencode upgrade 0.0.0-dev-202601200242

  ▄
█▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█
█░░█ █░░█ █▀▀▀ █░░█ █░░░ █░░█ █░░█ █▀▀▀
▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀ ▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀

┌ Upgrade

● Using method: curl

▲ opencode upgrade skipped: 0.0.0-dev-202601200242 is already installed

└ Done

Even changing my build version to 2.0.0-dev didn't help. It was still overwritten by 1.1.26 for some reason.

@Mikec78660 commented on GitHub (Jan 20, 2026): I thought I could just trick it by doing this, but sadly no, because it doesn't launch with the current installed version it just goes back to the cli. opencode upgrade 0.0.0-dev-202601200242   ▄ █▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█ █░░█ █░░█ █▀▀▀ █░░█ █░░░ █░░█ █░░█ █▀▀▀ ▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀ ▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ┌ Upgrade │ ● Using method: curl │ ▲ opencode upgrade skipped: 0.0.0-dev-202601200242 is already installed │ └ Done Even changing my build version to 2.0.0-dev didn't help. It was still overwritten by 1.1.26 for some reason.
Author
Owner

@itsrainingmani commented on GitHub (Jan 20, 2026):

Maybe you could set the autoupdate flag to false in your config - https://opencode.ai/docs/config/#autoupdate

@itsrainingmani commented on GitHub (Jan 20, 2026): Maybe you could set the `autoupdate` flag to false in your config - https://opencode.ai/docs/config/#autoupdate
Author
Owner

@Mikec78660 commented on GitHub (Jan 21, 2026):

ahh! perfect, thank you. It's still weird it has a command line option to update when it by default updates. But I guess you can use that to switch to an older version maybe. Anyway thank you @itsrainingmani

@Mikec78660 commented on GitHub (Jan 21, 2026): ahh! perfect, thank you. It's still weird it has a command line option to update when it by default updates. But I guess you can use that to switch to an older version maybe. Anyway thank you @itsrainingmani
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6934