Use Redline in Kilo Code
Kilo Code, a descendant of Roo and Cline, lets you add a custom OpenAI Compatible provider and will auto-fetch the model list from the gateway's /v1/models.
Add a custom provider
In Settings, open the Providers tab, click Custom provider and fill in:
- Provider API: OpenAI Compatible
- Base URL: https://redline-gateway.pages.dev/v1
- API key: your key
Kilo queries https://redline-gateway.pages.dev/v1/models and offers a searchable model picker, so you rarely type an id by hand. For the CLI, define the provider in kilo.json:
{
"provider": {
"redline": {
"npm": "@ai-sdk/openai-compatible",
"options": {
"baseURL": "https://redline-gateway.pages.dev/v1",
"apiKey": "{env:REDLINE_API_KEY}"
},
"models": {
"deepseek/deepseek-chat-v3.1": {
"name": "DeepSeek Chat v3.1",
"limit": { "context": 163840, "output": 8192 }
}
}
}
},
"model": "redline/deepseek/deepseek-chat-v3.1"
}
For agentic editing, pick a tool-capable model; the limits shape how Kilo manages context.