Cursor
Run Cursor's chat on models you pay for in DADAThe Algerian dinar, the one currency the docs show.More on Balance and charges →.
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.
- Give Cursor its own key.
- Enter the key and the address.
- Add the models.
- Pick a model and check the charge.
1. Give Cursor its own key
Create an API keyAPI keyThe key you create and send with every request that calls a model.More on API keys → named Cursor, and cap it on API Keys (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.
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.
3. Add the models
Choose + Add model and type the model IDModel IDThe name a request calls a model by, lab/model, copied from Models.More on Models → exactly as it stands on its page in 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.
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 balanceBalanceWhat you can spend, in DA.More on Balance and charges → is at zero or below, cannot pay the request's hold, or the key's cap is spent | make a depositDepositMoney entering your balance, by CIB or Edahabia card.More on Balance and charges →, 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. Terminal agents: Coding agents.
Next: OpenCode · MCP servers
Last modified on