Skip to main content
Cline is a VS Code extension — an autonomous coding agent that reads and edits files, runs commands, and works task by task. It connects to RuAPI through the OpenAI Compatible provider — one address opens every model.

Prerequisites

1

RuAPI account and API key

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

VS Code and the Cline extension

Install Cline from the VS Code Marketplace (or cline.bot) and open its icon in the sidebar.

Setup

1

Open Cline settings

In the Cline panel, click ⚙️ → the provider selector (API Provider).
2

Choose OpenAI Compatible and fill the fields

FieldValue
API ProviderOpenAI Compatible
Base URLhttps://www.ruapi.ai/v1  — with /v1
API Keysk-your-key
Model IDexact ID from the pricing page
3

Save

Click Done / Save. Cline is ready.
For agent work, pick a strong model — the Claude Sonnet or Claude Opus families hold up well across Cline’s long, multi-step runs.

First task

In Cline’s input, describe a task, for example:
Add error handling to the parseConfig function in config.ts
Cline proposes a plan and edits. An entry in RuAPI Console → Logs confirms requests are going through RuAPI.

Troubleshooting

  • The key must be a RuAPI token (sk-...).
  • Check that OpenAI Compatible is selected and the Base URL is https://www.ruapi.ai/v1 with /v1.
The Model ID must match RuAPI verbatim. Exact names are on the pricing page.
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.