← 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.18.16

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)

Read release notes

Version history

Version Updated Notes
1.18.16 Unknown 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...
1.18.14 Unknown 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 fa...
1.18.13 Unknown 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. -...
1.18.12 Unknown 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 se...
1.18.11 Unknown 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 nam...
1.18.10 Unknown 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 bett...
1.18.9 Unknown 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 upda...
1.18.8 Unknown 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...
1.18.7 Unknown 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...
1.18.6 Unknown 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, proje...
1.18.5 Unknown 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. (@remix...
1.18.4 Unknown 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...
1.18.3 Unknown 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 s...
1.18.2 Unknown 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 a...
1.18.1 Unknown Desktop Bugfixes - Fixed spacing between model provider sections in Settings.
1.17.20 Unknown 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.
1.17.19 Unknown 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 loggi...
1.17.18 Unknown Core Bugfixes - Prevent crashes and bad pricing data when GitHub Copilot returns models with a zero billing batch size. Improvements - Add a model-specific system prompt for Meta Muse Spark.
1.17.17 Unknown Core Bugfixes - Improved Meta model handling for reasoning variants and provider requests. Desktop Bugfixes - Fixed clipped descenders in model selector labels. Improvements - Added a dismissible tabs intro popup and ref...
1.17.16 Unknown Core Bugfixes - Exposed reasoning effort variants for Grok models. - Improved xAI prompt cache routing and PDF file support in Responses models. Desktop Improvements - Added an Open containing folder action for projects...