1. 各类插件对接claude
GrapeX接口文档
  • api令牌领取教程
    • 用户协议(使用前必看)
    • 如何使用兑换码并接入api
  • 使用教程(Claude)
    • 教程前必看
    • OpenClaw Clawdbot 自定义中转站配置教程
    • (推荐)CC switch 配置api教程
    • claude对接api教程(更改默认api)
    • ❗ 重要提示 请详细观看 ❗
    • 各类插件对接claude
      • CherryStudio调用cluade MCP
      • opencode 配置教程
      • roo code插件
        • VS code 使用教程
        • 配置VS Code + 第三方 Claude 4.5配置指南
        • 🦘Roo Code 常用 / 命令清单
        • vscode进阶使用教程
  • 使用教程(CodeX)
    • CodeX套餐兑换购买教程
    • CodeX Cli 配置教程
  1. 各类插件对接claude

opencode 配置教程

先安装opencode#

官方文档

使用nodejs#

npm install -g opencode-ai

配置提供者#

https://opencode.ai/docs/providers/
配置两个地方#
提供者配置(没有这个文件就新建)#
~ 代表用户的工作目录 如windows上 C:\Users\admin#
~/.config/opencode/opencode.json

{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "anthropic": {
      "options": {
        "baseURL": "https://api.pioktofont.icu/v1"
      }
    }
  }
}
这里我替换了现有的 anthropic 地址#
密钥配置#
这里我们配置一个 claude 平台的,在我们网站控制台,创建key 并选择我们claude相关分组 如claude 专属#
~/.local/share/opencode/auth.json

{
  "google": {
    "type": "api",
    "key": "1111111111111111111"
  },
  "anthropic": {
    "type": "api",
    "key": "sk-xxxxxxxxxxxxx"
  }
}
打开终端#
image.png
输入 /models#
image.png
选择 anthropic 中的一个模型#
image.png
开始使用#
image.png
修改于 2026-03-10 08:48:28
上一页
CherryStudio调用cluade MCP
下一页
VS code 使用教程
Built with