# AstrBot 配置指南

> 在 AstrBot 机器人平台中以 OpenAI Compatible 方式接入 LLMoxy，自动拉取并选择模型。

> **📌 关于 AstrBot**
> AstrBot 是一款 AI 机器人平台，支持通过 OpenAI Compatible API 接入 LLMoxy 服务。

## 配置步骤

### 1. 首次登录后点击配置 API

首次登录 AstrBot 之后，点击 **配置 API** 按钮。

![配置API](https://llmoxy.com/docs-assets/migrated/tutorial-astrbot/image-01.png)

### 2. 点击新增按钮

点击 **新增** 按钮来添加新的 API 配置。

![点击新增](https://llmoxy.com/docs-assets/migrated/tutorial-astrbot/image-02.png)

### 3. 选择 OpenAI Compatible

在 API 类型中选择 **OpenAI Compatible**。

![选择OpenAI Compatible](https://llmoxy.com/docs-assets/migrated/tutorial-astrbot/image-03.png)

### 4. 填入配置信息并保存

填入 ID、API Key、API Base URL 后点击 **保存配置**，然后点击 **获取模型**。

- **API Key**：填入您的 LLMoxy 令牌秘钥
- **API Base URL**： `https://llmoxy.com/v1`

![填入配置信息](https://llmoxy.com/docs-assets/migrated/tutorial-astrbot/image-04.png)

### 5. 获取模型列表

保存配置后可以看到获取到站点所有的模型。

![获取模型列表](https://llmoxy.com/docs-assets/migrated/tutorial-astrbot/image-05.png)

### 6. 搜索并选择模型

可以通过搜索栏搜索模型，例如选用 `grok-4.7`。

![搜索模型](https://llmoxy.com/docs-assets/migrated/tutorial-astrbot/image-06.png)

### 7. 选用 Chat 模式

选用 **Chat** 聊天模式。

![选用Chat](https://llmoxy.com/docs-assets/migrated/tutorial-astrbot/image-07.png)

### 8. 选择配置好的模型

点击 **Model** 按钮，选用刚刚配置好的模型。

![点击Model按钮](https://llmoxy.com/docs-assets/migrated/tutorial-astrbot/image-08.png)

### 9. 开始使用

配置完成后，就可以通过对话来使用模型了。

![选择模型](https://llmoxy.com/docs-assets/migrated/tutorial-astrbot/image-09.png)

### 10. 开始对话

配置完成后，就可以通过对话来使用模型了。

![开始对话](https://llmoxy.com/docs-assets/migrated/tutorial-astrbot/image-10.png)

> **💡 提示**
> 请使用 **auto** 分组的令牌。配置完成后即可在 AstrBot 中使用 LLMoxy 的所有模型。

本文是 https://llmoxy.com/docs/code-tutorials/astrbot 的 markdown 版本。
