← Package directory
Available on winget

Install opencode

The AI coding agent built for the terminal.

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

About opencode

opencode is an AI coding agent built for the terminal. It features: - A responsive, native, themeable terminal UI. - 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.17.13

Core Bugfixes - Force reasoning mode for OpenAI-compatible reasoning models so reasoning settings apply reliably on custom deployments - Stop replaying stale GitHub Copilot response item IDs, avoiding follow-up request failures Desktop Bugfixes - Let question prompts be minimized and restored without dismissing them (@arvsrn) - Clean up stale empty and old draft store files to reduce desktop state buildup - Keep pending question requests open while reviewing them, instead of dismissing them accidentally (@eXamadeus) - Keep session page failures scoped to the affected tab instead of breaking the whole app Improvements - Improve markdown and message layout alignment in the v2 session UI (@arvsrn) - Add a searchable v2 model picker and model management flow in the composer (@arvsrn) - Show a hover preview for session tabs with the project, path, branch, and server (@usrnk1) - Streamline WSL server setup with clearer distro checks and install flows (@arvsrn) - Keep desktop tabs scoped to each window so windows restore their own tab sets Thank you to 3 community contributors: - @arvsrn: - feat(app): v2 wsl ui (#34233) - feat(app): composer improvements (#34720) - feat(app): more v2 ui alignment (#34465) - feat(app): minor fixes (#34748) - @eXamadeus: - fix(app): question UI fixes and UX improvements (#34116) - @usrnk1: - feat(desktop): session tab hover preview popover (#34678) - feat(desktop): improve markdown heading spacing in session timeline (#34738)

Read release notes

Version history

Version Updated Notes
1.17.13 Unknown Core Bugfixes - Force reasoning mode for OpenAI-compatible reasoning models so reasoning settings apply reliably on custom deployments - Stop replaying stale GitHub Copilot response item IDs, avoiding follow-up request f...
1.17.12 Unknown Core Bugfixes - Enable adaptive thinking for Claude Sonnet 5. - Prefer MCP content responses over structured output when both are present. - Reconnect MCP servers after OAuth even if the server was disabled. (@MaxAnderso...
1.17.11 Unknown Core Improvements - Add session snapshots and revert controls so you can roll a session back to an earlier message, including file changes. Bugfixes - Always print the MCP OAuth URL so manual sign-in still works when ope...
1.17.10 Unknown Core Improvements - Added MCP server instructions to session context. (@Arcadi4) - Added Opencode-managed provider integration support. - Added MCP resource template listing. - Added MCP resource read tools. - Added a --...
1.17.9 Unknown Core Bugfixes - Honor configured agent step limits by forcing a final text response instead of failing mid-run. - Fix Devstral model detection when provider IDs use different casing. (@Robin1987China) - Pass configured c...
1.17.8 Unknown Core Improvements - Session timelines load much faster and avoid flicker or scroll jumps. Bugfixes - OpenAI-compatible providers now accept MCP tool schemas that previously failed validation. (@jquense) - Cloudflare AI G...
1.17.7 Unknown Core Bugfixes - Plugin client requests now reuse the active server instead of assuming the default local port. - ACP shell tool calls now show the command and working directory from the start. - Plugin-provided shell env...
1.17.6 Unknown Core Bugfixes - Improved MCP server compatibility by declaring OpenCode's supported client capabilities.
1.17.5 Unknown Core Improvements - Added external browser OAuth for the Snowflake Cortex provider (@santigc6) - Improved project copy management and move-session flows in v2 Bugfixes - Recovered expired MCP sessions instead of leaving...
1.17.4 Unknown Core Improvements - Added cwd support for local MCP servers so they can start from a workspace-relative directory. (@Grantmartin2002) - Added connector-based authentication flows and support for stored provider credentia...
1.17.3 Unknown Fixed issue with 1.17.2 desktop crashing
1.17.2 Unknown Core Bugfixes - Recover from expired remote config auth by prompting you to log in again instead of failing to load config (@Ayushlm10) - Let subagents use their own configured permissions again Desktop Bugfixes - Restor...
1.17.1 Unknown Core Improvements - References can include usage descriptions for agents, show up in the new docs, and be hidden from @ autocomplete when needed. Bugfixes - Deprecated reference config entries continue to load under the...
1.17.0 Unknown Core Improvements - Faster file search across large projects with the new fff-backed search tools. (@dmtrKovalenko) - Added X-Session-Id headers for proxy setups that need sticky routing. (@songchaow) - Added Cohere Nort...
1.16.2 Unknown Core Bugfixes - Reasoning summaries now only run on providers that support them, avoiding GPT-5 request failures on compatible backends. - Edit operations now refuse loose matches that could overwrite the wrong code or r...
1.16.0 Unknown Core Improvements - Added managed workspace cloning that keeps dirty and untracked files. - Added moving sessions between workspaces and directories. - Added proper OpenAI model support through AWS Bedrock. - Added skill...
1.15.13 Unknown Core Bugfixes - Gateway Anthropic Opus 4.7+ adaptive reasoning now keeps summarized thinking instead of returning empty thinking blocks. Improvements - Sessions can now store custom metadata through the API and SDK. (@sh...
1.15.12 Unknown Core Improvements - ACP integrations can now send prompts, slash commands, and usage updates through acp-next - Added WebSocket transport for OpenAI responses on supported channels (set OPENCODE_EXPERIMENTAL_WEBSOCKETS=t...
1.15.11 Unknown Core Improvements - Added headerTimeout config for provider requests, with a 10s default for default OpenAI setups. - Experimental background agents now push updates without polling. - You can now set only modalities.inp...
1.15.10 Unknown Desktop Bugfixes - Restored the legacy production desktop flows for opening projects and starting sessions.