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

# Cursor

> Use Cursor AI code editor with Routeway by overriding the OpenAI base URL.

Cursor is an AI-powered code editor. You can connect it to Routeway by overriding the OpenAI base URL in settings, giving you access to all Routeway models directly inside the editor.

<Note>
  Requires a valid Routeway API key. Get yours from the [dashboard](https://routeway.ai/dashboard/api-keys).
</Note>

***

## Setup

<Steps>
  <Step title="Open Cursor settings">
    Go to **Settings** → **Models** in Cursor.
  </Step>

  <Step title="Override the OpenAI Base URL">
    Set the **Override OpenAI Base URL** field to:

    ```
    https://api.routeway.ai/v1/
    ```
  </Step>

  <Step title="Set your API key">
    Enter your Routeway API key in the **API Key** field.
  </Step>

  <Step title="Add models">
    Click **+ Add Model** and enter the model ID you want to use. You can add multiple models. Browse available options at [routeway.ai/models](https://routeway.ai/models).

    Examples:

    * `gpt-4.1`
    * `claude-sonnet-4.5`
    * `gemini-2.5-flash`
  </Step>

  <Step title="Start coding">
    Select your added model from the model picker in Cursor and start using it for code generation, chat, and edits.
  </Step>
</Steps>

***

## Reference

| Setting                  | Value                           |
| ------------------------ | ------------------------------- |
| Override OpenAI Base URL | `https://api.routeway.ai/v1/`   |
| API Key                  | Your Routeway API key           |
| Model format             | Exact model ID (e.g. `gpt-4.1`) |
