# Cursor

Run Cursor's chat on models you pay for in DA.

Cursor takes an OpenAI key and lets you replace the address it sends to. With your OpenDunes key and address there, Cursor's chat runs on any text model OpenDunes sells, through [`POST /v1/chat/completions`](/docs/reference/chat-completions).

1. [Give Cursor its own key](#1-give-cursor-its-own-key).
2. [Enter the key and the address](#2-enter-the-key-and-the-address).
3. [Add the models](#3-add-the-models).
4. [Pick a model and check the charge](#4-pick-a-model-and-check-the-charge).

## 1. Give Cursor its own key

Create an API key named *Cursor*, and cap it on *API Keys* ([API keys](/docs/api-keys) shows how). A long session sends many requests: the cap stops this key alone, and *Activity* shows what Cursor spent.

## 2. Enter the key and the address

Open *Cursor Settings*, then *Models*, and open the *API Keys* section.

| Setting | Set to |
|---|---|
| *OpenAI API Key* | on, with your key pasted in |
| *Override OpenAI Base URL* | on, set to `https://opendunes.com/v1` |

Save the settings.

<div class="watch-out">
<p>The address you set carries every model that uses the OpenAI key, not only the ones you add in step 3. A model OpenDunes does not sell under that name gets a 404.</p>
</div>

## 3. Add the models

Choose *+ Add model* and type the model ID exactly as it stands on its page in [Models](/docs/models). Add one line per model.

| Model ID | Suits |
|---|---|
| `anthropic/claude-sonnet-4.5` | chat and edits, all day |
| `anthropic/claude-opus-5.5` | a large change across many files |

Pick models that call tools: Cursor's agent reads and edits your files through tools.

## 4. Pick a model and check the charge

Pick one of your models in the chat's model menu and send one message. Then open *Activity*, in the app on opendunes.com: the request is there, with its charge in DA.

## What stays on Cursor's side

| Part | Runs on |
|---|---|
| Chat and its agent, on a model you added | OpenDunes, charged in DA |
| Tab completion | Cursor's own models, whatever you set here |
| Every request | Cursor's servers first: Cursor builds the prompt, then sends it to the address you set |

Cursor's own terms for requests made with your own key are on cursor.com.

## Errors

| You see | Means | Do |
|---|---|---|
| 401 | the key is wrong, paused, revoked or expired, or has a space around it | paste the key again |
| 402 | the balance is at zero or below, cannot pay the request's hold, or the key's cap is spent | make a deposit, or raise the cap |
| 404 | the model ID is not on sale | add the ID as it stands in Models |
| a connection error | the network between Cursor and the address | in *Cursor Settings*, *Network*, set *HTTP Compatibility Mode* to HTTP/1.1 |

Every other status: [Errors and retries](/docs/errors-and-retries). Terminal agents: [Coding agents](/docs/coding-agents).

Next: [OpenCode](/docs/cookbook/opencode) · [MCP servers](/docs/cookbook/mcp-servers)
