Keep opencode up to date
getting started
// what it does
opencode upgrade pulls the latest release in place; pass a version to pin one, and --method forces the installer (npm, brew, curl) when auto-detection guesses wrong. By default opencode also updates itself in the background — set autoupdate:false in config to freeze the version. opencode --version reports what is actually running.
// shell
$ opencode upgrade$ opencode --version// gotcha
Upgrade with the same method you installed with; mixing a brew-installed binary with a curl-script upgrade leaves two copies on PATH. Check which opencode if the version looks stuck.