【Mac系统上进行opencode的安装和其它插件的安装】Oh-My-Opencode和SuperPower工具插件

手头上有一部闲置的Mac Book Pro (Intel芯片)2018年买的,安装opencode吧。

打开终端,执行命令:

brew install anomalyco/tap/opencode
brew install --cask opencode-desktop
经过漫长等待。。。。完成
输入:
opencode -v
显示:
1.1.39
表示成功。

打开Opencode,选择模型供应商:
在这里插入图片描述
因为Kimi K2.5刚发布,本周免费。(羊毛好暖)
在官网注册并人证个人之后送15元,可以用一下。

打开Opencode 的Desktop面板,设置模型后,输入命令安装Oh-My-Opencode

我说:
获取安装指南并按照说明操作:
curl -s https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/refs/heads/master/docs/guide/installation.md
-------------
然后它会问你问题,我回答:
1:No; 2:No; 3:No; 4:No; 5: No; 6: No.
I have MoonShot AI (china) ’s Kimi K2.5 subscribetion.
---------------
它说:
由于你没有任何支持的订阅,OhMyOpenCode 的主要功能(如 Sisyphus、Oracle 等代理)将无法正常工作。

你有几个选择:

获取支持的订阅 - Claude Pro/Max 是 Sisyphus 代理的最佳选择
不安装 - 在没有支持的提供商时,这个工具价值有限
仍想尝试安装 - 我可以帮你安装,但你需要知道大部分功能不可用
你想怎么处理?
--------------
我说:
Install it and I will fix the configuration to make it work.
--------------
他说:
完成!🎉 OhMyOpenCode 已成功安装!

**配置文件位置:**
- `~/.config/opencode/opencode.json` - 插件配置
- `~/.config/opencode/oh-my-opencode.json` - 代理和模型配置

**当前状态:**
所有代理当前都配置为 `opencode/big-pickle`(回退模型)

**为 Kimi K2.5 配置的提示:**
你需要编辑 `~/.config/opencode/oh-my-opencode.json` 并将模型名称从 `opencode/big-pickle` 改为 Kimi K2.5 的模型标识符(如果 opencode 支持的话)。

例如:
```json
"sisyphus": {
  "model": "moonshot/kimi-k2-5"
}
```
运行 `opencode` 即可开始使用!

我重启opencode,然后继续对话:(你可以直接复制用)

Fetch and follow instructions from https://raw.githubusercontent.com/obra/superpowers/refs/heads/main/.opencode/INSTALL.md

When you trying to download or fetch something on the internet, you should consider to use Chinese Mirror website instead of vist the url directly. If you visit the GitHub, you can add per-fix like ‘https://gh-proxy.org/' before the url ‘https://github.com/projectX'

最后它回答:

✅ **Superpowers for OpenCode 安装完成!**

**安装位置:**
- 仓库:`~/.config/opencode/superpowers`
- 插件:`~/.config/opencode/plugins/superpowers.js`
- 技能:`~/.config/opencode/skills/superpowers`

**可用技能 (13个):**
- brainstorming - 头脑风暴
- dispatching-parallel-agents - 并行代理调度
- executing-plans - 执行计划
- finishing-a-development-branch - 完成开发分支
- receiving-code-review - 接收代码审查
- requesting-code-review - 请求代码审查
- subagent-driven-development - 子代理驱动开发
- systematic-debugging - 系统化调试
- test-driven-development - 测试驱动开发
- using-git-worktrees - 使用 Git Worktrees
- using-superpowers - 使用 Superpowers
- verification-before-completion - 完成前验证
- writing-plans - 编写计划
- writing-skills - 编写技能

**使用方法:**
```bash
# 列出技能
use skill tool to list skills

# 加载特定技能
use skill tool to load superpowers/brainstorming
```

**注意:** 需要重启 OpenCode 以使插件生效。重启后可以通过询问 "do you have superpowers?" 来验证安装。

**更新:**
```bash
cd ~/.config/opencode/superpowers && git pull
```

然后我在当前目录输入:

/init

回车后,那么工作目录已经具备超强能力了。
不过你还是需要手动做一个设置才能更快更强:
你在finder那里,点击"前往"按钮:

输入图片中的地址,打开文件夹,找到oh-my-opencode.json,修改为如下内容:

{
  "$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/assets/oh-my-opencode.schema.json",
  "agents": {
    "sisyphus": {
      "model": "moonshot AI(china)/Kimi-K2.5"
    },
    "oracle": {
      "model": "moonshot AI(china)/Kimi-K2.5"
    },
    "librarian": {
      "model": "moonshot AI(china)/Kimi-K2.5"
    },
    "explore": {
      "model": "moonshot AI(china)/Kimi-K2.5"
    },
    "multimodal-looker": {
      "model": "moonshot AI(china)/Kimi-K2.5"
    },
    "prometheus": {
      "model": "moonshot AI(china)/Kimi-K2.5"
    },
    "metis": {
      "model": "moonshot AI(china)/Kimi-K2.5"
    },
    "momus": {
      "model": "moonshot AI(china)/Kimi-K2.5"
    },
    "atlas": {
      "model": "moonshot AI(china)/Kimi-K2.5"
    }
  },
  "categories": {
    "visual-engineering": {
      "model": "moonshot AI(china)/Kimi-K2.5"
    },
    "ultrabrain": {
      "model": "moonshot AI(china)/Kimi-K2.5"
    },
    "artistry": {
      "model": "moonshot AI(china)/Kimi-K2.5"
    },
    "quick": {
      "model": "moonshot AI(china)/Kimi-K2.5"
    },
    "unspecified-low": {
      "model": "moonshot AI(china)/Kimi-K2.5"
    },
    "unspecified-high": {
      "model": "moonshot AI(china)/Kimi-K2.5"
    },
    "writing": {
      "model": "moonshot AI(china)/Kimi-K2.5"
    }
  }
}

恭喜你,你已经起飞了。
还有一个小技巧可以节省你的tokens。关注我,会看我上两期的分享,里面有一个内容是教你如何同时可以使用opencode自带的plan和builder来节省tokens的。

更多推荐