Overview
Cursor supports bring-your-own-key (BYOK) providers, but custom API keys only work with standard chat models. Use LemonData here as an OpenAI-compatible endpoint for chat-style editor workflows, not as a full replacement for every Cursor model feature.Configuration
- Open Cursor Settings (
Cmd/Ctrl + ,) - Navigate to Models in the left sidebar
- Scroll down to the OpenAI API Key section
- Enter your LemonData API key
- Enable Override OpenAI Base URL
- Set the Base URL to:
Model Selection
After configuration, prefer standard chat models exposed through LemonData:Recommended Models for Coding
| Model | Best For |
|---|---|
gpt-5.4 | General coding, debugging, chat |
gpt-5-mini | Fast edits and lightweight prompts |
What Works Best
Chat and editor flows
Use LemonData through Cursor for:- Code explanations
- Bug fixing
- Refactoring suggestions
- Documentation generation
What stays on Cursor-managed models
These features do not reliably switch to your LemonData endpoint:- Tab Completion
- Specialized non-standard chat models
- Provider-specific features that Cursor only enables on built-in models
Troubleshooting
Models not showing up
Models not showing up
Cursor caches model and provider state. Restart Cursor after configuring the API key and base URL.
Model unsupported in BYOK mode
Model unsupported in BYOK mode
Custom API keys only work with standard chat models. If a model uses specialized Cursor infrastructure, switch to a standard chat model such as
gpt-5.4.Authentication errors
Authentication errors
Verify your API key is correct and has sufficient balance.
Another provider stopped working after enabling LemonData
Another provider stopped working after enabling LemonData
Cursor’s BYOK configuration can affect other provider flows. If another model path breaks after enabling the OpenAI base URL override, disable the override and restart Cursor.
Tips
Use appropriate models
Use
gpt-5-mini for quick chat-style tasks and gpt-5.4 for heavier coding work.Check your balance
Monitor usage in your LemonData dashboard.