# Agent 使用教程

Cherry Studio v1.7.0.alpha 版本引入了Agent，可以在 Cherry Studio 中使用 Cherry Agent 。本教程将引导您完成设置和启动的完整流程。

### 1. 创建 Anthropic 类型的供应商

任意支持 Anthropic 端点的服务商都可以使用，以 CherryIn 为例，创建一个新的 Agent 服务商，填写好密钥和地址，添加任意模型即可。

{% hint style="warning" %}
Agent 模式消耗 token 量很大，请注意 token 使用
{% endhint %}

{% hint style="info" %}
订阅了 Claude Code 的用户也可以将 key 和 url 地址填入获取到模型
{% endhint %}

<figure><img src="/files/XTIKBjUdVt4FYF2SQD5M" alt=""><figcaption></figcaption></figure>

### 2. 开启 API 服务器

<figure><img src="/files/bUBS6Hgv8fKuTkUsNWz8" alt=""><figcaption></figcaption></figure>

### 3. 创建一个 Agent

<figure><img src="/files/u92wtuj0U1a3GHs6BTJR" alt=""><figcaption></figcaption></figure>

右键 Agent 可以进入编辑界面，编辑 Agent 的权限和可以使用的工具或 mcp 服务。

<figure><img src="/files/TybOWpcmJ0UCFMRIN7eN" alt=""><figcaption></figcaption></figure>

### 结果展示

<figure><img src="/files/v8CH76mfRyQFxKzZMYhV" alt=""><figcaption></figcaption></figure>


---

# 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.cherry-ai.com/advanced-basic/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.
