Skip to main content

Short answer

To configure a custom OpenAI-compatible API in Cursor, keep three fields aligned: API Key, Base URL, and Model ID. API Key authenticates the request. Base URL decides which provider receives the request. Model ID decides which model to use. All three should come from the same provider or compatible gateway.

When this matters

  • You want Cursor to use a third-party OpenAI-compatible provider
  • You need to set Override OpenAI Base URL
  • You are adding a custom model
  • You see model not found or authentication failures
  • You want Cursor, Codex, and other tools to share one model routing layer

Field meanings

FieldRole
API KeyAuthentication credential
Base URLOpenAI-compatible endpoint, usually a /v1 URL
Model IDModel identifier recognized by the provider
Custom modelManually added or selected model inside Cursor
  1. Create an API Key in the provider dashboard.
  2. Add the API Key in Cursor model settings.
  3. Enter the provider Base URL in Override OpenAI Base URL.
  4. Add or select a Model ID supported by the provider.
  5. Save and verify with a simple request.

Common mistakes

  • Using an API Key from one provider and Base URL from another.
  • Putting a Claude model name into OpenAI-compatible configuration.
  • Using a UI display name instead of an API model ID.
  • Thinking Cursor Rules affect API authentication.
  • Forgetting that a global override can affect other OpenAI models.

About LLMEasy

Cursor and similar external tools usually use OpenAI-compatible setup. LLMEasy Base URL is https://www.llmeasy.ru/v1, and model IDs come from the GPT Key group in the model plaza. Do not put the Claude Code https://www.llmeasy.ru into Cursor OpenAI-compatible configuration.

References