Changelog
OpenCode ships updates frequently. This page is a curated summary; for the authoritative list of every tag, binary, and signed asset, see the OpenCode GitHub releases.
Current release
- Version: v2.4.5
- Released: 2026-12-04
- Also released (V1 maintenance line): v1.19.6 on 2026-11-17 — OpenCode 1 can now offer the upgrade to OpenCode 2.0: it downloads OpenCode 2 in the background and installs it only when you choose (Restart to upgrade, Upgrade on quit, or Later), keeping your sessions, projects, and settings. Plugins made for OpenCode 1 need an update. See the release notes.
- Highlights: MCP servers survive dropped connections — tools stay available and reconnect on the next call, and new sessions start with each server’s saved tool list instead of waiting for it to connect (v2.4.5); the new Question UI in Desktop is on by default — answer with a click, a number key or by typing your own answer, with Markdown in the question and answers checked before they’re sent (v2.4.5); Run now runs an active timer automation in Desktop right away — it counts as a normal run, and its schedule doesn’t move (v2.4.5); with no default model configured,
opencode runwithout-m, ACP and API clients that don’t name a model now use the model of your most recent session (v2.4.5); see the release notes for the full set of changes.
Recent themes
The following themes summarise changes visible to users of the CLI, TUI, Web, Desktop, and SDK. Refer to the linked release notes for the per-tag detail.
- Performance and stability — compaction now keeps complete recent turns with clearer summaries for smaller models (v1.18.17); automatic session retries are capped with jitter to prevent retry storms (v1.18.17); transient provider and network errors are retried instead of failing (v1.18.14); responses continue when a model reports an unknown finish reason (v1.18.21); message chronology stays correct on import or legacy IDs (v1.18.15); Claude 5 sessions tolerate stale thinking blocks instead of failing after prompt or tool changes (v1.18.26); provider header and streamed chunk timeouts default to five minutes so slow model startups fail less often (v1.18.27); Anthropic thinking block binding is limited to Claude 5.1+ models so older deployments do not reject requests, with a config opt-out to keep the provider default (v1.18.27); Bedrock DeepSeek model IDs — including ARN-based IDs — are preserved so they resolve correctly (v1.18.30); the Azure and OpenAI provider SDKs were updated to pick up compatibility fixes (v1.18.30); ACP session model, effort, mode, and reasoning chunk boundaries are restored when loading, resuming, or forking sessions (v1.18.31); Bedrock image attachments are only hoisted for Claude, Nova, and Llama 4 models (v1.18.32); Together AI streaming usage reporting is fixed (v1.18.32); Gemini thinking defaults and effort options now match the supported controls across model generations (v1.18.33); macOS CLI release binaries are signed with a Developer ID and locally compiled binaries are re-signed so they run reliably on macOS 27+ (v1.18.34); xAI tool results now include supported images while unsupported image formats are skipped (v1.18.35); the OpenAI
ultrafastservice tier is now allowed (v1.19.0); PTY connection origins and tickets are validated before checking whether a PTY exists (v1.19.0); the bundled Bun runtime is upgraded to 1.4.4, which includes security fixes for Brotli, TLS, HTTP/1.1, HTTP/2, HTTP/3, WebSocket, andfetch, and updates root certificates to NSS 3.131.1 (v1.19.4); prompt cache TTLs are configurable per provider/model (v2.2.0); session compaction is sized from the provider’s reported token count to preserve usable context (v2.2.0); throttled requests are retried instead of being misreported as context overflows (v2.2.0); more context headroom is preserved when fitting tool output into the context window (v2.2.1); provider throttling is retried correctly instead of being reported as context overflow (v2.2.1); streaming replies and long conversations do much less rendering work in Desktop (v2.2.3); MCP servers that send stdio messages larger than 10 MiB no longer get disconnected, and large messages are read much faster (v2.2.5); when the input limit is larger than the model’s context window, compaction caps its prompt at the model’s context window, and LiteLLM context window errors trigger compaction instead of stopping the session (v2.2.5); reasoning is no longer turned into plain text when switching models or resuming an interrupted response, which caused request errors on some providers (v2.2.5); calls to a tool namedbashrun asshellwith the same permissions instead of failing, while a plugin tool actually namedbashstill takes precedence (v2.2.5);compaction.bufferaccepts a percentage of the model’s context window, such as"20%", so one setting fits models with small and large windows (v2.2.5); opt-in MCP connection sharing throughpool: trueshares one connection across projects with the same setup, so you run fewer processes and start faster (v2.2.6); file reads and media from the server API are served as sandboxed downloads, and cross-site browser navigations and requests from disallowed origins to/api/*are refused, so a file in your project cannot run scripts on the server’s origin (v2.2.6); remote MCP servers that rotate refresh tokens no longer sign you out when several clients refresh at once or the token endpoint fails for a moment (v2.2.7); as a session nears automatic compaction, the summary is now written in the background, so your next prompt doesn’t pause for it — background compaction is on by default, turn it off withcompaction.background: false, and theexperimental.background_compactionsetting is removed (v2.3.1); OpenCode now sends the system prompt as a leading developer message on every Responses route, so it is cached from the second step on instead of being re-billed as uncached input on every step, and on GitHub Copilotgpt-6.2-sol, uncached input per step dropped from about 14,000 tokens to 3 (v2.3.2).; assistant messages save again on the older SQLite version included with macOS 12, which does not support the JSON operator used in v2.4.0 (v2.4.1); request bodies sent to OpenCode endpoints are now gzip-compressed (v2.4.3); assistant message token counts stay accurate to context size across Anthropic fallback and compaction turns while preserving billed cost accuracy (v2.4.4); archived sessions are no longer auto-unarchived when sending prompts, commands, skills, or shell calls (v2.4.4); MCP servers survive dropped connections: tools stay listed, the next call reconnects, failed first starts retry, and saved tool listings let new sessions start without waiting for slow servers; a server that’s gone (a missing command, or a URL that answers 404 or 410) is dropped instead of retried, and themcp_resilienceflag is removed (v2.4.5); Anthropic-compatible endpoints that stream thinking without a signature (GLM, DeepSeek and others) keep their thinking across turns — if an endpoint rejects it, OpenCode retries once without it, and the newcompatibility.requireSignaturesetting forces either behavior (v2.4.5); OpenAI-compatible providers without abaseURLreport a configuration error for image, embedding and decision models instead of sending your key to another host (v2.4.5) - Provider authentication — Azure providers sign in with Microsoft Entra ID through the Azure CLI instead of requiring an API key (v1.18.24, fixed in v1.18.25), and Azure CLI sign-in now asks for the resource name directly instead of querying Azure management APIs (v1.18.26); xAI login simplified to a single device-code flow that works headless (v1.18.14); GitHub Copilot requests now send the session ID as the interaction header to improve request tracking across a session (v1.18.28); Codex OAuth model filtering recognizes integer GPT versions like
gpt-6(v1.18.29); the TUI shows remote config authentication errors during startup and exits with a failure status (v1.18.31); namespaced session and parent-session identity headers are sent with model requests (v1.18.34); the built-in Claude Agent provider brings Claude Code logins into OpenCode — install Claude Code, runclaude auth login, and select Claude Agent in/connect, withOPENCODE_CLAUDE_PATHoverriding the Claude executable (v2.2.3); the provider picker adds guided Claude Agent setup — copyclaude auth login, install Claude Code, and verify the connection before continuing to model selection (v2.2.4). - Cloudflare AI Gateway — native OpenAI and Anthropic passthroughs for gateway models (v1.18.19); routing fixes for third-party providers and Anthropic dashed model IDs (v1.18.23); Cloudflare AI Gateway models now honor provider response and stream timeouts (v1.18.33).
- Stats for agents — canonical redirects and JSON and Markdown data formats for agent-readable stats (v1.18.35).
- Config compatibility — V1 reads supported V2 config fields so mixed setups keep working (v1.18.24); unknown top-level config fields are ignored instead of failing parsing (v1.18.16).
- Updates and upgrades — the upgrade path to OpenCode 2 via
opencode upgrade --major(v1.19.0); TUI/updateinstalls OpenCode updates or upgrades to OpenCode 2, and updates are no longer installed automatically (v1.19.0); OpenCode 1 stays on the 1.x release line — update checks use only the npmopencode-ailatest version, so 1.x installs are never offered a 2.x build as a regular update (v1.19.2); yarn-managed upgrades are fixed, 1.x updates are skipped for Homebrew Core installs (which now track OpenCode 2), tap and Chocolatey availability is checked before an update is offered, and the install script refuses to install 2.x versions (v1.19.2). - Agent capabilities — the
/goalcommand lets the session continue until a reviewer confirms the objective is met, with/goal pause,/goal resume, and/goal clearto control it (v2.2.1); opt-in scheduled prompts are added through/schedule, agent tools, andexperimental.schedules(v2.2.1); the opt-inimage_generatetool is enabled viaexperimental.image_generateso agents can create or edit images, with an optional default model (v2.2.1); plugins get the experimentalexperimental.idleSession hook so they can continue work before a session goes idle (v2.2.1);experimental_image_generateis enabled by default when an image-capable provider is connected (v2.2.2); experimental artifacts let agents publish, update, and serve HTML or static artifacts when"experimental": { "artifacts": true }is enabled inopencode.json(v2.2.4); enabled schedules run underopencode serve, with multiple server processes coordinated so a schedule fires only once (v2.2.4);opencode run --worktree(-w) starts the session in a new git worktree, and--worktree=<name>chooses the worktree name (v2.2.6);opencode run --archivedcreates the session already archived, so scripted and CI runs stay out of the inbox, home, and session lists (v2.2.6); subagents now always run in the background, return their session ID immediately, and report results to their parent whenever they become idle, so you can keep working in the parent session while multiple subagents run concurrently (v2.3.0); a shell command still running when its timeout expires now moves to the background instead of being killed, so long builds and test runs finish and report back — in every build, theshell_timeout_backgroundflag is gone but configs that still set it keep loading, and a foregroundtimeout: 0now uses the default 120 second timeout instead of waiting until the command exits (v2.3.1); experimental schedules are now automations, behind theautomationsflag with the oldschedulesflag still working — an automation runs on a time, an interval, a cron or a pushed MCP event, and either sends a prompt (to the creating session, another session or a new subagent) or runs a Code Mode program that decides whether to send one (v2.3.1); active or paused plain prompt schedules carry over, while schedules with a condition or run limit, and finished ones, are dropped (v2.3.1).; automations run a prompt, a script or a shell command on a timer, on a cron schedule or when an MCP server sends an event, managed with/automationand turned off with"automations": false— a shell action asks for approval once, when it’s created, and records each run’s exit code and output (v2.4.0); automations keep running after a failed run, with the failed run recorded and the next one running on schedule (v2.4.2); when a connected provider has a video model, the agent can make videos withgenerate_video, which keeps working while the video renders and saves the files into your workspace when they’re ready (v2.4.0); the image tool is renamed togenerate_image, and from v2.4.2generate_imageandgenerate_videorun inside Code Mode so their definitions no longer add about 700 tokens to every request (v2.4.0); MCP skills improvements are added, including per-version approval prompts when loading a skill from an MCP server (v2.4.3); versioned MCP skills run without asking by default, and attached MCP clients are included in MCP instructions (v2.4.4); with no default model configured,opencode runwithout-m, ACP and API clients that don’t name a model now use the model of your most recent session, and a session keeps the model it last ran on (v2.4.5); an active timer automation in Desktop can be run right away with Run now next to Pause — it counts as a normal run, and its schedule doesn’t move (v2.4.5) - Plugins and SDK — plugins can attach and update keyed session instructions with
ctx.session.instructions.entry.put/list/removeinstead of editing the system prompt and busting the prompt cache; the entries survive compaction and reverts and don’t start an extra model turn (v2.2.0); experimental image and decision generation APIs are added to plugins and the SDK (v2.2.0); the@opencode/aipackage root now exports the Promise API with the Effect API moved to@opencode/ai/effect, and@opencode/ai/promiseis removed (v2.2.0);@opencode/pluginnow requires@opentui/coreand@opentui/solid0.7.0, and plugins that depend on OpenTUI 0.6 fail to install until they upgrade (v2.2.0); the SDK adds GUI plugin APIs for toasts, dialogs, notifications, tabs, composer controls, and custom UI (v2.2.0);@opencode/airemoves the fal, Black Forest Labs, Replicate, and Stability providers plus five legacy entry points and renames each provider’sconfigure()input type toConfig, while the CLI, Desktop, and HTTP API are unchanged (v2.2.1); experimental generated-client methods are grouped underclient.experimentalwith previous locations remaining as deprecated aliases until the next minor release, andclient.experimental.schedule.{create,list,get,pause,resume,delete}is added for managing scheduled prompts (v2.2.1);@opencode/pluginnow requires@opentui/coreand@opentui/solid0.8.0 or later (v2.2.3); the newmcp.use,skill.use, andplugin.usemanaged-policy actions control MCP servers, skills, and plugins, and a bareintegration.userule no longer applies to them (v2.2.3); the SDK addsclient.experimental.artifacts.providers,list,create,get,update,delete, andview, and plugins register artifact providers throughctx.experimental.artifact.transform(...)(v2.2.4);@opencode/airemovesImageResponse.image— readresponse.images[0]instead ofresponse.image; this affects code that imports@opencode/aidirectly (v2.2.7); on a Location that is still loading plugins,agent.listreturns the agents loaded so far, andintegration.list,usage.limits,vcs.init,rpc.callandartifact.*no longer wait up to 5 seconds, and entries and actions that a plugin provides appear when it finishes loading, so refresh on the matching*.updatedevent (v2.2.7); experimental automation endpoints replace the schedule endpoints:/api/experimental/automationandclient.experimental.automation.*(create,list,get,pause,resume,delete) are added, and/api/experimental/scheduleandclient.experimental.schedule.*are removed (v2.3.1); config addscompaction.background, whileexperimental.background_compactionand theshell_timeout_backgroundflag are removed (v2.3.1).; plugins using thesession.http.requesthook can setevent.responseto answer model HTTP requests directly (v2.4.4); the shell result fieldoutputPathis renamed tofullOutputPath, and saved shell output is no longer deleted when old commands are evicted (v2.4.4); server plugins can list, create, read, answer and cancel session forms throughsession.form(v2.4.5); experimental push callbacks accept any https relay, and the SDK’sexperimental.push.relaysoption andOPENCODE_EXPERIMENTAL_PUSH_RELAYSare removed (v2.4.5) - Desktop — right-to-left layout fixes across tabs, drawers, and titlebar (v1.18.13); archived sessions drop from Home immediately (v1.18.24); project picker and file-search UX fixes (v1.18.16, v1.18.21); OpenCode account device authentication uses the desktop client ID (v1.18.28); experimental Desktop plugins can be created, installed and shared, and are managed from Settings › Extensions › Plugins (v2.2.0); the Todo tool is restored via opt-in, with todowrite tasks shown above the composer (v2.2.0); Focus and Pro interface layouts are selectable in Settings, and you can rewind or fork from any message (v2.2.0); the redesigned searchable model picker is now the default in Desktop, searching favorites, recent models, providers, and variants, with dedicated Favorites and Recent sections and keyboard-accessible provider controls (v2.2.1); selecting a background shell from the activity pill shows its live output and a Stop action (v2.2.1); Desktop terminals now belong to the session, survive server restarts with their scrollback, and stay synchronized with the TUI and other windows (v2.2.4); timeline quotes, terminal quotes, and browser annotations share a compact optional-comment editor (v2.2.2); Choose base branch is added to the command palette and shortcuts, bound to
⌘⌥.on macOS orCtrl+Alt+.on Windows and Linux (v2.2.4); worktree and shell mode shortcuts are added —⌘⌥Oon macOS orCtrl+Alt+Oon Windows and Linux chooses a worktree,⌘⌥BorCtrl+Alt+Bchooses its base branch, and⌘⇧XorCtrl+Shift+Xtoggles shell mode in the composer; the shortcuts are shown in tooltips and the worktree path can be selected to copy the full directory (v2.2.5); holding⌘orCtrlin the quote popup turns its checkmark into send, and⌘EnterorCtrl+Entersends just that quote and comment while leaving the rest of the composer untouched (v2.2.5); flat input surfaces and a compact input size are added (v2.2.5); the connect menu no longer lists MCP servers (v2.2.5); side panel tab shortcuts are added — right-click a side panel tab to Close tabs to the right,⌘Wcloses side panel tabs wherever focus is, the new Close session tab command (⌥⌘WorCtrl+Alt+W) always closes the session tab, and⌘⇧Treopens the last closed side panel or session tab where it was (v2.2.7); Mark as read and Mark as unread are added to the menus for tabs, Home rows, project rows and inbox cards, and Rename to inbox cards — choose Mark as unread to keep its dot until you next visit (v2.2.7); Jump to message is added to the command palette — open it or pressCmd+Alt+G(Ctrl+Alt+Gon Windows and Linux) to search prompts across the current session and jump directly to one, including prompts not yet loaded in the timeline (v2.3.0); you can check for and install plugin package updates from Settings › Extensions — click Check for updates to look for new versions, then click Update on any plugin that has one (v2.3.1); selecting code in diff and file viewers now just selects it, so you can copy it, and an Add comment toolbar appears beside the selection, while line numbers and the gutter+still start a comment directly (v2.3.1).; the desktop app gains a built-in browser that keeps you signed in: import sign-ins and browsing history from Chrome, Edge, Firefox or Safari, add extensions from Chromium browsers or the Chrome and Edge stores, and the agent can read and drive the same signed-in pages without you switching apps (v2.4.0); on Windows, the taskbar button shows session progress, counts sessions that need you and flashes when a permission or question is waiting (v2.4.0); the Desktop Automations view ships to all builds in the sidebar, titlebar, and Home — view each automation’s schedule or event trigger, folder, creator, and target session, and pause, resume, or delete automations directly (v2.4.3); Desktop adds 11 new built-in themes (Modus, Alabaster, VS Code, Cyberdream, Poimandres, Oxocarbon, Sakura, Espresso, Witch Hazel, E-Ink, and Dune) and calibrates all 35 existing non-default themes for WCAG 2.2 contrast and elevation (v2.4.3); code blocks and the built-in terminal in Desktop now use OpenMono with bundled Nerd Font icons by default, and saved font preferences are unchanged (v2.4.3); a first-quit notice explains that OpenCode continues running in the background for active sessions, terminals, and MCP servers, with a Keep running in the background toggle under Settings › General (v2.4.3);opencode://open-projectandopencode://new-sessionlinks now ask for confirmation (including a preview of any pre-filled prompt) before opening a folder and reject relative paths, network shares, and control or bidirectional characters (v2.4.3); Settings pop out into their own window with live cross-window sync, and themes are browsed in a searchable popover with 5-color swatches and live preview (v2.4.4); pasting a session ID into the Command Palette jumps straight to any session across servers with instant session-ID lookup, and sessions open directly viaopencode://session/<id>deep links (v2.4.4); the composer model trigger gains usage badges, the model picker gains a dedicated Free section, and Desktop adds an OpenCode account switcher, a Go usage meter, and a sign-in-first OpenCode connect flow (v2.4.4); the new Question UI in Desktop is on by default — answer with a click, a number key or by typing your own answer, with Markdown in the question and answers checked before they’re sent (v2.4.5); the model picker and provider settings show each OpenCode workspace provider under the name Console sends, in a flat list (v2.4.5); an automation can be run now from the automations list, the pairing address can be edited when pairing a device, and hovering a response’s duration shows when it was sent (v2.4.5); a setting turns off automatic update checks, and smooth scrolling is turned on by default on Linux (v2.4.5); screen readers can use composer suggestions, and Korean translations are corrected and their terms unified (v2.4.5) - TUI — transcript verbosity now defaults to
low, which summarizes each run of tools and thoughts into one collapsible activity row, and asession.verbosityyou already set is kept; to see every step again, set Verbosity tomediumorhighin settings, or setsession.verbosityin your TUI config (v2.3.0).; the TUI’s new designs are on by default and the theme namedopencodeis the new theme — the previous default is available asopencode-classic,opencode2keeps working as an alias ofopencode, and the previous designs stay available by turning off New designs in the Experiments dialog (v2.4.0); if the composer is empty, stopping a response with Esc before the model has written anything or called a tool removes your message and puts it back in the composer, images included, so you can edit it and send again (v2.4.2); the TUI adds Find in session behind the Find in session experiment (experimental["session-find"]: true) — press<leader>f,super+f, or run/findto search loaded messages incrementally (v2.4.3); session navigation by ID is added in the Command Palette and Session List (v2.4.4); textarea keybindings reload live when config changes, without restarting the TUI (v2.4.4);opencodeandopencode miniaccept-pas a short form of--prompt,opencode apistreams responses as they arrive and stops cleanly when piped tohead, Mermaid diagrams fit the width of the markdown they’re in, and Markdown math renders in replies —$…$and\(…\)inline,$$…$$and\[…\]as display math (plugins can supply the inline renderer withcontext.markdown.registerInlineMathRenderer) (v2.4.5) - Removed — outdated OpenCode Go first-month discount messaging and pricing (v1.18.22); see the Go page for current pricing; session sharing is discontinued — existing share links and session-sharing commands are no longer available, and importing sessions from share URLs is unsupported (v1.19.1); the OpenCode GitHub Action is no longer published — remove it from your workflows (v2.2.0).
- Provider coverage — ongoing additions through Models.dev, including refreshed model aliases; the Astra system prompt was added for GPT-6 models (v1.18.30); reasoning effort variants were added for supported GitLab GPT and Claude models (v1.18.30); summarized adaptive thinking is requested for GitHub Copilot models (v1.18.31); Grok 4.7 was added to Zen and Go (v1.18.32); DeepSeek V4.1 Flash documentation was added to Zen (v1.18.32); model reasoning options can be configured to generate reasoning variants, replacing catalog variants while your configured variant overrides are preserved (v1.19.3); GPT-6.1 Terra and GPT-6.1 Terra Fast are added to Sign in with ChatGPT (v2.2.0); GPT Image 2 is offered after Codex sign-in, and MiniMax and Meta Muse image generation support is added (v2.2.1); GitHub Copilot Auto is added — pick Auto in the model picker when your Copilot account has an Auto pool, and Copilot’s router chooses the model for each session at the Auto discount (v2.2.7); GPT 6.2 Sol and GPT 6.2 Astra, plus their fast variants, now show up in the model picker when you sign in with ChatGPT (v2.3.1); consult the Models overview for the supported list.; GPT-6.2 Sol and Astra, and the
gpt-latestaliases, use a system prompt written for GPT-6.2 (v2.4.2); after you connect OpenCode, the model picker lists OpenCode Go first (v2.4.2); each model’s recommended API frommodels.devis enabled by default and therecommended_apiflag is removed (v2.4.4); OpenRouter models are filtered using account preferences, and Sign in with ChatGPT models and speeds load from the account’s model list (v2.4.4) - Desktop app — the desktop client remains in beta; check the Desktop app page and the official download page for current platform support.
- Documentation — clearer upgrade notes, refreshed model and Zen documentation, and tighter multi-language coverage.
Breaking changes
Review the upgrade guide before bumping major or minor versions.
- Configuration key renames when behaviour is replaced rather than extended. Migration hints appear in the affected page, for example Permissions.
- Deprecated provider models are removed after their announced deprecation date. See the Models overview for the current deprecation list.
Deprecations
- Long-standing deprecation tables in the documentation (e.g. Models overview, Zen models) list each model, its status, and the announced date. Replace any usage with the provider’s current model alias or a recommended alternative.
- The desktop app is still in beta; production deployments should track the official download page and the GitHub release feed.
How to upgrade
- Read the upgrade guide for the version you are coming from.
- Skim the relevant release notes between your current version and the target.
- Run
opencode upgrade(when available) or follow the installation instructions for your platform. - Launch
opencode, watch for configuration warnings, and run your usual smoke-test commands.