What changed
OpenCode 2.4.0 was released on November 23, 2026. According to the release notes, the main additions are:
- Built-in desktop browser. It can import sign-ins and history from other browsers and keeps tabs the agent can also drive. Chat links now open in this browser pane, and a
browserdeny rule blocks all agent browser calls. - Automations. Prompts, scripts or shell commands can run on a timer, a cron schedule or when an MCP server sends an event. They’re managed with
/automationand can be turned off with"automations": false. - Video generation. A
generate_videotool works when a connected provider has a video model. - New TUI look, on by default.
The release notes list several breaking changes:
- The GitHub Copilot provider no longer reads
GITHUB_TOKEN; useCOPILOT_GITHUB_TOKENor OAuth sign-in. experimental_image_generateis renamedgenerate_image. Permission rules map across, but saved “always allow” approvals don’t.- Plugins pinned to
@latest, a version range or a Git branch now update on startup and every 24 hours. - MCP servers without a
protocolsetting are probed on the newest protocol first;protocol: "legacy"restores the old order. - The
opencodeTUI theme now means the new theme (opencode-classickeeps the old colours), and TUI plugins need OpenTUI 0.9.4 or later. - OpenCode Go models now sit under a single OpenCode option. Existing Go keys keep working.
Security-relevant fixes include opencode service set password no longer writing the password to the CLI log, shell commands the scanner can’t analyse now asking for permission, removed ChatGPT accounts now being revoked with OpenAI, and file:// URLs being refused outside the built-in preview.
Who it affects
Anyone using OpenCode with GitHub Copilot through an environment token (common in CI and GitHub Actions), plugin and TUI theme authors, and users with MCP servers that only speak older protocol versions.
What to do
Read the upgrade notes before updating. Switch Copilot sign-in to COPILOT_GITHUB_TOKEN or OAuth, pin plugin versions if you don’t want automatic updates, and add a browser deny rule if agents shouldn’t use the signed-in browser. If you’ve set a service password, update and clear old CLI logs.
Source: https://github.com/anomalyco/opencode/releases/tag/v2.4.0