← Package directory
Available on winget

Install OpenCode

OpenCode is an open source agent that helps you write and run code with any AI model. It's available as a terminal-based interface, desktop app, or IDE extension.

Install with winget
winget install --id SST.OpenCodeDesktop
Upgrade
winget upgrade --id SST.OpenCodeDesktop
Uninstall
winget uninstall --id SST.OpenCodeDesktop

About OpenCode

opencode is an AI coding agent. It features: - A responsive, native, themeable terminal UI and desktop app. - Automatically loads the right LSPs, so the LLMs make fewer mistakes. - Have multiple agents working in parallel on the same project. - Create shareable links to any session for reference or to debug. - Log in with Anthropic to use your Claude Pro or Claude Max account. - Supports 75+ LLM providers through Models.dev, including local models.

What's new in 1.15.6

Core Improvements - Added a diff viewer in the TUI for reviewing changes. - Collapsed single-child directories in the diff viewer file tree. - Added shell mode to the run prompt. - Replaced subagent tabs with an on-demand picker in run. - Plugin file load errors no longer break the rest of plugin loading. - Anthropic API-key models now use the native runtime. - The v2 HTTP API now exposes structured public error schemas. Bugfixes - Zed editor context now only activates inside Zed terminals. - The v2 HTTP API now exposes catalog errors. - The v2 HTTP API now exposes request errors. - The v2 OpenAPI spec now preserves endpoint error responses. - opencode login now defaults to https://console.opencode.ai. - Agent and command names now resolve correctly from relative config paths. - Invalid OPENCODE_PERMISSION JSON no longer crashes startup. - Plugin tools with missing args no longer break tool loading. - Restored legacy PgUp and PgDn TUI keybind aliases. - Native runtime now prefers the console provider token for OpenCode models. TUI Improvements - The diff viewer now focuses the first file automatically. Bugfixes - Imported sessions now refresh their directory and relative path fields correctly. (@OpeOginni) Desktop Improvements - Added initial desktop tabs support. - Added a native app menu on Windows. - Added Ukrainian locale support. (@MYMDO) Bugfixes - Custom providers now appear immediately after config updates. (@tianxiaoliang) SDK - Updated opentui dependencies to 0.2.15. Thank you to 4 community contributors: - @MYMDO: - feat(i18n): add Ukrainian (uk) locale support (...

Read release notes

Version history

Version Updated Notes
1.15.6 Core Improvements - Added a diff viewer in the TUI for reviewing changes. - Collapsed single-child directories in the diff viewer file tree. - Added shell mode to the run prompt. - Replaced subagent tabs with an on-deman...
1.15.5 Unknown Core Improvements - Preview the native OpenAI runtime path behind an experimental flag - Add --replay and --replay-limit to show recent history when resuming interactive runs Bugfixes - Fix plugin tools using ask so tool...
1.15.4 Unknown Core Bugfixes - Fixed project-scoped bus events so file watcher and update notifications reach the right instance. - Fixed custom LSP servers not sending refresh events after they initialize. - Hid background subagent ta...
1.15.3 Unknown Core Bugfixes - Reduced wasted work when reading very large files after output truncation. TUI Bugfixes - Fixed async commands losing the active instance context, which could break agent generation and GitHub-driven runs...
1.15.2 Unknown Core Improvements - Reduced unnecessary prompting around shell, task, and todo flows. Bugfixes - Fixed sync events not reaching project-scoped subscribers in injected instances. TUI Improvements - Newly pinned sessions n...
1.15.1 Unknown Core Improvements - Clarified how to recover when the npm package is installed without its native binary. Bugfixes - Avoid duplicate consecutive entries in prompt history. - Show full config validation errors during TUI...
1.15.0 Unknown Core Improvements - Added an Effect-based core event system for more complete event delivery across sessions and integrations. Bugfixes - Ignored invalid exports in custom tool modules instead of failing tool loading. -...
1.14.51 Unknown Core Improvements - Added experimental background subagents so tasks can keep running while you continue working. - Added the required billing origin header for NVIDIA endpoints. (@nv-kasikritc) Bugfixes - Fixed worktree...
1.14.50 Unknown Core Bugfixes - Kept HTTP event streams open after the initial connect event so subscribers continue receiving instance updates. - Returned proper busy errors when a session is already running prompt or shell work. - Let...
1.14.49 Unknown Core Improvements - Added the v2 model and provider listing API. - Added DigitalOcean OAuth and Inference Router support. (@Spherrrical) - Create a global opencode.jsonc automatically when no config exists. - Enable cust...
1.14.48 Unknown Core Improvements - Preserve original image attachments instead of resizing them before sending them to the model
1.14.47 Unknown Core Bugfixes - Restored prompt editing keybindings in the TUI textarea, including aliases like esc and enter - Model changes now persist reliably across session activity - HTTP API schema validation errors now return a...
1.14.46 Unknown Core Improvements - Added a built-in customize-opencode skill so opencode config edits are less likely to break startup. Bugfixes - Fixed numeric HTTP API query parameters in the generated OpenAPI spec and SDK for sessio...
1.14.45 Unknown Core Bugfixes - Provider configs and API responses now accept models marked as active. - Read tool permission rules now match worktree-relative paths, so read allowlists and denylists apply correctly. - Workspace-routed...
1.14.44 Unknown Core Bugfixes - Fixed upgrades failing for existing workspaces when adding the time_used field.
1.14.43 Unknown Core Bugfixes - Keep provider and config API responses working when auth loaders add non-JSON options to providers. - Include tool image attachments in ACP updates and session replays. (@SteffenDE) Thank you to 1 communi...
1.14.42 Unknown Core Improvements - Added HTTP API response compression for large non-streaming responses. - Added the Scout agent for repo research, docs lookup, and dependency-source inspection. - Added workspace sync so adapter-backe...
1.14.41 Unknown Core Bugfixes - Restored formatter output handling so formatting still works when formatters write to stdout or stderr. (@ferdinandyb) Improvements - Warping a session to another workspace can now carry over your uncommi...
1.14.40 Unknown Core Improvements - Support .well-known/opencode configs that point to a separate remote config file. Bugfixes - Preserve assistant text when replaying signed reasoning blocks. (@edevil) - Return consistent not-found err...
1.14.39 Unknown Desktop Bugfixes - Respect HTTP_PROXY and related proxy environment variables in the desktop app. - Return null instead of failing when the desktop app cannot read a stored value.