集成

在 OpenClaw 中使用 Verboo Code

把 Verboo Code 添加为 OpenAI 兼容的提供商,选择套餐内的模型,让智能体连续运行也不必担心 Token 用量。

在此页面
OpenClaw

OpenClaw

选择模型

模型列表取决于你的 API key。创建配置前先查询一次,并把 <MODEL_ID> 替换成返回的 ID。

查询模型
curl https://code.verboo.ai/router/v1/models \
  -H "Authorization: Bearer <VERBOO_API_KEY>"

添加提供商

把下面的内容加入 OpenClaw 的配置文件,合并时请保留已有的提供商。

打开 OpenClaw 配置文件(~/.openclaw/openclaw.json)

把 verboo 提供商合并到 models.providers 中

Gateway 会自动热加载配置;如有需要请重启。

~/.openclaw/openclaw.json
{
  "models": {
    "mode": "merge",
    "providers": {
      "verboo": {
        "baseUrl": "https://code.verboo.ai/router/v1",
        "api": "openai-completions",
        "apiKey": "<VERBOO_API_KEY>",
        "models": [
          {
            "id": "<MODEL_ID>",
            "name": "Verboo Code",
            "contextWindow": <CONTEXT_WINDOW>,
            "reasoning": <REASONING_ENABLED>,
            "input": ["text", "image"]
          }
        ]
      }
    }
  }
}

选择并使用

保存后,在 OpenClaw 中选择 Verboo 提供商下的模型。如果你的版本不会自动重新加载配置,请重启 Gateway。

打开模型选择器并选择 Verboo Code。如果没有出现,运行:openclaw models set verboo-model

选择模型
openclaw models set verboo-model

配置文件

创建或编辑 ~/.openclaw/openclaw.json,并保留现有内容。

~/.openclaw/openclaw.json
{
  "models": {
    "mode": "merge",
    "providers": {
      "verboo": {
        "baseUrl": "https://code.verboo.ai/router/v1",
        "api": "openai-completions",
        "apiKey": "<VERBOO_API_KEY>",
        "models": [
          {
            "id": "<MODEL_ID>",
            "name": "Verboo Code",
            "contextWindow": <CONTEXT_WINDOW>,
            "reasoning": <REASONING_ENABLED>,
            "input": ["text", "image"]
          }
        ]
      }
    }
  }
}

启动并验证

终端 · Bash / Zsh
openclaw models set verboo-model

现在可以正常开始对话了。OpenClaw 会把 Chat Completions 请求发送到 Verboo Code 的 Router。

补全模型能力

把 context_window 填入 contextWindow。只有在存在 reasoning 对象时才设置 reasoning: true。只有当 vision 为 true 时才在 input 中保留 image,否则使用 ["text"]。

不要把密钥提交到版本库

示例中使用的是占位符。在共享环境中,请优先使用 OpenClaw 的 secrets 机制或环境变量。