> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hodlai.movemove.org/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenClaw

> OpenClaw / Clawdbot / Moltbot 配置指南

## 前置条件

* 获得 HodlAI API Key

## 配置步骤

<Steps>
  <Step title="安装 OpenClaw">
    使用官方安装脚本：

    **macOS/Linux：**

    ```shellscript theme={null}
    curl -fsSL https://openclaw.ai/install.sh | bash
    ```

    **Windows (PowerShell)：**

    ```powershell theme={null}
    iwr -useb https://openclaw.ai/install.ps1 | iex
    ```

    部分安装截图如下（**注意图中文字说明**）：

    ![](https://pbs.twimg.com/media/HAuusWjaAAAaLK9?format=jpg\&name=medium)

    ![](https://pbs.twimg.com/media/HAuvCP8bIAAfs4t?format=jpg\&name=medium)

    ![](https://pbs.twimg.com/media/HAuvHLnbsAAtovH?format=png\&name=medium)
  </Step>

  <Step title="修改配置">
    > 该步骤后有完整的截图示例，注意查看核对！

    打开 `.openclaw/openclaw.json` 文件，先修改 providers 部分：

    ```json theme={null}
          "HodlAI": {
            "baseUrl": "https://api.hodlai.fun/v1",
            "apiKey": "这里换成自己的 API Key",
            "api": "openai-completions",
            "models": [
              {
                "id": "gemini-3-pro-preview",
                "name": "Gemini 3 Pro (preview)",
                "reasoning": false,
                "input": [
                  "text",
                  "image"
                ],
                "cost": {
                  "input": 0.5,
                  "output": 1.5,
                  "cacheRead": 0,
                  "cacheWrite": 0
                },
                "contextWindow": 1048576,
                "maxTokens": 8192
              }
            ]
          }
    ```

    再修改 agents 部分：

    ```json theme={null}
          "model": {
            "primary": "HodlAI/gemini-3-pro-preview"
          },
          "models": {
            "HodlAI/gemini-3-pro-preview": {
              "alias": "gemini"
            }
          }
    ```

    最终配置截图如下：

    ![](https://pbs.twimg.com/media/HAuwNEeaAAA04Gi?format=jpg\&name=medium)
  </Step>

  <Step title="检查配置并重启 gateway">
    ```shellscript theme={null}
    # 检查（一定要执行，防止文件修改错了）
    openclaw doctor --fix
    # 重启
    openclaw gateway restart
    ```

    ![](https://pbs.twimg.com/media/HAuxZGkaAAAhBXc?format=jpg\&name=medium)
  </Step>
</Steps>

## 资源

* OpenClaw 官方文档：[https://docs.openclaw.ai](https://docs.openclaw.ai)
