# Cursor

> Use Cursor with a KONG API AI key. Set the KONG API AI key and API address under Models in Cursor, then add the models your key allows.

Source: https://kongapiai.com/en/docs/cursor

Cursor sends its chat and agent requests to KONG API AI once you set the key and the API address in its settings.

## Set the key

1. Open **Cursor Settings** (the gear icon, or Ctrl+, on Windows, Cmd+, on Mac).
2. Open **Models**, then **API Keys**.
3. Turn on **OpenAI API Key** and paste your key, `gw_live_…`.
4. Turn on **Override OpenAI Base URL** and paste `https://kongapiai.com/v1`.

## Add a model

1. In **Models**, choose **+ Add model**.
2. Enter the name of a model your key allows, for example `gpt-6-astra`. See the list in [Models and prices](https://kongapiai.com/en/docs/models).
3. In the chat or agent panel, open the model list and pick the model you added.

## Good to know

- Tab completions always use Cursor's own models, not your key.
- **Auto** and some other Cursor modes may not use your key. Pick the model you added.
- **Invalid API key:** check that you pasted your KONG API AI key, not an OpenAI key.
