# 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/85de0d3db220033c87d956a0349bc7e618a831d2" alt=""><figcaption></figcaption></figure>

### 2. 開啟 API 伺服器

<figure><img src="/files/65fed58fde41fe783abee3bb62f734c0673ea81f" alt=""><figcaption></figcaption></figure>

### 3. 建立一個 Agent

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

右鍵 Agent 可以入去編輯介面，編輯 Agent 嘅權限同可以使用嘅工具或者 mcp 服務。

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

### 結果展示

<figure><img src="/files/b54281bc882b7d26a317b52f96bd2c5f9bcafd28" 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/docs/zhong-wen-fan-ti/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.
