This repository has been archived on 2026-08-07. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
zq/10.项目/12-AI助手/20-ClaudeCode/工欲善其事 必先利其器(二):ClaudeCode 插件.md

71 lines
2.6 KiB
Markdown
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 安装NPM
官网下载并安装,最好勾选Add to PATH。
# 安装CC
# 安装CC插件Superpowers
```text
/plugin marketplace add obra/superpowers-marketplace
```
```text
/plugin install superpowers@superpowers-marketplace
```
# 安装 opencode
```
npm install -g opencode-ai
```
# 安装opencode-antigravity-auth
(主要是提供了深度思考模型的思考预算参数,感觉没啥用,用了这个插件之后启动还变慢了,不推荐)
随便找个免费的AI,输入给他
```
Install the opencode-antigravity-auth plugin and add the Antigravity model definitions to ~/.config/opencode/opencode.json by following: https://raw.githubusercontent.com/NoeFabris/opencode-antigravity-auth/dev/README.md
```
# 坑
Windows环境下默认的C:\Users\Administrator\AppData\Roaming\opencode目录中放opencode.json不管用,只能暂时放在opencode执行的项目根目录中。
# 配置中介API
以jiekou.ai举例。
jiekou.ai api 密钥 sk_P0Ls_rJrB7lOF8Z5s1GMZ6O-rcvUMZnoB0KEIVs_Zvk
MoaCode api 密钥cr_97385b751c8e54b5021e31058c573f97a2f65c8c5610ecfc6a49cd734ac218db
```
"provider": {
//供应商名字,随便写自己好认的
    "jiekou": {
      "options": {
//供应商提供的API,查阅中介官网的API文档
        "baseURL": "https://api.jiekou.ai/openai",
//供应商提供的Key,去中介官网登陆后在账号内创建并复制
        "apiKey": "sk_P0Ls_rJrB7lOF8Z5s1GMZ6O-rcvUMZnoB0KEIVs_Zvk"
      },
      //该供应商下面可用的模型
      "models": {
    //模型id,从中介官网查看每个模型的ID叫什么
        "claude-opus-4-5-20251101": {
//模型显示名称,随便写自己好认的
          "name": "我的Claude Opus 4.5",
          //上下文限制,好像是插件提供的,貌似没有也没啥大问题?
          "limit": { "context": 200000, "output": 64000 },
//插件提供的
          "modalities": { "input": ["text", "image", "pdf"], "output": ["text"] },
//插件提供的
          "variants": {
            "low": { "thinkingConfig": { "thinkingBudget": 8192 } },
            "max": { "thinkingConfig": { "thinkingBudget": 32768 } }
          }
        },
```
到此,opencode基础模型接入好了。
# Oh My OpenCode 安装
输入以下命令,先安装bun
```
npm install -g bun
```
再安装omo
```
npx oh-my-opencode install
```
安装过程可以选No也可以选Yes,我们后面会再配置。
如果选了yes,会在oh-my-opencode.json,打开。
为每个agent选择我们刚才配置的模型
https://github.com/ziho7/opencode-config