> For the complete documentation index, see [llms.txt](https://docs.console.zenlayer.com/welcome/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.console.zenlayer.com/welcome/cn/ai-gateway/ai-gateway-integration/cursor.md).

# Cursor

[**Cursor**](https://cursor.com/) 是一款专为 AI 编程而打造的代码编辑器。有关安装和 API 集成的更多信息，请查看 [**帮助文档**](https://cursor.com/docs)。

{% hint style="info" %} <mark style="color:blue;">**注意**</mark>

<mark style="color:blue;">升级至 Pro 版本后方可管理 API Endpoint。</mark>
{% endhint %}

## API Endpoint 管理

1. 打开编辑器，点击右上角的齿轮图标，进入 **Cursor Settings → Models**。
2. 展开 **API Keys**，启用并填写 **OpenAI Key**，同时启用 **Override OpenAI Base URL**。<br>

   <div align="left" data-with-frame="true"><figure><img src="/files/neEWJPou7EBaNl2yMihc" alt=""><figcaption></figcaption></figure></div>
