脚本地址只从官方仓库 README 复制。第三方“加速包”不在范围内。
怎么选通道#
- 已经用 brew 管开发工具:brew。
- 团队统一 Node 版本:npm。
- 最小依赖的服务器或容器:官方脚本。
验活#
which / Get-Command 看路径,避免旧副本抢先。然后开一个只读会话,确认 TUI 能起来。
要点#
- 只走官方通道。
- 三种方式不要混装。
- 先版本号,再配 Key。
安装 OpenCode 只选文档写明的一条通道:macOS 可用 Homebrew;已有 Node 的环境可用 npm 全局包;其他 Unix 可用官方 curl 安装脚本。Windows 按官方说明走对应包管理器或发布页,不要混用三套二进制。装完执行版本命令,确认 PATH 指向你刚装的那一份,再配置模型供应商。本页只讲安装与验活,接 OpenAI / Gemini / 改默认 Grok 见已有专页。
脚本地址只从官方仓库 README 复制。第三方“加速包”不在范围内。
which / Get-Command 看路径,避免旧副本抢先。然后开一个只读会话,确认 TUI 能起来。
Was this helpful?
Thanks for the feedback.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. Figures are original to this site.
Last updated 2026-09-22.