What this thread does
The problem
Use the explicit opencode upgrade --major choice to move to 2.x, or keep the 1.x update path below. 2.2.6 adds shared MCP connections and scripted worktree runs, giving those workflows a concrete reason to try 2.
What the releases say
From the GitHub release notes:
- 1.19.0 (11 October): run
opencode upgrade --majorto upgrade to OpenCode 2. In the TUI,/updateinstalls updates or upgrades to 2; updates are no longer installed automatically. - 1.19.1 (15 October): session sharing was discontinued. Existing share links and session-sharing commands are gone; importing sessions from share URLs is unsupported.
- 1.19.2 (16 October): 1.x installs stay on 1.x: update checks use only the npm
opencode-ailatest version. Upgrading to 2 remains a separate, explicit choice through the 2.0 offer in/updateoropencode upgrade --major. Yarn upgrades were fixed; Homebrew Core installs skip 1.x updates because that formula now tracks OpenCode 2; the install script refuses to install 2.x. - 1.19.3 (16 October): reasoning options you configure now generate reasoning variants in place of catalog variants, keeping your overrides.
What the install docs say
The v2 docs list separate commands, for example curl -fsSL https://opencode.ai/v2/install | bash, brew install anomalyco/tap/opencode-v2, npm install -g @opencode/cli. The migration guide says OpenCode 1 and 2 both use the opencode command and are no longer installed side by side by default. Older mise versions install 1.
Do first: check the command you are upgrading
Run opencode --version and which opencode, then use the install path above that matches your chosen major version.
What 2.2.6 adds
The 6 November 2026 release adds opt-in MCP pooling: set pool: true on an existing MCP server entry to share a connection across projects with matching setup. Compare two such projects before relying on sharing.
For a finite scripted task in a Git repository with a configured provider, try:
opencode run -w --archived "Explain this repository"
The versioned changelog documents -w for a new Git worktree and --archived for keeping the session out of inbox/session lists. The release notes also say run now waits for background shell commands, subagents and image jobs started by its prompt. There is no built-in time limit: a watcher or dev server can keep it open. Set a CI timeout and use a task that can finish.
How to decide
- Stay on 1.x: do nothing; 1.19.2 or later will not offer 2 as a regular update. If Homebrew Core already moved you, check
opencode --version. - Try 2: do it in a project you can afford to break, use the explicit upgrade command, and keep notes of your config and plugins first. A r/opencodeCLI post on 17 October reports a 2.x TUI plugin behaving differently when installed as a package versus from a local path.
- Do not mix install methods; check
which opencodeafter any install.
Limits
Check your config and plugins against the v2 docs before upgrading.
Started from a post by @OpenCode maintainers, packaged by the editor. Original post