# Anthropic

Anthropic 的 Claude 是当前最适合作为 [Cherry Agent](/cherry-studio/preview/agent.md) 后端的模型之一，因为 Agent 需要 Anthropic 协议端点。

## 获取 API Key

* 前往 [Anthropic Console](https://console.anthropic.com/) 注册账号
* 进入 `Settings → API Keys` → `Create Key`，复制生成的 `sk-ant-...` 密钥

## 在 Cherry Studio 配置

* 打开 `设置 → 模型服务`，找到 **Anthropic** Provider 进入详情页
* 在 **API 密钥** 中填入 `sk-ant-...`
* **API 地址** 默认 `https://api.anthropic.com`，无需修改
* 点击 **获取模型列表**，添加 `claude-opus-4`、`claude-sonnet-4`、`claude-haiku-4` 等模型

## 推荐用法

| 模型                | 适合场景                    |
| ----------------- | ----------------------- |
| `claude-opus-4`   | 最强推理 / 编程 / 复杂 Agent 任务 |
| `claude-sonnet-4` | 通用对话与日常 Agent，性价比首选     |
| `claude-haiku-4`  | 高吞吐场景、低成本快速回复           |

## Agent 场景配置

把该 Provider 在 [Cherry Agent](/cherry-studio/preview/agent.md) 配置时选为默认模型来源，即可直接获得 Anthropic 协议 Agent 能力。

{% hint style="info" %}

* 中国大陆无法直接访问 Anthropic API，需自备代理（参考 [常规设置 → 代理模式](/pre-basic/settings/general.md)）
* 订阅了 Claude Code 的用户也可用同一 key + endpoint 接入 Cherry Studio
* Claude 模型按 token 计费，长上下文请关注用量
  {% endhint %}

***

### 💡 获取帮助与提交反馈

如果您在配置或使用过程中遇到任何疑问、Bug 或有功能改进建议，请参考 [反馈与建议](/question-contact/suggestions.md) 中提供的官方渠道。


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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/pre-basic/providers/anthropic.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.
