# Cursor

Source: https://docs.aicentos.com/en/clients/cursor

Language: en

> Use aicentos in Cursor — connect through custom OpenAI-compatible settings

Cursor supports a custom OpenAI-compatible API. Point the Base URL at aicentos and fill in the API Key, and the models aicentos offers become available in Chat / Composer.

## Prerequisites

First create a dedicated key for Cursor on the console's "API Keys" page (naming it `cursor-desktop` or `cursor-work` makes usage easier to track).

## Configuration to fill in

| Field    | Value                                              |
| -------- | -------------------------------------------------- |
| API Key  | The key created in the console                     |
| Base URL | `https://aicentos.com/v1`                          |
| Model    | A model name from the Model Gallery in the console |

## Setup steps

* Open Cursor's settings.
* Go to the **Models** or **API Keys** area.
* Find the **OpenAI API Key** / custom OpenAI-compatible settings / **Base URL** override option.
* Enter the API Key you created in the aicentos console.
* Set the Base URL to: `https://aicentos.com/v1`
* To add models manually, enter the model names from the console (see [Supported models](https://docs.aicentos.com/en/billing/models-list)).
* Save and click **Verify**, or simply start a new conversation to test.

## Test

After saving, send a simple prompt first to confirm the connection works before using Composer / Chat for real.

## Notes

* A custom API Key usually only applies to standard chat models.
* **Tab completion** and some **Agent** capabilities may still go through Cursor's own service.
* If Verify fails, check: whether the Base URL is correct (only up to `/v1`), whether the key has extra spaces, whether the model is available, whether the account balance is sufficient, and whether the custom OpenAI provider is selected.