> ## Documentation Index
> Fetch the complete documentation index at: https://docs.modular.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect with Cursor

> Set up Cursor to use Modular Cloud models

This page explains how to run models from Modular Cloud on
[Cursor](https://www.cursor.com/).

<Note>
  Custom models work in **Chat**, **Composer**, and **Edit** modes. Tab
  autocomplete uses Cursor's built-in model and doesn't support custom endpoints.
</Note>

## Before you begin

Make sure you have:

* A Modular Cloud [account](https://console.modular.com/signup).
* A Modular Cloud [API key](/administration/api-keys).
* [Cursor](https://www.cursor.com/) installed.

## 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:

   ```text theme={null}
   https://api.modular.com/v1
   ```

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](/models) 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:

   ```text theme={null}
   minimax/minimax-m3
   ```

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.
