Skip to content

Clawdbot 配置教程

本页快速说明安装与配置方式,重点是配置文件改动。

快速安装

Windows:

powershell
iwr -useb https://molt.bot/install.ps1 | iex

macOS / Linux:

bash
curl -fsSL https://molt.bot/install.sh | bash

配置位置

将以下配置代码添加到你的配置文件中:

  • ~/.clawdbot/clawdbot.json
  • ~/.moltbot/moltbot.json

配置内容

把下面这段追加到配置文件内,并将 YOUR_API_KEY_HERE 替换成你的真实 key:

json
{
  "models": {
    "mode": "merge",
    "providers": {
      "codex-vip": {
        "baseUrl": "https://api-vip.codex-for.me/v1",
        "apiKey": "YOUR_API_KEY_HERE",
        "api": "openai-responses",
        "models": [
          {
            "id": "gpt-5.2",
            "name": "gpt-5.2",
            "reasoning": false,
            "input": ["text"],
            "contextWindow": 40000,
            "maxTokens": 8192,
            "cost": {
              "input": 1.75,
              "output": 14.0,
              "cacheRead": 0.175,
              "cacheWrite": 0
            }
          }
        ]
      }
    }
  }
}

小贴士

  • 如果你的配置文件已经有 models 字段,请把上面的 providers 节点合并进去。
  • 保存后重启 Clawdbot 即可生效。