> ## Documentation Index
> Fetch the complete documentation index at: https://docs.llmeasy.ru/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect Cursor to LLMEasy with a custom model

> Connect LLMEasy to Cursor with GPT Key group model IDs.

When connecting LLMEasy to Cursor, use the OpenAI-compatible endpoint. External tools use the GPT Key group, so copy the current model ID from the <a href={"https://www.llmeasy.ru/pricing"}>model plaza</a>.

<Warning>
  Cursor only lets users on a paid advanced tier or higher configure custom models. If your account or client version does not show custom model, API Key, or Base URL options, check your Cursor plan and client version first.
</Warning>

<Warning>
  **Known issue:** **Override OpenAI Base URL** is a global setting. When enabled, it affects all API keys configured in Cursor, including Anthropic and GPT keys used by Cursor's built-in models. Cursor's official community has confirmed this behavior: setting a Base URL affects all API keys and models ([community thread](https://forum.cursor.com/t/cursor-models-fail-when-using-byok-openai-key-with-overridden-base-url-glm-4-7/147218)).

  If Cursor's built-in Claude / GPT models stop working after you enable **Override OpenAI Base URL**, turn **Override OpenAI Base URL** off when you are not using LLMEasy. Cursor currently does not support a different Base URL per model; that capability is still tracked as a feature request ([feature request](https://forum.cursor.com/t/custom-base-urls-for-each-custom-model/147219)).
</Warning>

## Prerequisites

* Cursor installed ([download Cursor](https://www.cursor.com))
* LLMEasy API Key (<a href={"https://www.llmeasy.ru/register"}>register here</a>)
* The API Key belongs to the **GPT Key group**, and you plan to select a model from the same group

## Setup

<Steps>
  <Step title="Open the model settings page">
    In Cursor, click **Settings** in the lower-left corner, then go to **Models**. Scroll down to **API Keys**.

    <Frame>
      <img src="https://mintcdn.com/bettertoken/ejT8e_A0sPBKAOtG/images/cursor/settings-api-key.png?fit=max&auto=format&n=ejT8e_A0sPBKAOtG&q=85&s=295505e5defbee1c10687edc39a4d616" alt="Cursor settings page showing Settings, Models, API Keys, OpenAI API Key, and Override OpenAI Base URL fields." style={{ borderRadius: '0.5rem' }} width="2560" height="1600" data-path="images/cursor/settings-api-key.png" />
    </Frame>
  </Step>

  <Step title="Enter the Base URL and API Key">
    In **API Keys**, configure the fields in this order:

    1. Enable **Override OpenAI Base URL**
    2. Enter `https://www.llmeasy.ru/v1` in the Base URL field
    3. Paste your LLMEasy API Key into **OpenAI API Key**
    4. After the URL and key are filled in, enable the **OpenAI API Key** toggle

    Enter the key before turning on the toggle. This makes Cursor show the authentication confirmation dialog.
  </Step>

  <Step title="Enable the OpenAI API Key">
    In the confirmation dialog, click **Enable OpenAI API Key**.

    <Frame>
      <img src="https://mintcdn.com/bettertoken/3Irzp0wIG1eGzGGI/images/cursor/enable-openai-api-key.png?fit=max&auto=format&n=3Irzp0wIG1eGzGGI&q=85&s=e91657f5347421f34f13c8952cb5ee30" alt="Cursor confirmation dialog asking you to enable your own OpenAI API key." style={{ borderRadius: '0.5rem' }} width="802" height="248" data-path="images/cursor/enable-openai-api-key.png" />
    </Frame>
  </Step>

  <Step title="Refresh the model list and enable models">
    Back in **Models**, click the refresh button on the right before selecting a model. Wait until the model list finishes refreshing.

    Only select models that belong to the same LLMEasy group as your API Key. When using a GPT Key group API Key, choose a model ID from the **GPT Key group** in the model plaza, then turn on the toggle for that model.

    <Frame>
      <img src="https://mintcdn.com/bettertoken/3Irzp0wIG1eGzGGI/images/cursor/models-refresh-select.png?fit=max&auto=format&n=3Irzp0wIG1eGzGGI&q=85&s=b60c411c28cc0f3afc486368f327fa61" alt="Cursor Models section showing the refresh button and model toggles." style={{ borderRadius: '0.5rem' }} width="2560" height="1600" data-path="images/cursor/models-refresh-select.png" />
    </Frame>
  </Step>

  <Step title="Return to chat and turn off Auto">
    After setup, return to the Cursor chat screen and open the model picker below the input box. If **Auto** is enabled, turn **Auto** off first.

    <Frame>
      <img src="https://mintcdn.com/bettertoken/3Irzp0wIG1eGzGGI/images/cursor/chat-disable-auto.png?fit=max&auto=format&n=3Irzp0wIG1eGzGGI&q=85&s=57778e15214433605f2c877fe52a52db" alt="Cursor chat model picker showing the Auto toggle that should be turned off." style={{ borderRadius: '0.5rem' }} width="2560" height="1600" data-path="images/cursor/chat-disable-auto.png" />
    </Frame>
  </Step>

  <Step title="Select the model and start chatting">
    Choose the GPT Key group model you enabled, then start chatting.

    <Frame>
      <img src="https://mintcdn.com/bettertoken/3Irzp0wIG1eGzGGI/images/cursor/chat-select-model.png?fit=max&auto=format&n=3Irzp0wIG1eGzGGI&q=85&s=2ced2fcb24c78b3dff747967c651363f" alt="Cursor chat input with an enabled model selected from the model picker." style={{ borderRadius: '0.5rem' }} width="2560" height="1600" data-path="images/cursor/chat-select-model.png" />
    </Frame>
  </Step>
</Steps>

## Related FAQ

* [How to configure a custom OpenAI API Key and Base URL in Cursor](/en/faq/cursor/custom-openai-api)
* [Cursor Rules, AGENTS.md, and .cursorignore explained](/en/faq/cursor/rules-agents-cursorignore)
* [How to configure MCP in Cursor](/en/faq/cursor/mcp)
* [Claude Code vs Cursor for local development](/en/faq/claude-code/claude-code-vs-cursor)
* [OpenAI-compatible API vs Anthropic-compatible API](/en/faq/concepts/openai-compatible-vs-anthropic-compatible)

## Notes

* Do not use Claude Key group model IDs in the Codex / OpenAI-compatible flow
* Do not keep using hardcoded Claude model names; use a current GPT Key group model ID from the <a href={"https://www.llmeasy.ru/pricing"}>model plaza</a>
