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

# OpenClaw

> 在 OpenClaw（原 Clawdbot）中通过平台 API 接入 Claude 模型。

> 在 OpenClaw（原 Clawdbot）中通过平台 API 地址和 Key 接入 Claude 模型。

## 安装 OpenClaw

> openclaw 老用户，建议也先通过以下安装命令对 openclaw 进行更新。

在终端中运行以下命令一键安装：

**macOS / Linux**

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

**Windows**

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

## 配置平台 API

完成安装后，先进入 OpenClaw 的配置流程：

```bash theme={null}
openclaw configure
```

如果首次安装时自动进入引导，也可以直接在引导里完成以下配置。

### 推荐方式：在界面中配置

1. 在终端中启动网关：

```bash theme={null}
openclaw gateway run
```

2. 打开浏览器访问 `http://127.0.0.1:18789`
3. 进入 Config 配置界面，点击 `models`
4. 添加或编辑当前 provider，并填写以下信息：
   * `Base URL`：填写平台提供的 Anthropic 兼容地址，例如 `https://api-vip.apigo.ai`
   * `API Key`：填写平台提供的 Key，例如 `YOUR_PLATFORM_API_KEY`
5. 如界面中有 `Auth Header` 选项，请保持开启
6. 点击右上角 `Save`，再点击 `Update` 应用配置

### 选择模型

模型本身不需要写死在文档里。配置好平台地址和 Key 后，您可以根据业务需要到 [模型目录](/models) 查看当前可用模型，再回到 OpenClaw 中选择对应模型。

如果您在 OpenClaw 中需要重新打开模型选择器，可在对话界面使用 `/model`，或在配置界面的 `models` 区域中修改默认模型。

## 测试对话

输入以下命令验证是否可以正常对话：

```bash theme={null}
openclaw tui
```

如果能够正常发起对话，说明配置已经生效。
