OpenCode

Open-source terminal and desktop AI coding agent supporting multiple model providers and local workflows.

2026.11.25

OpenCode 2.4.2 narrows web approvals and improves automations and Code Mode

OpenCodeRelease

OpenCode 2.4.2 gives GPT-6.2 Sol, Astra and gpt-latest aliases a dedicated system prompt, moves image and video generation into Code Mode, and scopes web-fetch “Always allow” to the current site. Failed automations are recorded and continue on schedule, timed-out shell commands are stopped, and service-tier cost estimates, session moves, SDK behavior and plugin APIs improve.

  • GPT-6.2 Sol, Astra and gpt-latest aliases use a GPT-6.2 system prompt.
  • generate_image and generate_video move into Code Mode, removing about 700 tool-definition tokens from every request.
  • Web-fetch “Always allow” applies only to that site; approvals saved by earlier versions remain unchanged.
  • Failed automations are recorded and continue on schedule, but pause when their session, directory or setup is invalid; timed-out shell commands stop and fail.
  • Service-tier estimates use their own prices and long-context rates; moving a session moves its subagents, and the workerd SDK forwards alarms so idle remote workspaces can suspend.
New featureCritical fixCompatibilityAPI
2026.11.23

OpenCode 2.4.1 fixes macOS 12 saving and exposes model speed tiers

OpenCodeRelease

OpenCode 2.4.1 fixes assistant messages failing to save on macOS 12 because its system SQLite lacks the JSON operator, and shows models from config-only providers without a /connect login. Experimental model_speeds exposes service tiers as remembered speeds, while the release also fixes compaction history retention, extra cache costs in long goal sessions and plugin compatibility.

  • Fixes assistant messages failing to save on macOS 12.
  • Config-only provider models appear in /models without a /connect login.
  • Experimental model_speeds shows service tiers and relative prices in the model picker and /speed or /fast.
  • Fixes excessive history after compaction, extra cache costs in long goal sessions and plugin installation compatibility.
Critical fixNew featureCompatibility

OpenCode 2.4.0 adds built-in desktop browser and Automations

OpenCodeRelease

OpenCode v2.4.0 adds a built-in desktop browser and Automations. The browser can import existing sign-ins and browsing history, keeps everything in one persistent desktop profile, and lets the agent read and drive the same pages without switching apps; Automations runs prompts, scripts, or shell commands on a timer, a cron schedule, or MCP server events.

  • The built-in desktop browser imports sign-ins and browsing history from Chrome, Edge, Firefox, or Safari, and adds extensions from Chromium browsers or the Chrome and Edge stores
  • Everything stays in one persistent desktop profile: chat links open signed in, tabs survive restarts, and the agent can read and drive the same pages
  • Automations run a prompt, script, or shell command on a timer, on a cron schedule, or when an MCP server sends an event, managed with /automation and disabled with "automations": false
New feature
2026.11.17

OpenCode 2.3.2 fixes GPT-6.2 system prompt re-billing every step

OpenCodeRelease

OpenCode v2.3.2 fixes GPT-6.2 prompt caching: the system prompt sent in the Responses instructions field was re-billed as uncached input on every step, and OpenCode now sends it as a leading developer message so it caches from the second step on.

  • GPT-6.2 models no longer re-bill the system prompt as uncached input on every step; OpenCode sends it as a leading developer message on every Responses route.
  • Routes covered include OpenAI (API key and ChatGPT sign-in), GitHub Copilot, Zen, Azure, and OpenRouter.
  • The release notes show a large drop in uncached input per step on GitHub Copilot gpt-6.2-sol.
Critical fixPricing
2026.11.13

OpenCode 2.3.0 runs subagents in the background by default

OpenCodeRelease

OpenCode 2.3.0 makes subagents always run in the background: they return a session ID immediately, report back when idle, and several can run while the parent session keeps working. The TUI now folds each run of tool calls and thoughts into one activity row by default, restorable through session.verbosity. It also adds experimental MCP events, a flag to move timed-out shell commands to the background, Windows local commands through the process daemon, and mutual-TLS client certificates for providers.

  • Subagents run in the background and return their session ID immediately.
  • The TUI folds tool calls and thoughts into one activity row by default.
  • Experimental MCP events and a shell-timeout background flag.
New featureCapabilities
2026.11.10

OpenCode 2.2.7 adds Copilot Auto and unread markers

OpenCodeRelease

OpenCode 2.2.7 lets you pick GitHub Copilot Auto in the model picker, so Copilot's router chooses a model per session at the Auto discount and falls back to the account default if routing fails. It adds side-panel tab shortcuts, marking sessions unread, a negative read offset with close-name suggestions, and exit codes on shell results. Breaking changes include removing ImageResponse.image from @opencode/ai and SDK endpoints that no longer wait for plugins to load.

  • Copilot Auto is selectable and billed at the Auto discount.
  • read accepts negative offsets and suggests close file names.
  • Some SDK endpoints no longer wait for plugins; listen for *.updated events.
New featureCapabilitiesCompatibility
2026.11.06

OpenCode 2.2.6 adds MCP connection pooling and worktree runs

OpenCodeRelease

