How it works
In Kilo Code, a third-party service is added as a Custom provider. For RuAPI, it’s convenient to create two:
Claude is best added as the second provider, over the Anthropic protocol: requests then use Claude’s native format and prompt caching works. Claude also works through OpenAI Compatible, but without caching — long tasks end up costing several times more.
Unlike in Cline and Roo Code, both providers here use the URL with the trailing
/v1: Kilo appends the rest of the path itself.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 Kilo Code
Install Kilo Code from the VS Code Marketplace (search for “Kilo Code”) or update it to the latest version.
A provider for DeepSeek, GPT and other models
1
Open the provider settings
Open Kilo Code in the sidebar → ⚙️ (Settings) → Providers tab. Scroll to the bottom and click Custom provider.
2
Fill in the dialog
3
Save the provider
Click Submit — RuAPI models will appear in the model picker.
kimi/kimi-k3).
A provider for Claude
1
Add another provider
⚙️ → Providers → Custom provider.
2
Fill in the dialog
3
Save the provider
Click Submit.
Picking a model and running your first task
In the Kilo Code chat, open the model picker and choose, for example, RuAPI Claude → claude-sonnet-5-5 or RuAPI → deepseek-flash. Then open a project folder and give it a task:Keeping costs down
- New topic, new task. The context grows with every step and is sent in full each time.
- Use a cheaper model for routine work. Plan with a strong model and hand edits to
deepseek-flash. - Use a separate key with a spending limit. Create a dedicated key for Kilo Code and set a limit on it in Console → API Keys.
Troubleshooting
401 / Invalid key
401 / Invalid key
Make sure you pasted the full RuAPI key (
sk-...) with no extra spaces and that Base URL is set to https://www.ruapi.ai/v1.The model list doesn't load
The model list doesn't load
Double-check the URL and key, then click Fetch models. If that doesn’t help, enter model names manually, copying them from the pricing page.
Model not found (404 or 503)
Model not found (404 or 503)
The model name must match the one on RuAPI exactly. Pick Claude models from the
RuAPI Claude provider and all other models from RuAPI.400: The reasoning_content in the thinking mode must be passed back
400: The reasoning_content in the thinking mode must be passed back
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.
What’s next
- Cline and Roo Code — similar VS Code agents.
- Claude Code — Anthropic’s official terminal agent.
- Models and prices — the full list of available models.