Prerequisites
RuAPI account and API key
Console → Tokens → create an
sk-... key. The balance tops up in USDT — see Top-up.VS Code and the Cline extension
Install Cline from the VS Code Marketplace (or cline.bot) and open its icon in the sidebar.
Setup
Choose OpenAI Compatible and fill the fields
| Field | Value |
|---|---|
| API Provider | OpenAI Compatible |
| Base URL | https://www.ruapi.ai/v1 — with /v1 |
| API Key | sk-your-key |
| Model ID | exact ID from the pricing page |
First task
In Cline’s input, describe a task, for example:Troubleshooting
401 / Unauthorized
401 / Unauthorized
Model not found / 404
Model not found / 404
The Model ID must match RuAPI verbatim. Exact names are on the pricing page.
The agent burns through the balance fast
The agent burns through the balance fast
Cline sends a lot of context and many steps — tokens go faster than in plain chat. Create a separate key with a spend limit in Console → Tokens.