# Agent Usage Tutorial

Cherry Studio v1.7.0.alpha introduced Agent, allowing Cherry Agent to be used in Cherry Studio. This tutorial will guide you through the complete process of setup and launch.

### 1. Create an Anthropic-type provider

Any service provider that supports Anthropic endpoints can be used. Taking CherryIn as an example, create a new Agent provider, fill in the key and address, and add any model.

{% hint style="warning" %}
Agent mode consumes a large amount of tokens; please pay attention to token usage
{% endhint %}

{% hint style="info" %}
Users who subscribe to Claude Code can also enter the key and URL to obtain the model
{% endhint %}

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

### 2. Start the API server

<figure><img src="/files/4f546b700ec9bf406abbd5a9478e11579413aad0" alt=""><figcaption></figcaption></figure>

### 3. Create an Agent

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

Right-click Agent to enter the edit interface, where you can edit the Agent's permissions and the tools or MCP services it can use.

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

### Result display

<figure><img src="/files/7aff327c19dadb253a256c6f2c7d1721e9308b28" 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/en-us/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.
