# 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>


---

# 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.console.zenlayer.com/welcome/cn/ai-gateway/ai-gateway-integration/cursor.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.
