deepseek/deepseek-v4-1-flash, charged to your balance. You don’t need a Kilo account.
This guide was last checked with Kilo Code 7.8.18.
Before you start
- Get an API key and a model alias as described in Before you connect. The base URL is
https://ai.sinarcloud.com/v1. Kilo Code takes these values in its settings, so you don’t need to set environment variables. - Choose a model whose Model capabilities list Chat completions, Tool use, and Streaming. This guide uses
deepseek/deepseek-v4-1-flash.
Install Kilo Code
Ctrl+Shift+X (Cmd+Shift+X on macOS). Search for Kilo Code.In the results, find Kilo Code: AI Coding Agent, Copilot, and Autocomplete, published by Kilo Code, and click Install.
Kilo Code in the Extensions view, ready to install
Open Kilo Code

Kilo Code asks how you want to work
Open Kilo Settings

Kilo Settings opens in its own tab
Choose Custom provider

Custom provider, at the end of the Popular providers list
Enter the ID and display name
- Provider ID:
sinarcloud - Display name:
SinarCloud - Provider API: keep OpenAI Compatible.

The ID, the display name, and OpenAI Compatible
Enter the base URL and your API key
- Base URL:
https://ai.sinarcloud.com/v1 - API key: your API key. The form says it’s optional, but SinarCloud needs it. Kilo Code shows it as dots.

The SinarCloud base URL and your API key
kilo.jsonc. It stores the API key separately, so the key isn’t in that file.Choose the model
deepseek/deepseek-v4-1-flash, and click Add 1 model(s).The rest of the list stays open. Click Cancel to close it. If the list doesn’t appear, click Fetch models, or type the model alias in ID yourself.
Only deepseek/deepseek-v4-1-flash selected
Set the model details
DeepSeek V4.1 Flash.Tick Image only if the model’s Model capabilities list Image input or Vision. The form doesn’t ask for the model’s context window. You can add it later, as described in Set the context window.
The model, with Image ticked, above the Submit button
Submit the form

SinarCloud under Connected providers
Choose the default model
SinarCloud in the search box. Select DeepSeek V4.1 Flash, labeled SinarCloud, and click Select. Then click Save at the bottom of the page.Kilo Code saves the model as sinarcloud/deepseek/deepseek-v4-1-flash: your Provider ID, a slash, and the model alias. New tasks start with this model.
Search for SinarCloud to see only the models you added
Start a task
Add a GET /products/:id route to src/server.js, and press Enter.To use another SinarCloud model in a chat, click the model name in the chat box, type SinarCloud, and choose the model.
The chat box with DeepSeek V4.1 Flash selected
Find the requests in Usage

The Usage page, with the API key filter at the top
Set the context window
The Custom provider form doesn’t ask for the model’s context window. Add it to Kilo Code’s config file. Kilo Code then shows how full the context window is, and compacts long sessions before they reach it.- At the top of Kilo Settings, click Global Config. Kilo Code opens
kilo.jsonc. - Find
"sinarcloud", then your model undermodels. Add alimitwith the model’s Context window (tokens) and Maximum output (tokens) from its details on the Models page in the console. - Save the file, then click Reload at the top of Kilo Settings.

The SinarCloud entry in kilo.jsonc, with the limit added
limit when you change other settings.
Use a lower-cost model for quick tasks
Kilo Code also uses your model for quick tasks, such as naming sessions and Enhance prompt. To use another SinarCloud model for them:- Add the model to SinarCloud with Edit provider.
- In Kilo Settings, click Models, and choose the model next to Small Model.
- Click Save.
What works differently
- Kilo Code shows tokens, not costs. Kilo Code doesn’t know SinarCloud prices. To see what a session cost, use the Usage page in the console.
- Images need a model with image input. If Image isn’t ticked for a model, Kilo Code doesn’t send your images to it. Instead, it tells the model that it can’t read them.
- Autocomplete doesn’t run on SinarCloud. The Autocomplete model list only offers code completion models that Kilo Code supports, and SinarCloud models aren’t among them.
Troubleshooting
Kilo Code shows errors from SinarCloud in the chat. Click Details under a message to see the status code and the response, including thex-request-id header. Include that ID if you contact support.
Invalid API key.
Invalid API key.
******** instead of your saved key. Paste your whole key, then click Submit. If the key has expired or been revoked, create a new one.The requested model does not exist or is not available for this endpoint.
The requested model does not exist or is not available for this endpoint.
The requested model does not support image input.
The requested model does not support image input.
Compaction exhausted: context still exceeds model limits after 3 attempts. Start a new session to continue.
Compaction exhausted: context still exceeds model limits after 3 attempts. Start a new session to continue.
limit.context in kilo.jsonc matches the model’s Context window (tokens), as described in Set the context window, and click Reload in Kilo Settings. Then start a new task with the New Task icon (+) at the top of the Kilo Code panel.Requests fail because your balance is empty
Requests fail because your balance is empty
402 error when your balance is empty or negative and no token credits remain for the model. Add balance, then send your message again.