# Cursor 配置指南

> 在 Cursor 里覆盖 OpenAI Base URL，把 Chat 和 Agent 接到 LLMoxy。

网址：[https://cursor.com（单击跳转下载）](https://cursor.com)

Cursor 是 VS Code 系 AI 编辑器。把 OpenAI 兼容地址改成 LLMoxy 即可用网关模型。

开始前准备一把 [LLMoxy 令牌](https://llmoxy.com/docs/get-started/get-token)，建议用 **auto** 分组。

## 配置

1. 点右上角齿轮，打开 **Models**。
2. **OpenAI API Key**：粘贴 LLMoxy 令牌。
3. 勾选 **Override OpenAI Base URL**，填 `https://llmoxy.com/v1`。
4. 点 **Verify**。
5. 模型名填控制台里的 ID，例如 `grok-4.7`。

> **TIP**
> Cursor 的地址 **必须带** `/v1`。Verify 通过后，在 Chat 或 Agent 面板选刚加的模型即可。

需要完整 Agent 循环、或 Cursor 自定义模型不稳定时，可改用 [Cursor Cline 插件](https://llmoxy.com/docs/code-tutorials/cursor-cline)。

本文是 https://llmoxy.com/docs/code-tutorials/cursor 的 markdown 版本。
