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

# OpenClaw 配置指南

> 在 OpenClaw 中配置 OpenAI 兼容接口，接入 YeLin AI。

<Info>
  你只需要 base URL 和 **API key**。
  base URL 固定为 `https://api.yelinai.com/v1`。
</Info>

## 你先准备什么

1. 你在 **Console** 创建 **API key**。
2. 你已安装 OpenClaw。

## 配置步骤

1. 打开 OpenClaw 的 **Settings**。
2. 选择 **OpenAI-compatible** 提供商。
3. 填入以下参数。

| 字段       | 你要填什么                        |
| -------- | ---------------------------- |
| Base URL | `https://api.yelinai.com/v1` |
| API key  | 你在 **Console** 复制的 key       |
| Model    | 例如 `gpt-4o-mini`             |

## 验证

你发起一次最小对话。
你能拿到回复就说明成功。

<CardGroup cols={2}>
  <Card title="对话补全" icon="message-circle" href="/api-reference/chat-completions">
    查看端点与参数。
  </Card>

  <Card title="模型列表" icon="list" href="/api-reference/models">
    获取模型 id。
  </Card>
</CardGroup>
