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
| Field | Role |
|---|---|
| API Key | Authentication credential |
| Base URL | OpenAI-compatible endpoint, usually a /v1 URL |
| Model ID | Model identifier recognized by the provider |
| Custom model | Manually added or selected model inside Cursor |
Recommended steps
- Create an API Key in the provider dashboard.
- Add the API Key in Cursor model settings.
- Enter the provider Base URL in Override OpenAI Base URL.
- Add or select a Model ID supported by the provider.
- 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 ishttps://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.
Related docs
- Cursor Rules, AGENTS.md, and .cursorignore
- How to configure MCP in Cursor
- OpenAI-compatible API vs Anthropic-compatible API
- What are model_provider, base_url, and wire_api?

