# Cursor

Use your own Boundless key in Cursor: where to set the base URL and model, what stays on Cursor's backend, a verify step and common errors.


Cursor honours a custom key in part of the product only. Tab completion and the Auto and agent models stay on Cursor's own backend no matter what you set, so you have to select your custom model explicitly.

## Install

Install Cursor from its own documentation first. Then pick one way to point it at Boundless.

Run this in a terminal on macOS or Linux and choose **Cursor**:

```bash
curl -fsSL https://boundless.md/install | sh
```

Cursor keeps its configuration in the app's settings, not in a file, so setup prints the steps instead of writing them. Run `curl -fsSL https://boundless.md/install | sh` and choose **Cursor**, or follow the steps below.

## Configure

### Cursor

Settings → Models. Fill in **Override OpenAI Base URL**, put your key in **OpenAI API Key** (sent to whatever base URL you set), and add the model under **Custom models**.

```json
{
  "model": "deepseek/deepseek-v4.1-flash",
  "baseURL": "https://api.inference.boundless.network/v1",
  "apiKey": "your-boundless-key"
}
```

Two things stay on Cursor's backend. Tab completion always uses a Cursor model, and Composer and Cursor's agent models refuse a custom key, so select your custom model explicitly instead of leaving the picker on Auto.

## Model ids

The examples use `deepseek/deepseek-v4.1-flash`. Use any id from `GET https://api.inference.boundless.network/v1/models`; the [models page](https://inference.boundless.network/models) lists each one with its price and limits.

## Verify

To check the base URL and key on their own, list the models the gateway serves. A list of models means both are right. A `401` means the key is missing or wrong:

```bash
curl https://api.inference.boundless.network/v1/models -H "Authorization: Bearer YOUR_API_KEY"
```

Then send a short message in a new session and check that a reply comes back.

## Common errors

| What you see | What it usually is |
| --- | --- |
| `401` on every request | The key in **OpenAI API Key** is wrong, or the base URL is not `https://api.inference.boundless.network/v1`. |
| The reply comes from a Cursor model | The picker is on Auto. Select your custom model explicitly. |
| `403` with `model_not_allowed` | Your team admin has not enabled that model for you. Ask them, or pick another. See [Model access](https://inference.boundless.network/docs/teams#model-access). |

Every status and code is on the [Errors](https://inference.boundless.network/docs/errors) page. Other harnesses are on the [Coding Agents & Harnesses](https://inference.boundless.network/docs/coding-agents-and-harnesses) page.
