Point Cursor's custom OpenAI base URL at OpenDunes to use any model billed in DA.
Cursor has first-class support for custom OpenAI-compatible endpoints. Routing it through OpenDunes lets you use any model in the catalog — not just the ones Cursor bundles — and keeps all billing in Algerian Dinars on a single balance.
Cmd+,, then search "Models").In the OpenAI Base URL field enter:
In the API Key field enter your OpenDunes key (from Dashboard → Keys):
Save the settings. Cursor will now route all model calls through OpenDunes.
Cursor's model dropdown only shows models it knows about by default. Add OpenDunes models manually:
anthropic/claude-opus-4.8 or google/gemini-2.5-pro.The model will now appear in Cursor's model picker in the chat panel and Cmd+K inline editor.
Open the Cursor chat panel and send a test message. You should get a response within a few seconds. Check Dashboard → Analytics to confirm the request appears and see the DA cost.
Cursor sessions can accumulate significant token usage — especially with large context or long refactoring sessions. Create a dedicated key with a spend cap:
cursor.When the budget is hit, Cursor will show an error and pause requests until you raise the cap or add balance.
| Use case | Recommended model |
|---|---|
| Inline edits (Cmd+K) | anthropic/claude-sonnet-5 |
| Full-file rewrites | anthropic/claude-opus-4.8 |
| Fast autocomplete | google/gemini-2.5-pro |
| Large codebases (big context) | google/gemini-2.5-pro |
Verify current DA pricing on the models page before committing to a model.
| Symptom | Likely cause | Fix |
|---|---|---|
| "Invalid API key" in Cursor | Key entered with whitespace | Re-paste the key character by character |
| Model not in dropdown | Not added as custom model | Add it via Settings → Models → Add Model |
402 error in Cursor chat | Balance or budget exhausted | Top up DA or raise key budget |
| Autocomplete using wrong model | Cursor has a separate autocomplete model setting | Check Settings → Autocomplete and set the same custom base URL |