OpenCode 2.2.6 adds opt-in MCP connection pooling so projects with the same setup share one connection, GUI plugin themes and code-block slots, and a mobile composer dock above the keyboard. opencode run -w starts a session in a new git worktree (with --worktree=<name>), and --archived keeps scripted and CI sessions out of inboxes and session lists.

  • MCP pooling reduces duplicate processes and speeds startup.
  • opencode run -w uses a new git worktree; --archived hides scripted and CI sessions.
  • GUI plugin themes/code-block slots and a mobile composer dock.
New featureCapabilities
2026.10.30

OpenCode 2.2.4 makes desktop terminals persist with sessions

OpenCodeRelease

OpenCode 2.2.4 makes Desktop terminals belong to the session, survive server restarts with their scrollback and stay synchronized with the TUI and other windows; renamed terminals keep their names. Experimental artifacts let agents publish, update and serve HTML or static files through a built-in local provider or plugin storage. It also adds guided Claude Agent setup and a fast base-branch picker for worktrees.

  • Desktop terminals persist with the session across restarts.
  • Experimental artifacts publish and serve HTML or static files.
  • Guided Claude Agent setup installs, signs in and verifies the connection.
New featureCompatibility
2026.10.28

OpenCode 2.2.1 adds /goal loops and image generation

OpenCodeRelease

OpenCode 2.2.1 adds /goal, which keeps a session working until a reviewer confirms the objective is met, with pause, resume and clear controls. An experimental image_generate tool can create or edit images, Desktop adds live output for background shells and a redesigned model picker, and @opencode/ai removes the fal, Black Forest Labs, Replicate and Stability providers plus several legacy entry points.

  • /goal keeps working until a reviewer confirms completion.
  • Experimental image_generate can create or edit images.
  • Desktop shows and stops background shells; the model picker is redesigned.
New featureCompatibility
2026.10.27

OpenCode 2.2.0 adds desktop plugins and keyed session instructions

OpenCodeRelease

OpenCode 2.2.0 introduces experimental creation, installation and sharing of Desktop plugins and a refreshed desktop experience. Plugins can attach keyed session instructions that survive compaction and reverts without editing the system prompt or busting the prompt cache, and prompt cache TTLs become configurable per provider and model. Breaking changes include the @opencode/ai root moving to the Promise API, removal of the GitHub Action, and OpenTUI 0.7 for TUI plugins.

  • Experimental Desktop plugins can be created, installed and shared.
  • Keyed session instructions survive compaction and reverts without an extra model turn.
  • The @opencode/ai root is now the Promise API and the GitHub Action is removed.
New featureCompatibility
2026.10.22

OpenCode 1.19.4 upgrades Bun for network and TLS security fixes

OpenCodeRelease

Upgrades bundled Bun to 1.4.4 with security fixes for Brotli, TLS, HTTP/1.1, HTTP/2, HTTP/3, WebSocket and fetch, plus updated root certificates.

  • Updates root certificates to NSS 3.131.1.
Critical fix
2026.10.16

OpenCode 1.19.2/1.19.3: 1.x installs are no longer offered 2.x updates; reasoning options generate model variants

OpenCodeRelease

OpenCode 1.x now stays on the 1.x release line: update checks use only the npm opencode-ai latest version, so 1.x installs are never offered a 2.x build as a regular update; upgrading to OpenCode 2 remains an explicit choice through the 2.0 offer in /update or opencode upgrade --major, and the install script refuses to install 2.x. From 1.19.3, configuring a model’s reasoning options generates reasoning variants that replace catalog variants while preserving configured overrides.

  • 1.x installs are never offered a 2.x build as a regular update; Homebrew Core installs skip 1.x updates (they now track OpenCode 2), and tap and Chocolatey availability is checked before offering an update.
  • Fixes upgrades for yarn-managed installs; configuring model reasoning options generates reasoning variants that replace catalog variants while preserving configured overrides.
CompatibilityNew feature
2026.10.15

OpenCode 1.19.1 discontinues session sharing

OpenCodeRelease

OpenCode 1.19.1 explicitly discontinues session sharing. Existing share links, sharing commands and session imports from share URLs are no longer available.

  • This is a specific feature removal, without assuming deletion of local sessions or other import methods.
AvailabilityCompatibility
2026.10.10

OpenCode 1.19.0: OpenAI Ultrafast and major-version upgrades

OpenCodeRelease

OpenCode 1.19.0 allows the OpenAI ultrafast service tier and adds command entry points for upgrading to OpenCode 2, alongside a PTY connection-validation fix.

  • Use opencode upgrade --major to upgrade to OpenCode 2.
  • TUI /update installs updates or upgrades to OpenCode 2; updates are no longer installed automatically.
  • Connection origins and tickets are validated before checking whether a PTY exists.
CompatibilityNew featureCritical fix
2026.10.06
2026.09.30

OpenCode 1.18.34: fixes for macOS binary execution

OpenCodeRelease

OpenCode adjusts macOS binary signing to improve the reliability of locally compiled binaries on macOS 27 and later.

  • Locally compiled macOS binaries are re-signed; official CLI releases use Developer ID signing.
  • Model requests include namespaced session and parent-session identity headers.
CompatibilityCritical fix