Playbooks · Coding tasks
OpenCode 2.4.0 adds a built-in browser and automations
Written November 23, 2026
OpenCode 2.4.0 adds a built-in desktop browser, scheduled and event-driven automations, and video generation, and renames the Copilot token and image tool.
OpenCode 2.4.0 adds three pieces of work that used to sit outside the app. The desktop app now has its own browser, so signed-in pages no longer need a separate window. The agent can run prompts, scripts, and shell commands on a schedule or on an MCP event, and can generate video when a connected provider has a video model. The release also changes things on upgrade, including the token GitHub Copilot reads and the image tool's name.
A browser inside the desktop app
The browser pane keeps you signed in. You can import sign-ins and browsing history from Chrome, Edge, Firefox, or Safari, and add extensions from Chromium browsers or the Chrome and Edge stores. Everything stays in one persistent profile, and tabs survive restarts.
Links from the chat open beside the conversation in that profile, so a link that needs your sign-in opens signed in. Modifier-click a link to open it in your system browser. The agent can read and drive the same tabs. A browser deny in your permission rules refuses every agent browser call.
Automations run on timers, cron, and MCP events
Automations let you ask the agent to run a prompt, a Code Mode script, or a fixed shell command once, on an interval, on a cron schedule, or when a connected MCP server pushes an event. Manage them with the /automation command or the automation tools. Set "automations": false in your config to turn them off.
A shell action asks for approval once, when it is created, rather than on every run. Each run is recorded, with its exit code and output.
Event-driven automations use MCP Events. OpenCode follows the MCP Events beta for push delivery, with argument checks, heartbeats, and automatic reconnects. An event too large for its prompt is skipped, and its automation keeps running.
Video generation runs in the background
When a connected provider has a video model, the agent can make videos with generate_video. The job runs in the background and survives a server restart. Finished files are saved into your workspace, and the agent is woken with their paths. Set a default model with experimental.video_generate.model.
Stored blobs, such as generated videos, are deleted a week after they were written. Copies saved into your project are untouched, and a request for a deleted blob returns 404, so keep the workspace copy if you need the file.
Copilot token and image tool changes on upgrade
GitHub Copilot no longer reads GITHUB_TOKEN. That variable is often set by git tooling and GitHub Actions without Copilot access, which is why Copilot picked it up by mistake. Set COPILOT_GITHUB_TOKEN instead, or sign in with OAuth.
The image tool is renamed. experimental_image_generate is now generate_image. Permission rules that use the old name are mapped automatically, but saved "always allow" approvals are not, so the tool asks again once.
Plugins that follow a version now update themselves
A plugin written as name@latest, a version range such as name@^1.2.0, a Git branch, or a Git semver: range is now checked on startup and every 24 hours. A newer match is installed and reloaded without a restart. A range never leaves its range, and if a new version fails to load, the previous one keeps running.
A bare name, an exact version, another tag such as @next, a Git tag, or a commit hash does not update itself. Those only report updates, and opencode plugin update still updates them by hand.
MCP probing, the new TUI default, and SDK plugin loading
MCP servers are now tried on the newest protocol first. A server without a protocol setting is probed before falling back to the legacy handshake. If a server misbehaves under that order, set protocol: "legacy" on that server.
The new TUI designs are on by default, and the opencode theme now means the new theme. Pick opencode-classic in Theme to keep the previous colors, and set experimental["new-designs"]: false in your TUI config for the previous designs. On Windows, the taskbar button shows session progress, counts sessions that need you, and flashes when a permission or question is waiting.
For SDK users, plugins load in the background again, and the server never waits for them. Right after startup, the model, provider, generate, voice, and websearch endpoints answer with whatever has loaded, so a list can be empty or partial. Long-lived clients should refresh on the matching updated event, such as model.updated. One-shot scripts should poll plugin.list or the endpoint until the entry they need appears.
What to do
- Set COPILOT_GITHUB_TOKEN, or sign in with OAuth, since Copilot no longer reads GITHUB_TOKEN.
- Expect generate_image to ask for approval once, even if you saved an "always allow" approval under the old name.
- Check your plugin specs: version-following forms now update on their own; bare names, exact versions, other tags, Git tags, and commit hashes do not.
- If an MCP server misbehaves, set protocol: "legacy" on that server.
- For the previous TUI look, pick opencode-classic, or set experimental["new-designs"]: false in your TUI config.
- If an SDK script reads lists right after startup, poll until the entry it needs appears, or refresh on the matching updated event.
- Keep the workspace copy of any generated video you need, since stored blobs are deleted after a week.
- Set "automations": false in your config if you do not want automations available.
Related playbooks
- OpenCode Browse: agents use your real browser
- OpenHands 1.43.0 adds automations from the setup wizard
- Move OpenCode 1.x to 2.0 without losing config
- Open WebUI 0.13.3 puts agents in automations
Sources
- OpenCode v2.4.0 release notes — GitHub — The built-in desktop browser and its persistent profile, imports, and extensions, the automations and MCP Events behavior, generate_video and the one-week blob deletion, the COPILOT_GITHUB_TOKEN change, the generate_image rename, the self-updating version-following plugins, the MCP protocol probing, the new TUI default, the Windows taskbar status, and the SDK background plugin loading change.
Back to: Coding playbooks hub · Also: OpenCode 2.3.1 lets timed-out shell commands keep running