Skip to main content
This page explains how to run models from Modular Cloud on Cursor.
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:
  1. Open Cursor and go to Settings > Models.
  2. Expand the API Keys section.
  3. Paste your Modular Cloud API key in the OpenAI API Key field.
  4. Enable Override OpenAI Base URL and paste the following URL:
Cursor automatically saves your changes.

Add a model

To add a Modular Cloud model to Cursor:
  1. Choose the model that you want from our list of shared endpoints or use a dedicated endpoint if applicable.
  2. Open Settings > Models in Cursor.
  3. In the Models section, click View All Models > Add Custom Model.
  4. Enter the model ID:
  5. Click Add and make sure the model is enabled.
Once that’s done, open a Chat, Composer, or Edit panel in Cursor and select the Modular Cloud model from the model picker.