跳到正文
OpenCode wordmark used as the product identity mark OpenCode

下载 OpenCode Desktop

用标签整理工作和活动会话。获取最新构建并开始。

下载 Windows 版

[1] OpenCode Terminal

curl -fsSL https://opencode.ai/install | bash
npm i -g opencode-ai
bun add -g opencode-ai
brew install anomalyco/tap/opencode
paru -S opencode

[2] OpenCode Desktop

brew install --cask opencode-desktop
Apple platform mark for macOS desktop buildsmacOS (Apple Silicon)下载
Apple platform mark for macOS desktop buildsmacOS (Intel)下载
Windows platform mark for x64 desktop buildsWindows (x64)下载
Linux platform mark for deb and rpm packagesLinux (.deb)下载
Linux platform mark for deb and rpm packagesLinux (.rpm)下载

[3] OpenCode Extensions

VS Code editor mark for the OpenCode extensionVS CodeInstall
Cursor editor mark for the OpenCode extensionCursorInstall
Windsurf editor mark for the OpenCode extensionWindsurfInstall
VSCodium editor mark for the OpenCode extensionVSCodiumInstall

[4] OpenCode Integrations

GitHub service mark for the OpenCode integrationGitHubInstall
GitLab service mark for the OpenCode integrationGitLabInstall
05 / Requirements

系统要求

Taken from the intro, Windows (WSL), and troubleshooting docs. No RAM minimum is published. The hard dependencies are a terminal or WebView2, and a model.

Terminal
A modern emulator. The intro names WezTerm, Alacritty, Ghostty (Linux and macOS), and Kitty (Linux and macOS).
Windows 10 and 11
Desktop ships as opencode-desktop-win-x64.exe and win-arm64.exe. The docs recommend WSL for the better file-system and terminal path. Desktop still needs Microsoft Edge WebView2.
macOS and Linux
Apple Silicon and Intel desktop builds. Linux desktop is .deb, .rpm, and AppImage. Wayland users may need OC_ALLOW_WAYLAND=1. Clipboard on Linux needs xclip, xsel, or wl-clipboard.
A model
Free included models, an OpenCode Zen key, or API keys / subscriptions for the providers you want.
06 / Changelog

版本历史

Entries are shortened from the official changelog. Dates are the ones published there.

  1. v1.18.31
    14 Sep 2026

    Restored ACP session model, effort, mode, and reasoning chunk boundaries when loading, resuming, or forking. Remote config auth errors now fail startup. Copilot models request summarized adaptive thinking.

  2. v1.18.30
    9 Sep 2026

    Astra system prompt for GPT-6. Bedrock DeepSeek IDs, including ARNs, resolve again. Azure and OpenAI provider SDKs updated. Reasoning-effort variants for supported GitLab GPT and Claude models.

  3. v1.18.29
    4 Sep 2026

    Codex OAuth filtering recognizes integer GPT versions such as gpt-6. gpt-6-astra shows up for OpenAI subscription users.

  4. v1.18.28
    4 Sep 2026

    Session ID sent as GitHub Copilot interaction header. Desktop uses the desktop client ID during OpenCode account device auth. Open-in icon size increased.

  5. v1.18.27
    2 Sep 2026

    Provider header and streamed chunk timeouts default to five minutes. Anthropic thinking.blockBinding can be opted out and is limited to Claude 5.1+.

  6. v1.18.26
    1 Sep 2026

    Claude 5 sessions tolerate stale thinking blocks. Bedrock GPT-5.6 accepts none reasoning effort. Desktop session renames save from the title editor and tab menu.

哈希与签名

The Windows x64 desktop installer on v1.18.31 is opencode-desktop-win-x64.exe at 120 MB. SHA256:

7e6e4bca1b243609172fa580520e72ed240627fc9c36a80763a6f29bd64b698f

The same release publishes a release attestation JSON. Maintainers stated that CLI and desktop have full code signing from v1.3.4. Compare the hash after you attach the real file URL to the button above.

杀毒误报

OpenCode unpacks native bits (including OpenTUI) into a temp folder on first start. Heuristic engines have labeled that as Trojan:Win32/Wacatac.H!ml or Kaspersky PDM:Trojan.Win32.Generic. Smart App Control Event 3077 can block unsigned DLLs even when Defender exclusions exist.

Do not turn Smart App Control off. Prefer a signed v1.18.31 desktop build, verify the hash, and follow the step-by-step antivirus note.

下载