< cd ..

OpenCode

~/sst/opencode

Minimal, fast AI coding CLI with a beautiful TUI. Multi-provider support, MCP servers, and headless mode for scripting.

latest

v1.18.23

total

30

stable

26

pre

4

first tracked

Jul 13, 2026

updated

6h ago

last checked: 6h ago Tier 1 patch
#ai #cli #minimal
●●● clwatch

Check if your agent is current:

$ clwatch diff opencode
$ clwatch refresh opencode

learn more about clwatch →

●●● quick start // get running in 60s

install

$ npm install -g opencode-ai

first command

$ opencode

/changelog

v1.18.23 [Aug 25, 2026] details → github →

Core

Bugfixes

  • Fixed Cloudflare AI Gateway routing for third-party providers so non-Workers models work through the gateway's REST API. (@superhighfives)
  • Fixed Anthropic models through Cloudflare AI Gateway by converting dotted model IDs like claude-haiku-4.5 to the dashed slug Anthropic expects. (@superhighfives)
  • Fixed parent session IDs being sent in request headers for session-aware providers.

TUI

Bugfixes

  • Fixed GitHub auth for immutable OIDC subject tokens.
Thank you to 1 community contributor:
  • @superhighfives:
  • fix(provider): send Anthropic's dashed native slug through the AI Gateway (#44281)
  • fix(provider): route non-native Cloudflare AI Gateway providers via the REST API (#44828)
v1.18.22 BREAKING [Aug 24, 2026] details → github →

Core

Bugfixes

  • Removed outdated OpenCode Go first-month discount messaging and pricing.
  • Fixed OpenCode device login links when servers return relative verification URLs or use a base path.
  • Fixed textVerbosity being sent to OpenAI-compatible providers that do not support it. (@joelstucki-taulia)
  • Updated the Amazon Bedrock provider for compatibility fixes.

Desktop

Bugfixes

  • Keep model provider headers visible while scrolling the model picker.
Thank you to 1 community contributor:
  • @joelstucki-taulia:
  • fix(provider): guard textVerbosity injection for @ai-sdk/openai-compatible providers (#43915)
v1.18.21 [Aug 21, 2026] details → github →

Core

Bugfixes

  • Continue responses when a model reports an unknown finish reason instead of stopping early
  • Route Vertex AI eu and us multi-region Gemini requests through REP endpoints

Desktop

Bugfixes

  • Keep file search results visible while the next search is loading
  • Register the archive session command in both desktop layouts (@NathanTCode)
Thank you to 1 community contributor:
  • @NathanTCode:
  • fix(app): register archive session command in both layouts (#41741)
v1.18.20 [Aug 21, 2026] details → github →

Core

Bugfixes

  • Surface failed subagent tool calls with a resumable task_id.
  • Retry provider responses that end with finishreason: networkerror.
  • Retry more network error variants, including network-error and network_error.
  • Surface resumable subagent failures instead of returning an empty result.
  • Preserve Cerebras maxcompletiontokens without applying an extra output cap.
  • Answer permission requests triggered by subagents during opencode run.
  • Retry xAI capacity and temporary unavailability stream errors.
v1.18.19 BREAKING [Aug 20, 2026] details → github →

Core

Improvements

  • Added native OpenAI and Anthropic passthroughs for Cloudflare AI Gateway models.
  • Matched Codex rate limits more closely to ChatGPT subscription limits. (@GameOn223)

Bugfixes

  • Removed built-in Qwen sampling defaults that could send unsupported settings.
  • Properly show authenticated providers in /connect. (@OpeOginni)
  • Ignore malformed model pricing instead of breaking usage cost calculation.
  • Fall back when OpenAI websocket requests exceed message size limits.
  • Forward ChatGPT workspace compute residency to Codex requests.
  • Updated the default Console URL used by account connection flows.
  • Enabled web search when using the OpenCode Go provider.
  • Preserved compatibility with existing v1 databases.

Desktop

Bugfixes

  • Kept saved server details editable in the server dialog.
Thank you to 4 community contributors:
  • @TechyAditya:
  • fix(skills): Update global config path in documentation (#42337)
  • @GameOn223:
  • tweak: match codex limits for openai models exactly when using chatgpt subscription (#39082)
  • @OpeOginni:
  • fix(opencode): properly show authed providers on /connect command (#39915)
  • @bhuvan2134686:
  • docs: add SCX.ai to the providers list (#42520)
v1.18.18 [Aug 13, 2026] details → github →

Core

Bugfixes

  • Select the Kimi system prompt correctly for official Moonshot and Kimi providers
  • Fix xhigh reasoning effort for xai models
v1.18.17 [Aug 12, 2026] details → github →

Core

Bugfixes

  • Made session compaction keep complete recent turns and produce clearer summaries for smaller models.
  • Added MERGE Gateway reasoning variants so those model options work correctly. (@MatthewFeroz)
  • Capped automatic session retries and added jitter to reduce repeated retry storms.
  • Enabled PDF attachments for GitHub Copilot models that advertise PDF vision support. (@stevenao)
  • Applied the correct sampling defaults to DeepSeek V4 Flash on supported providers.
  • Routed all Muse family models to the correct Meta system prompt. (@mreso)

Desktop

Bugfixes

  • Updated Chinese developer terminology to use more widely recognized translations.
  • Used the server's current default model instead of stale local config when choosing the default model.
Thank you to 6 community contributors:
  • @mreso:
  • fix(session): route all Muse family models to the Meta system prompt (#41581)
  • @OpeOginni:
  • fix(ui): correct OC-2 weak icon color (#41504)
  • @peculiarnewbie:
  • feat(console): add go usage endpoint (#16513)
  • @stevenao:
  • fix(opencode): detect Copilot PDF input support (#41522)
  • @MatthewFeroz:
  • fix(provider): add Merge Gateway reasoning variants (#41867)
  • @skyzhao1223:
  • docs: fix broken DigitalOcean and Daytona links (#42048)
  • docs: fix provider display name and PAT typos (#42034)
v1.18.16 [Aug 10, 2026] details → github →

Core

Bugfixes

  • Ignore unknown top-level config fields instead of failing config parsing
  • Register projects opened from Home so they are available to the rest of the app

Desktop

Improvements

  • Open the project menu with a right-click in Home

Bugfixes

  • Fall back to listing and matching local directories when the project picker server does not support search
  • Use 词元 instead of 令牌 for token-related labels in Simplified Chinese (@Speechlessmanbilibili)
  • Keep the macOS app running after the last window closes and reopen a window when the app is activated
Thank you to 1 community contributor:
  • @Speechlessmanbilibili:
  • fix(i18n): use 词元 instead of 令牌 for token in zh locale (#40977)
v1.18.15 [Aug 7, 2026] details → github →

Core

Bugfixes

  • Chronological message ordering now stays correct even when imported or legacy message IDs are out of order.
  • Revert and fork actions now use real message chronology instead of message ID ordering.
  • Truncation cleanup now removes stale files by file timestamp more reliably.
  • Repeated compaction now keeps earlier tool-call history in summaries instead of dropping orphaned results.
  • Blob-based attachments now load correctly in the web UI. (@rexdotsh)

Desktop

Improvements

  • Added much broader locale coverage across the desktop app.
  • Export full session transcripts as JSON from the UI.

Bugfixes

  • Session timelines now respect chronological message boundaries more reliably.
  • Stored messages now stay ordered by creation time.
  • Session lists now sort by persisted activity time more reliably.
  • Language names now stay native in the locale picker.
  • Filled in missing translations across existing locales.
Thank you to 3 community contributors:
  • @rexdotsh:
  • fix(server): allow blob attachments in web UI (#40692)
  • @ayubun:
  • fix(tui): support copying over ssh with set-clipboard on tmux config (#30472)
  • @dangooddd:
  • feat(tui): add cursor style configuration (#32295)
v1.18.14 [Aug 5, 2026] details → github →

Core

Improvements

  • Simplified xAI login to a single device-code flow that works better in headless and remote environments.

Bugfixes

  • Preserved structured mid-stream provider errors so compatible providers can retry failed responses.
  • Retried more transient provider and network errors instead of failing immediately.
  • Counted cache writes in ACP usage totals.
  • Logged remote workspace 5xx response bodies in the host logs to make proxy failures easier to debug. (@jamesmurdza)
  • Stopped sending the host directory path to remote workspaces so prompts resolve from the remote project root. (@jamesmurdza)
  • Waited for queued ACP session updates before ending a turn.
Thank you to 1 community contributor:
  • @jamesmurdza:
  • fix(server): don't forward host directory to remote workspace (#40136)
  • fix(server): log upstream 5xx bodies from proxied workspace requests (#40135)
v1.18.13 [Aug 4, 2026] details → github →

TUI

Bugfixes

  • GitHub pull request reviews now include the pull request number and URL in context.

Desktop

Bugfixes

  • Fixed several right-to-left layout issues across tabs, drawers, resizing, and titlebar interactions.
  • Fixed shared right-to-left UI behavior such as directional icons and drawer placement.
  • Sessions without titles now fall back to generated names instead of appearing blank.
  • Moved markdown parsing off the main thread to keep the app more responsive while rendering messages.

Improvements

  • Localized more desktop UI copy, including native menus, update dialogs, and help content.
  • Added early right-to-left layout support across the app and session views.
  • Added locale-aware plural rules so translated counts and summaries read correctly.
  • Expanded translation coverage and added more supported desktop languages.
Thank you to 1 community contributor:
  • @amypoolside:
  • docs: add Poolside provider setup (#39187)
v1.18.12 [Aug 4, 2026] details → github →

Core

Bugfixes

  • Fixed Azure GPT-5.5+ completion requests failing when reasoning is enabled. (@frederiknsgo)

Desktop

Bugfixes

  • Reduced composer lag when drafts include large pasted images or attachments.
  • Let project search match any known recent project instead of only the first five. (@NumerousJLs)
  • Cleared stale assistant errors from the timeline once the same turn resumes streaming.
  • Skipped legacy config reads against v2 servers to avoid spurious config loading issues. (@resetsix)
Thank you to 4 community contributors:
  • @resetsix:
  • fix(app): skip legacy config reads for v2 (#40211)
  • @NumerousJLs:
  • fix(app): search every known project in the open project dialog (#40202)
  • @MagnumGoYB:
  • docs: remove obsolete vouch system section (#40266)
  • @frederiknsgo:
  • fix: gpt-5.5+ in combination with azure fails with reasoningEffort (#40265)
v1.18.11 [Aug 1, 2026] details → github →

Core

Bugfixes

  • Stopped MCP SSE connections from getting stuck in reconnect loops after server error responses.
  • Fixed provider model configs that use interleaved reasoning fields like reasoning_text or custom field names.

Desktop

Bugfixes

  • Open external links in the system browser instead of inside the app.
  • Fixed stale session tab state in the desktop title bar. (@OpeOginni)
  • Open the legacy directory picker at your home folder when no home path is loaded yet.
  • Prevent the file tree tab from clipping when resized smaller. (@OpeOginni)
  • Fixed debug gutter labels and values misaligning.
Thank you to 2 community contributors:
  • @devennavani:
  • docs: add Modal provider setup (#39710)
  • @OpeOginni:
  • fix(app): prevent file tree tab clipping (#39770)
  • fix(app): prevent stale session tab reads (#39767)
  • fix(app): prevent stale prompt control reads (#39842)
v1.18.10 [Jul 30, 2026] details → github →

Core

  • Discover available Modal models automatically. (@devennavani)

Desktop

Improvements

  • Prevent adding the same attachment more than once.
  • Always show the new session button.
  • Improve toast notifications with better stacking, dismissal, and mobile layout.
  • Refine tab hover, active, and overflow states.

Bugfixes

  • Repair malformed saved tabs so broken tab state no longer persists across launches. (@OpeOginni)
  • Hide the model variant selector until model data finishes loading.
  • Preserve the custom agent picker for existing users.
Thank you to 3 community contributors:
  • @lakshyaag-tavily:
  • docs(ecosystem): add opencode-tavily plugin (#38709)
  • @devennavani:
  • feat: discover Modal models (#39066)
  • @OpeOginni:
  • fix(app): repair malformed persisted tabs (#39645)
v1.18.9 BREAKING [Jul 28, 2026] details → github →

Core

Bugfixes

  • Restored compatibility with legacy MCP SDK clients.

Desktop

Bugfixes

  • Fixed a Solid cleanup crash that could break navigation in the desktop app.
  • Fixed home session loading so the session list can update without suspending the whole page.

Improvements

  • Removed the extra vertical borders from the V2 home projects view.
  • Added an opt-in V2 desktop sidecar backed by the bundled CLI service.
  • Added collapsible model provider sections in V2 settings.
Thank you to 1 community contributor:
  • @roborew:
  • fix(desktop): patch @dnd-kit/solid to preserve core scroll plugins (#38119)
v1.18.8 BREAKING [Jul 28, 2026] details → github →

Core

Improvements

  • Improved compatibility with newer MCP servers and OAuth flows.

Bugfixes

  • Reconnects MCP servers after expired SDK sessions, including concurrent requests.
  • Honors configured MCP OAuth callback ports in mcp debug.
  • Stops sending deprecated sampling defaults to newer Gemini models.

Desktop

Improvements

  • Added a shortcut to open the project selector in new sessions.

Bugfixes

  • Tab keyboard navigation now follows the visible tab order.
  • Opening files now expands Windows folders with trailing separators.
  • Server status uses blue when an integration needs attention.
  • Provider connection state now refreshes immediately after changes.
  • Linux packages now install AppStream metadata. (@develop7)
  • Local desktop runs now use the channel database.
  • Prevents freezes when closing projects from the home view.
  • Prevents the right panel from freezing the session view while loading.
Thank you to 2 community contributors:
  • @OpeOginni:
  • fix(core): correct MCP environment field in built-in skill (#39175)
  • @develop7:
  • fix(desktop): install AppStream metainfo in Linux packages (#36872)
v1.18.7 BREAKING [Jul 27, 2026] details → github →

Desktop

Bugfixes

  • Remove the extra titlebar inset in fullscreen on macOS.
  • Keep command palette entries from reappearing incorrectly when shadowed commands are removed.
  • Add scrolling to the project selector dropdown when the list is long. (@david1gp)
Thank you to 2 community contributors:
  • @ProdigyRahul:
  • fix(ui): keep mutable selects open (#39027)
  • @david1gp:
  • fix(app): add scroll to project selector dropdown (#39016)
v1.18.6 [Jul 27, 2026] details → github →

Core

Bugfixes

  • Fixed branch-specific repository caches so refreshing one reference no longer moves another branch checkout.

Desktop

Improvements

  • Improved compatibility with the newer client API across directory, project, session, and terminal flows.

Bugfixes

  • Fixed legacy MCP state refreshing when opening a V1 workspace.
  • Fixed provider lists not refreshing after connecting a provider or finishing provider OAuth on V1 servers.
v1.18.5 [Jul 24, 2026] details → github →

Core

Bugfixes

  • Improve Claude adaptive thinking handling across more response shapes.
  • Avoid OpenAI Responses phase handling that could break some conversations.
  • Preserve grep symlink paths in search results. (@remixz)
  • Preserve Mistral reasoning history across turns.
  • Stabilize Mistral prompt caching.
  • Use the correct prompt cache keys for each SDK.
  • Fix MiniMax M3 thinking variant selection.

Desktop

Improvements

  • Support the current server terminal transport.
  • Support current-server review data in the desktop app.
  • Update server discovery flows for current servers.
  • Support current-server session actions, including prompts and commands.
  • Render current-server session timelines.
  • Stream current-server events in the desktop app.
  • Detect legacy and current servers so the desktop app can work with both.

Bugfixes

  • Restore optimistic timeline updates while responses are still streaming.
  • Hide legacy-only features when connected to current servers.
  • Preserve inline file mentions when sending prompts to legacy servers.
  • Stop auto-accepting config permissions on current servers.
  • Keep current servers out of the legacy layout.
  • Show plain file contents in file-specific tabs instead of review diffs.
  • Keep the prompt input agent toggle in sync.
  • Keep paginated session timelines in the right order.
  • Restore directory-scoped session status for legacy servers.
  • Reload legacy session progress after hydration.
Thank you to 2 community contributors:
  • @dleopold:
  • fix(app): classify existing web profiles for layout transition (#38117)
  • @remixz:
  • fix(opencode): preserve grep symlink paths (#38581)
pr-38252-videos pre [Jul 22, 2026] details → github →

# PR #38252 verification videos

Before/after verification recordings for PR #38252.

v1.18.4 [Jul 20, 2026] details → github →

Core

Improvements

  • Use adaptive thinking controls for Kimi models on Anthropic-compatible providers, with summarized reasoning output by default. (@chouqin)

Bugfixes

  • Reduce OpenAI provider header timeouts during slow connection setup.
  • Respect provider-defined reasoning options instead of falling back to the wrong reasoning controls.
  • Restore Azure Cognitive Services endpoint support for Azure-hosted models.

Desktop

Improvements

  • Sync the embedded terminal theme with the app theme.
  • Improve the review panel so open file tabs can stay aligned with the current diff view.
  • Rewrite the v2 prompt input for more reliable command, context, shell, attachment, and history interactions.
  • Improve review panel resizing and sticky controls.

Bugfixes

  • Preserve command drafts in the command menu.
  • Avoid session view failures when message parent links are missing.
  • Prevent sending empty prompt text parts.
  • Restore model variant selection accessibility.
  • Show keybind tooltips on prompt input controls. (@ProdigyRahul)
  • Deduplicate repeated file entries in diff summaries.
  • Prevent recovery window handling from touching destroyed windows.
Thank you to 3 community contributors:
  • @jerome-benoit:
  • fix(nix): relax Bun version check for desktop build (#36767)
  • fix(nix): restore desktop integration (#37197)
  • @ProdigyRahul:
  • fix(app): show keybind tooltips on prompt input controls (#37824)
  • @chouqin:
  • feat(opencode): use adaptive thinking effort for kimi family on anthr… (#37696)
pr-37967-screenshots-v2 pre [Jul 20, 2026] details → github →

# PR #37967 final screenshots

Final visual evidence for PR #37967.

pr-37967-screenshots-final pre [Jul 20, 2026] details → github →

# PR #37967 screenshots (final)

Final visual evidence for PR #37967.

pr-37967-screenshots pre [Jul 20, 2026] details → github →

# PR #37967 screenshots

Visual evidence for PR #37967.

v1.18.3 BREAKING [Jul 16, 2026] details → github →

Core

Improvements

  • Added an Up Arrow shortcut to close the subagent picker when the first item is selected.

Desktop

Bugfixes

  • Fixed home page scrolling so sticky headers and the session list behave correctly.
  • Fixed startup readiness so WSL server loading is included before the desktop app reports ready.
  • Removed the inactive help button from the app layout.
  • Fixed custom agent selector visibility when custom agents are available.

Improvements

  • Home page command palette search can now find and open sessions.
v1.18.2 [Jul 15, 2026] details → github →

Core

Bugfixes

  • Stopped subagents from launching nested subagents by default, with a configurable subagent_depth limit when needed.
  • Improved default reasoning depth for Meta models.

Desktop

Improvements

  • Added Mod+N as another shortcut for opening a new tab.

Bugfixes

  • Restored the Help button in release builds.
  • Kept sessions with null archive times visible instead of dropping them from the home list.
  • Hid the drawer close button on Windows where it conflicts with the window chrome.
Thank you to 1 community contributor:
  • @BB-84C:
  • fix(core): tolerate AlreadyExists in FSUtil.ensureDir (#36542)
v1.18.1 [Jul 14, 2026] details → github →

Desktop

Bugfixes

  • Fixed spacing between model provider sections in Settings.
v1.18.0 [Jul 14, 2026] details → github →

Desktop

Improvements

  • Completed the Desktop v2 migration, including upgrade handling for the new layout and first-launch onboarding.
  • Added a setting to switch between the new and old Desktop layouts during the transition period.

Bugfixes

  • Fixed file views using the wrong background in the v2 layout.
  • Fixed connected project picker positioning when its anchor is still loading.
  • Kept permission auto-accept state separate for each server.
  • Fixed a project picker positioning crash.
  • Kept terminal tab rename focused while editing.
  • Enabled remote sessions to auto-accept permissions correctly.
  • Fixed terminal tabs stealing focus when they mount.
  • Loaded more timeline history at once to reduce repeated backfill while scrolling.
  • Resynced the timeline correctly after reconnecting.
  • Preserved the composer caret after request updates.
  • Reduced Home cold-load time substantially.
  • Preserved timeline bottom anchoring more reliably.
  • Clarified status indicator severity.
v1.17.20 BREAKING [Jul 13, 2026] details → github →

Core

Bugfixes

  • Removed an obsolete Codex workaround that could interfere with OpenAI Luna Responses Lite requests.

Improvements

  • Updated Azure AI support for GPT-5.6.
v1.17.19 BREAKING [Jul 13, 2026] details → github →

Core

Bugfixes

  • Supported OpenAI pro reasoning mode.
  • Disabled response storage by default for xAI Responses. (@geraint0923)
  • Added OAuth support for Luna Responses Lite.
  • Switched to another available org after logging out in the console.
  • Used Codex context limits for GPT-5.6 over OAuth. (@nabilfreeman)

TUI

Bugfixes

  • Forwarded CLI environment variables to the TUI worker.

Desktop

Bugfixes

  • Removed interface transition changes that were accidentally shipped to dev.
  • Fixed clipped labels and branch tooltips.
  • Stopped the review panel width from jumping when opening or closing it.
  • Focused the prompt input when starting a new session.
  • Prevented some new-session updates from blocking the UI.
  • Fixed timeline outlines getting clipped.
  • Aligned context token counts with usage totals.
  • Kept the file tree visible while opening files.

Improvements

  • Redesigned attachment cards and file comment chips in the new interface.
  • Updated the review panel with persistent file browsing, better file tabs, and easier open-in-app actions.
  • Restyled the Edit Project modal to match the new interface.
  • Added middle-click to open sessions in a new tab.
  • Added a temporary setting to switch between the old and new interface.
  • Added per-prompt model selection in the composer.
  • Polished the new interface styling across the session view and terminal.
Thank you to 2 community contributors:
  • @nabilfreeman:
  • fix(openai): use codex context limits for gpt-5.6 (#36248)
  • @geraint0923:
  • fix(xai): default store to false for Responses (#36629)