opendunes
Coding agents
Copy page ▾

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.

  1. Give Cursor its own key.
  2. Enter the key and the address.
  3. Add the models.
  4. 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.

SettingSet to
OpenAI API Keyon, with your key pasted in
Override OpenAI Base URLon, set to https://opendunes.com/v1

Save the settings.

Watch out

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 IDSuits
anthropic/claude-sonnet-4.5chat and edits, all day
anthropic/claude-opus-5.5a 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

PartRuns on
Chat and its agent, on a model you addedOpenDunes, charged in DA
Tab completionCursor's own models, whatever you set here
Every requestCursor'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 seeMeansDo
401the key is wrong, paused, revoked or expired, or has a space around itpaste the key again
402the 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 spentmake a depositDepositMoney entering your balance, by CIB or Edahabia card.More on Balance and charges →, or raise the cap
404the model ID is not on saleadd the ID as it stands in Models
a connection errorthe network between Cursor and the addressin 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