# AI Agent 设置指南

> **Github:** <https://github.com/byreal-git/byreal-cli/>

只需几分钟即可在 Openclaw 中运行您的个人 Byreal 代理：

{% stepper %}
{% step %}

### 步骤 1：将技能添加到 Openclaw

告诉您的 Openclaw 代理添加技能：

> *Add the byreal-cli skill from byreal-git/byreal-cli*

代理将安装它，完成后将了解其在 Byreal 上的所有功能。
{% endstep %}

{% step %}

### 步骤 2：创建或导入钱包

您的代理需要 Solana 钱包来签署交易。如果尚未配置，请告诉代理：

> *"Set up my Solana wallet for Byreal"*

代理将引导您导入现有密钥对或生成新密钥对。您的私钥不会被显示或记录，仅显示公共地址。

{% hint style="info" %}
注意：对于代理使用，我们建议使用专用钱包，仅存入您打算部署的资金。
{% endhint %}
{% endstep %}

{% step %}

### 步骤 3：开始使用

连接钱包后，您可以开始给代理发送自然语言指令，例如：

* *"Show me the top-performing pools on Byreal"*
* *"Copy top farmer #2's MNT-USDC position"*
* *"Swap 50 USDC for XAUt0 on Byreal"*
* *"Check my open positions and tell me which ones are out of range"*

就这样！您的 Openclaw 代理从此接管一切。

在下一节了解更多关于您的代理在 Byreal 上的功能。
{% endstep %}
{% endstepper %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.byreal.io/zh-my/byreal-ai-agent/how-to-set-up-ai-agent.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
