Skip to main content
Cursor is an AI code editor built on VS Code. You can point its chat and inline edits at RuAPI by overriding the OpenAI Base URL — Claude, GPT, Gemini and other models plug in by their IDs.
Overriding the base URL affects chat and inline commands. Cursor’s signature features (Tab autocomplete, the agentic Composer) rely on Cursor’s own models and may not work through a third-party endpoint — that’s expected.

Prerequisites

1

RuAPI account and API key

Console → Tokens → create an sk-... key. The balance tops up in USDT — see Top-up.

Setup

1

Open model settings

Cursor Settings (the gear icon top-right, or Cmd/Ctrl + Shift + J) → the Models section.
2

Enter the key and address

FieldValue
OpenAI API Keysk-your-key
Override OpenAI Base URLhttps://www.ruapi.ai/v1  — with /v1
Turn on the Override OpenAI Base URL toggle and paste the address.
3

Add models

In the model list, turn off the defaults and click + Add model — enter exact model IDs (from the pricing page). The ID must match verbatim.
4

Verify the key

Click Verify (or save). Once it passes, you’re set.

First request

Open chat (Cmd/Ctrl + L), pick your added model at the top, and send:
Explain what this file does.
A reply plus an entry in RuAPI Console → Logs means it’s working.

Troubleshooting

  • The key must be a RuAPI token (sk-...), not an OpenAI key.
  • Check that the Override Base URL toggle is on and the address is https://www.ruapi.ai/v1 with /v1.
  • Remove stray spaces when pasting.
The model ID must match RuAPI verbatim. Exact names are on the pricing page.
That’s normal: those features use Cursor’s own models. Chat and inline edits work reliably through a third-party Base URL.