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

# Cursor

Cursor is an AI-assisted code editor. Follow the steps below to connect Cursor with a model hosted on [SambaNova Cloud](https://cloud.sambanova.ai/).

## Prerequisites

* Make sure you have the [Cursor editor installed](https://cursor.com/en) and an active SambaNova Cloud account.
* Obtain your **SambaNova API key** and **model name** from the [SambaNova Cloud Dashboard](https://cloud.sambanova.ai/dashboard).

## Step 1: Launch Cursor and open model settings

1. Open the Cursor application.
2. From the **left-hand panel**, navigate to **Settings**.
3. Click on the **Models** section.

## Step 2: Add SambaNova as a custom model

1. Scroll down to the **API Keys** section.
2. Enable the **Override OpenAI Base URL** toggle.
   * Enter: `https://api.sambanova.ai/v1`
3. Enter your **SambaNova API Key** in the corresponding field.
4. (Required) Also enter a valid **OpenAI API Key** – this is needed by Cursor to activate the editor.
5. Click the **+ Add Custom Model** button.
6. In the **Model Name** field, paste the model name from your SambaNova Cloud dashboard.
   * Example: `Llama-4-Maverick-17B-128E-Instruct`

## Step 3: Disable other models

1. In the models list, **disable all default models**.
2. Ensure only your newly added **SambaNova model** remains enabled.

## Step 4: Confirm and finalize

1. Under **API Keys**, double-check that:
   * **OpenAI API Key** is entered.
   * **Override OpenAI Base URL** is enabled.
2. You may see a confirmation popup — click **Confirm** or **Allow** if prompted.

## Step 5: Start using SambaNova in Cursor

1. In the **right-hand panel**, locate and select the **SambaNova model**.
2. Begin coding or chatting — your requests will now be routed to your selected model on SambaNova Cloud.
