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

# Cursor

> Cursor is an AI-powered integrated development environment (IDE) developed by Anysphere. Follow the directions below to route Cursor traffic through the Connect AI LLM Gateway.

## Prerequisites

Before you can configure Cursor to use the Connect AI LLM Gateway, you must register a provider, create a routing rule, create a project, and issue a virtual key. See [LLM Gateway](/en/LLM-Gateway/LLM-Gateway) for details.

<Note>A Connect AI Personal Access Token (PAT) is not accepted by the LLM Gateway. Only a virtual key authenticates requests.</Note>

## Configure Cursor

<Steps>
  <Step>
    Open Cursor and go to **Cursor Settings** > **Models**.
  </Step>

  <Step>
    Scroll down to the bottom and expand **API Keys**.
  </Step>

  <Step>
    In **OpenAI API Key**, enter your virtual key obtained from the Connect AI LLM Gateway.
  </Step>

  <Step>
    Enable **Override OpenAI Base URL**.
  </Step>

  <Step>
    Enter the new OpenAI Base URL—*[https://cloud.cdata.com/gateway/v1](https://cloud.cdata.com/gateway/v1)*.
  </Step>

  <Step>
    Close **Cursor Settings**. Changes take effect immediately.
  </Step>
</Steps>

Cursor routes all requests through the Connect AI LLM Gateway. The gateway selects the provider and model based on your project's routing rule.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.