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

# OpenClaw

> 本文档仅供参考，演示如何配置我们的 API 与第三方 AI 聊天界面配合使用。文中提及的任何第三方软件、网站或服务均非由我们运营、控制或背书。

# **OpenClaw 简介**

<Frame>
  <img src="https://mintcdn.com/matrixlabs/n-x0Hjl8DJkKtuwk/images/image-48.png?fit=max&auto=format&n=n-x0Hjl8DJkKtuwk&q=85&s=cad3492bd3c45db387a17252dce32930" alt="Image" width="1280" height="262" data-path="images/image-48.png" />
</Frame>

[OpenClaw](https://openclaw.ai/) 是一款运行在你自己的设备上的 个人 AI 助手。它能够通过你日常使用的渠道（WhatsApp、Telegram、Slack、Discord、Google Chat、Signal、iMessage、BlueBubbles、IRC、Microsoft Teams、Matrix、飞书、LINE、Mattermost、Nextcloud Talk、Nostr、Synology Chat、Tlon、Twitch、Zalo、Zalo Personal、微信、WebChat）回答你的问题。它可以在 macOS / iOS / Android 上进行语音输入与输出，还能渲染一个由你掌控的实时 Canvas。Gateway 只是控制平面——产品本身就是这个助手。

**OpenClaw** 核心特性：

* 可执行真实任务的自主 AI 智能体
* 自托管，数据完全可控
* 多渠道接入（Telegram、Slack、Web 等）
* 可扩展的技能 / 插件体系
* 支持多种 AI 模型
* 跨会话的持久记忆
* 专为自动化与工作流而生

# 步骤

<Steps>
  <Step title="安装 OpenClaw">
    OpenClaw 要求 Node >= 22.14，请先安装 [最新 LTS 版本的 Node.js](https://nodejs.org/en/download/)。

    安装完成后，打开终端（Windows 用户使用 PowerShell）并检查版本号。

    * macOS、Linux、Windows：

    ```shellscript theme={null}
    node -v
    ```

    如果无法正常显示版本号，请搜索相关问题，并确认你的系统版本未过旧。

    > **Windows** 用户可能出现因为数字签名而无法运行脚本的问题，请运行如下命令:
    >
    > ```powershell theme={null}
    > Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned -Force
    > ```

    安装 OpenClaw：

    ```shellscript theme={null}
    npm install -g openclaw@latest
    ```
  </Step>

  <Step title="配置 OpenClaw">
    > **Windows** 用户可能出现因为缺少 VC 运行库而无法运行的问题，请下载并安装[此软件](https://aka.ms/vs/17/release/vc_redist.x64.exe)。

    打开终端，运行以下命令开始配置。

    ```shellscript theme={null}
    openclaw onboard
    ```

    选择 "Yes"、"QuickStart"。

    <Frame>
      <img src="https://mintcdn.com/matrixlabs/n-x0Hjl8DJkKtuwk/images/claw1-1.png?fit=max&auto=format&n=n-x0Hjl8DJkKtuwk&q=85&s=6da781ddd8b20fb29df34459be23fe03" alt="Claw1 1" width="1090" height="682" data-path="images/claw1-1.png" />
    </Frame>

    选择 "Custom Provider"。

    <Frame>
      <img src="https://mintcdn.com/matrixlabs/n-x0Hjl8DJkKtuwk/images/claw2.png?fit=max&auto=format&n=n-x0Hjl8DJkKtuwk&q=85&s=f331cd0e1050a16770f37aa9867bbc04" alt="Claw2" width="1084" height="676" data-path="images/claw2.png" />
    </Frame>

    以下是同时兼容 Anthropic 与 OpenAI 协议的示例模型配置。

    **Claude Opus 4.7**

    | 字段                     | 内容                                                                     |
    | ---------------------- | ---------------------------------------------------------------------- |
    | API Base URL           | [https://router-link.world3.ai/api](https://router-link.world3.ai/api) |
    | API Key                | 在 [RouterLink Key](https://routerlink.ai/settings/api-keys) 获取         |
    | Endpoint compatibility | Anthropic-compatible                                                   |
    | Model ID               | claude-opus-4-7                                                        |

    **GPT-5.3-Codex**

    | 字段                     | 内容                                                                               |
    | :--------------------- | :------------------------------------------------------------------------------- |
    | API Base URL           | [**https://router-link.world3.ai/api/v1**](https://router-link.world3.ai/api/v1) |
    | API Key                | 在 [RouterLink Key](https://routerlink.ai/settings/api-keys) 获取                   |
    | Endpoint compatibility | OpenAI-compatible                                                                |
    | Model ID               | gpt-5.5                                                                          |

    **Gemini 3.1 Pro Preview**

    | 字段                     | 内容                                                                               |
    | :--------------------- | :------------------------------------------------------------------------------- |
    | API Base URL           | [**https://router-link.world3.ai/api/v1**](https://router-link.world3.ai/api/v1) |
    | API Key                | 在 [RouterLink Key](https://routerlink.ai/settings/api-keys) 获取                   |
    | Endpoint compatibility | OpenAI-compatible                                                                |
    | Model ID               | gemini-3.1-pro-preview                                                           |

    <Frame>
      <img src="https://mintcdn.com/matrixlabs/n-x0Hjl8DJkKtuwk/images/claw3.png?fit=max&auto=format&n=n-x0Hjl8DJkKtuwk&q=85&s=cd74fb0d59a17e059fa138dc0ec853f6" alt="Claw3" width="1070" height="692" data-path="images/claw3.png" />
    </Frame>

    你可以基于以上示例添加其他 [模型](https://routerlink.ai/models)：

    <Frame>
      <img src="https://mintcdn.com/matrixlabs/ltkRsDbAxyB4nlOA/images/image-92.png?fit=max&auto=format&n=ltkRsDbAxyB4nlOA&q=85&s=5db79d68829c4b7ef0b9ba681ea23747" alt="Image" width="1180" height="913" data-path="images/image-92.png" />
    </Frame>

    接下来，可以根据你的需求继续完成配置。

    <Frame>
      <img src="https://mintcdn.com/matrixlabs/anX-7--1cvRhDZ5t/images/img_v3_0211m_0d230cb4-20ef-4e87-bbc9-461ec89f80hu-1.jpg?fit=max&auto=format&n=anX-7--1cvRhDZ5t&q=85&s=a6d659001d24765689f2f133fce6d490" alt="Img V3 0211m 0d230cb4 20ef 4e87 Bbc9 461ec89f80hu" width="1158" height="692" data-path="images/img_v3_0211m_0d230cb4-20ef-4e87-bbc9-461ec89f80hu-1.jpg" />
    </Frame>
  </Step>

  <Step title="开始使用 OpenClaw">
    运行：

    ```shellscript theme={null}
    openclaw gateway
    ```

    确认 Gateway 正在运行：

    ```shellscript theme={null}
    openclaw gateway status
    ```

    你应当看到 Gateway 监听在端口 18789。

    Open 仪表盘：

    ```shellscript theme={null}
    openclaw dashboard
    ```

    这会在浏览器中打开控制 UI。如果能正常加载，说明一切就绪。

    发送你的第一条消息。

    在控制 UI 的聊天框中输入消息，你应该会收到 AI 的回复。

    <Frame>
      <img src="https://mintcdn.com/matrixlabs/n-x0Hjl8DJkKtuwk/images/claw4.avif?fit=max&auto=format&n=n-x0Hjl8DJkKtuwk&q=85&s=c3408e955fb468c596c8f6f85868fc68" alt="Claw4" width="1200" height="926" data-path="images/claw4.avif" />
    </Frame>

    想从手机端使用？最快上手的渠道是 [Telegram](https://docs.openclaw.ai/channels/telegram)（只需一个 Bot Token）。完整渠道列表请参见 [Channels](https://docs.openclaw.ai/channels)。
  </Step>
</Steps>

# **常见问题**

<AccordionGroup>
  <Accordion title="如何添加模型">
    再次运行：

    ```shellscript theme={null}
    openclaw onboard
    ```

    在 Config handling 中选择 **"Use existing values"**，然后在 **Custom Provider** 下添加你需要的新模型。
  </Accordion>

  <Accordion title="Gateway 进程已被占用">
    ```shellscript theme={null}
    openclaw gateway stop
    openclaw gateway
    openclaw dashboard
    ```
  </Accordion>

  <Accordion title="如何升级 OpenClaw？">
    在终端中执行：

    ```shellscript theme={null}
    openclaw update
    ```
  </Accordion>

  <Accordion title="需要更多信息？">
    请查看 [官方文档](https://docs.openclaw.ai/help/faq)。
  </Accordion>
</AccordionGroup>
