Custom models work in Chat, Composer, and Edit modes. Tab
autocomplete uses Cursor’s built-in model and doesn’t support custom endpoints.
Before you begin
Make sure you have:Set the base URL
To point Cursor at the Modular Cloud API:- Open Cursor and go to Settings > Models.
- Expand the API Keys section.
- Paste your Modular Cloud API key in the OpenAI API Key field.
-
Enable Override OpenAI Base URL and paste the following URL:
Add a model
To add a Modular Cloud model to Cursor:- Choose the model that you want from our list of shared endpoints or use a dedicated endpoint if applicable.
- Open Settings > Models in Cursor.
- In the Models section, click View All Models > Add Custom Model.
-
Enter the model ID:
- Click Add and make sure the model is enabled.