跳到主要内容

OpenCode安装

OpenCode github

OpenCode官网

简介

OpenCode 是一个开源的 AI 编码代理。它提供终端界面、桌面应用和 IDE 扩展等多种使用方式。

安装

OpenCode终端

brew install anomalyco/tap/opencode

查看版本

$ opencode -v
1.2.10

终端执行 opencode 会进入交互式命令行

iShot_2026-02-28_17.14.22

OpenCode桌面版

brew install --cask opencode-desktop

iShot_2026-02-28_17.19.04

Bottom GIF
Top GIF