> This is a page from the ElevenLabs documentation. For a complete page index, fetch https://elevenlabs.io/docs/llms.txt. For the full documentation in a single file, fetch https://elevenlabs.io/docs/llms-full.txt.

# Cursor

## 概述

将 ElevenLabs AI 智能体与 [Cursor](https://www.cursor.com/) 连接，以启动和管理处理 [GitHub](https://github.com) 仓库的后台编程智能体。智能体可通过可用工具启动编程任务、创建拉取请求、查看智能体进度，以及发送后续指令。

## 功能

| 功能         | 支持情况          |
| ---------- | ------------- |
| 零保留模式（ZRM） | 不支持           |
| 工具中的附件     | 不支持 — 工具仅处理文本 |

## 设置

此集成使用 **Cursor API 密钥**进行身份验证。

#### 获取 Cursor API 密钥

前往 [Cursor Dashboard](https://cursor.com/settings)，进入 **Integrations & MCP**，然后生成 API 密钥。

#### 在 ElevenLabs 中连接

在 ElevenLabs 集成设置中，将 Cursor API 密钥粘贴到 **API Key** 字段。

> **Warning**
>
> 免费套餐的 API 密钥不支持使用 Background Agent API。需要订阅付费 Cursor 套餐。

## 智能体工具

向智能体添加 Cursor 工具后，可使用以下内置工具：

| 工具                              | 描述                                                               |
| ------------------------------- | ---------------------------------------------------------------- |
| `launch_cursor_agent`           | 启动新的 Cursor 后台智能体来处理 GitHub 仓库。该智能体可添加功能、修复错误、重构代码，并可在完成后创建拉取请求。 |
| `list_cursor_agents`            | 列出经过身份验证用户的所有后台智能体及其当前状态。支持分页。                                   |
| `get_cursor_agent`              | 通过 ID 获取特定后台智能体的当前状态和结果。                                         |
| `get_cursor_agent_conversation` | 获取后台智能体的对话历史，包括所有提示词和响应。已删除的智能体不可用。                              |
| `add_cursor_agent_followup`     | 向现有后台智能体发送后续指令，在其工作期间提供额外指导。                                     |

## 实用链接

* [Cursor Background Agents API](https://cursor.com/docs/background-agent/api/overview)
* [Cursor API Keys 文档](https://docs.cursor.com/settings/api-keys)