Skip to main content
Cline is an AI coding agent for VS Code: it reads and edits your project files, runs terminal commands and sees a task through from start to finish. To do that, it needs a language model. RuAPI gives you access to all the major models — Claude, GPT, Gemini, DeepSeek, GLM, Qwen, Kimi — with a single API key, and works from Russia without a VPN. You top up your balance in USDT; no foreign-issued card required. For a short overview of why connecting Cline through RuAPI is the easier option from Russia, see www.ruapi.ai/cline-v-rossii; the setup steps are below.

Choosing a connection method

Cline talks to models through a provider, set in the API Provider field. Two providers work with RuAPI:
You can also connect Claude through OpenAI Compatible, but in that mode Cline doesn’t add cache markers, so only RuAPI auto-caching applies: on the first step of a new task at most the system prompt and tools are cached, and after a gap of more than 5 minutes the cache expires. The agent re-sends the entire task context at every step, so caching through the Anthropic provider is more reliable and cheaper. For Claude, use Anthropic.
You can configure both — Claude via Anthropic and everything else via OpenAI Compatible — and switch between them in the settings.

Before you start

1

RuAPI API key

Sign up at www.ruapi.ai and top up your balance (how to top up). Then go to Console → API Keys and click Create API key. Keys start with sk-.
2

Latest version of Cline

Install Cline from the VS Code Marketplace (search for “Cline”) or update it to the latest version — older versions may not list the newest Claude models.
No bank card needed: you can top up your balance in USDT. If you don’t have USDT yet, follow our step-by-step guide to buying it with rubles. Foreign-issued cards are accepted too.
The quickest way is to copy ready-made settings from the Console. Open Console → API Keys, click Connect Claude Code, Cline & more and pick Cline: the RuAPI address and your key are already filled in. The steps below do the same by hand. To set up the second provider, pick a model of the other type in the window — for example, deepseek-flash instead of Claude, or vice versa.
RuAPI API Keys page: the https://www.ruapi.ai address and the “Connect Claude Code, Cline & more” button

Console → API Keys: the “Connect Claude Code, Cline & more” button

The “Connect an app” window in the RuAPI Console with ready-made settings for Cline

The “Connect an app” window with Cline selected: the address and key are filled in (key hidden in the screenshot)

Claude via the Anthropic provider

1

Open Cline settings

Click the Cline icon in the VS Code sidebar, then ⚙️ at the top of the panel.
2

Fill in the fields

3

Save

Click Done — Cline is ready to go.
If the model you need isn’t in the Model list, update Cline: the list of Anthropic models is bundled with the extension and updated with each release.

DeepSeek, GPT and other models via OpenAI Compatible

1

Open Cline settings

Cline icon in the sidebar → ⚙️.
2

Fill in the fields

3

Check the model settings

Further down, under Model Configuration, tell Cline what the model supports:
  • Supports Images — enable it for GPT, Gemini and deepseek-flash. deepseek-v4-pro doesn’t accept images, so leave it off for that model.
  • Context Window Size — the model’s context window. Don’t set it higher than the model actually supports; otherwise, on long tasks Cline will send oversized requests and get errors.
  • Input Price / Output Price — optional. Enter the per-1M-token prices from the pricing page and Cline will show an estimated cost for each task.
4

Save

Click Done.
You’ll find the exact names of all models on the pricing page. Enter them exactly as listed, including any prefix and capitalization (e.g. kimi/kimi-k3).

Different models for Plan and Act

In Plan mode, Cline discusses the task and drafts a plan; in Act mode, it edits files and runs commands. Each mode can use its own model: in the settings, enable Use different models for Plan and Act and choose a model for each. Combinations that work well: You can also mix models from both providers (Anthropic and OpenAI Compatible).

Your first task

Open a project folder in VS Code and give Cline a task, for example:
Cline will show a plan and propose edits. To confirm that requests are going through RuAPI, open Console → Usage Logs: you’ll see an entry for each request with the model and cost. If Claude is connected via Anthropic, from the second or third step onward the entry details show how many tokens were read from the cache.

Keeping costs down

  • New topic, new task. The task context grows with every step and is sent in full each time. Start a new task when you move on to another part of the project.
  • Use a cheaper model for Act. Plan with a strong model and hand routine edits to deepseek-flash — DeepSeek caches automatically.
  • Use a separate key with a spending limit. Create a dedicated key for Cline and set a limit on it in Console → API Keys so the agent can’t drain your entire balance.
More detail, with the math, in How to cut your Claude Code and Cline bill.

Troubleshooting

  • Make sure you pasted the full RuAPI key (sk-...) with no extra spaces.
  • For the Anthropic provider, the URL is https://www.ruapi.ai without /v1; for OpenAI Compatible, it’s https://www.ruapi.ai/v1 with /v1.
The model name must match the one on RuAPI exactly — copy it from the pricing page. If you’re using the Anthropic provider and the model isn’t in the list, update Cline.
The newest Claude models (Opus 4.7 and later, plus all fifth-generation models) only support adaptive thinking. If Enable Extended Thinking is checked in an older version of Cline, the request is rejected. Update Cline or uncheck that box.
This can happen with DeepSeek in reasoning mode if you switch models mid-task. In most cases RuAPI automatically fixes and retries the request. If the error persists, start a new task.
The limit is 600 requests per minute per account; a single agent won’t come close to it in normal use. If the error persists, wait a minute and check whether several agents are sharing the same key.
Make sure Claude is connected via the Anthropic provider (with caching), not OpenAI Compatible. Console → Usage Logs shows which models your tasks use and how many tokens they consume.

What’s next

  • Kilo Code — a similar VS Code agent (the RuAPI URLs are entered differently there; see the guide).
  • Switching from Roo Code — Roo Code shut down on May 15, 2026; its GitHub repository is archived. That page shows how to switch to Cline.
  • Claude Code — Anthropic’s official terminal agent.
  • Models and prices — the full list of available models.