安装opencode安装命令使用 NPM 安装npminstall-gopencode-ai验证opencode--version安装githup下载Windows 安装包.msi 文件地址https://cli.github.com/双击安装修改安装目录完成后重启 CMD验证命令gh--version登录GitHub CLI在 CMD 中运行gh auth login按提示操作选择https选择登录方式选 GitHub.com认证方式选 Login with a web browser按回车后会自动打开浏览器在浏览器中授权设备登录完成后再回到 CMD验证登录成功cmdgh auth status应该显示 Logged in to github.com as 你的用户名安装oh-my-opencode方式一让 AI 代理安装Install and configure oh-my-opencode by following the instructions here: https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/refs/heads/master/docs/guide/installation.md方式二命令行安装bunx oh-my-opencodeinstall--no-tui--claudemax20--openaiyes--geminiyes验证命令bun--version验证全部安装好了bunx oh-my-opencode doctor显示绿色注意如果提示这个错误在C:\Users\a.config\opencode目录下新建tui.json输入一下内容{plugin:[oh-my-openagent/tui]}安装Superpowers在opencode里面输入Fetch and follow instructions from https://raw.githubusercontent.com/obra/superpowers/refs/heads/main/.opencode/INSTALL.md验证Tell me about your superpowers