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

# Cursor

> Use the latest MiniMax M-series models for AI programming in Cursor.

<div style={{background:"#fffbeb",borderLeft:"4px solid #d97706",padding:"12px 16px",borderRadius:"6px",margin:"16px 0"}}>[**Cursor**](https://cursor.com) is Anysphere's AI-first IDE forked from VS Code, with built-in agents and codebase understanding.</div>

## Install Cursor

1. Download and install Cursor from the [Cursor website](https://cursor.com/agents).
2. Open Cursor, click the **"Settings"** button in the top-right corner to enter the settings page.
3. Click the **"Sign in"** button to log in to your Cursor account.

![cursor-install](https://filecdn.minimax.chat/public/e4755804-3b87-43e3-b595-5c0806f72853.png)

## Configure MiniMax API

<Warning>
  **Important: Clear OpenAI Environment Variables Before Configuration**

  Before configuring, ensure you clear the following OpenAI-related environment variables to avoid conflicts with MiniMax API:

  * `OPENAI_API_KEY`
  * `OPENAI_BASE_URL`
</Warning>

<Warning>
  **Note: Custom models require a Cursor Pro subscription or above.**

  Without Cursor Pro, configuration will result in the following error:

  `The model MiniMax-M3 does not work with your current plan or api key`
</Warning>

<Warning>
  **Known issue: "Override OpenAI Base URL" is a global setting**

  Once enabled, the override applies to **all** API Keys you've configured in Cursor — including Anthropic / GPT keys for Cursor's built-in models. This is acknowledged by Cursor staff: when you set a base URL, all your API Keys see it ([forum thread](https://forum.cursor.com/t/anthropic-models-break-when-override-openai-baseurl-is-set/144899)).

  If your Cursor-native Claude / GPT models stop working after enabling Override, turn it off when you're not using MiniMax. Cursor currently does not support per-model base URLs ([open feature request](https://forum.cursor.com/t/custom-base-urls-for-each-custom-model/147219)).
</Warning>

1. Click **"Models"** in the left sidebar to open the model configuration page.
2. Expand the **"API Keys"** section and configure the API information:
   * Enable "Override OpenAI Base URL";
   * Enter the MiniMax base URL (for international users, use `https://api.minimax.io/v1`; for users in China, use `https://api.minimaxi.com/v1`)
3. Paste the API Key obtained from the [MiniMax Developer Platform](https://platform.minimax.io/user-center/payment/token-plan) (For users in China, visit [MiniMax Developer Platform](https://platform.minimaxi.com/user-center/payment/token-plan)) into the OpenAI API Key field.
4. Click the button on the right side of the **"OpenAI API Key"** field.

![cursor-configuration](https://filecdn.minimax.chat/public/09b8444b-1dfd-4aaa-8b3a-7d2918971c6e.png)

5. Click the **"Enable OpenAI API Key"** button in the pop-up window to complete verification.

![cursor-verify](https://filecdn.minimax.chat/public/0b716077-5312-434b-939f-c952e5ed8778.png)

6. In the **Models** section, click the **"View All Models"** button, and then click the **"Add Custom Model"** button.

![](https://filecdn.minimax.chat/public/0c4bebfb-2859-482e-872b-11d6d361bc63.jpeg)

7. Enter the model name **"MiniMax-M3"**, then click the **"Add"** button.

<Note>
  Use the exact model name `MiniMax-M3` (capital M's, lowercase i, hyphen) — match the spelling shown in MiniMax docs.
</Note>

![](https://file.cdn.minimax.io/public/e7ab1c99-6442-4e48-8ed9-479b87b7bab7.png)

8. Enable the newly added **"MiniMax-M3"** model.
9. Select the **"MiniMax-M3"** model in the chat panel and start using "MiniMax-M3" for development.

<Note>
  **Cursor Tab autocomplete is not powered by your custom MiniMax key.** Tab is a Cursor Pro feature that always uses Cursor's own model. Custom models only work in Chat / Composer / Edit modes.
</Note>
