Before you start
You need a NagaAI API key and Kilo Code installed in your editor.Connect Kilo Code
1
Add the provider
Open Settings → Providers → Custom provider and fill in the fields.
2
Pick a model
Kilo Code loads the model list from
/v1/models. The list includes image, audio and embedding models, so search for the chat model you want, such as anthropic/claude-sonnet-5.5.3
Set the context limit
Set the context limit of each model you use. Without it Kilo Code assumes 0 and can’t manage the context. Take the value from
limits.context_window of the model’s chat operation in /v1/models.4
Check the connection
Send a short task. The request appears in Logs in your dashboard.
Use a config file
The same provider fits in~/.config/kilo/kilo.json. With @ai-sdk/openai, Kilo Code sends Responses requests with store: false, so each turn carries the full history:
Troubleshooting
401 invalid_api_key
Kilo Code sent no key or a wrong one. Re-enter your NagaAI API key in the provider settings. A provisioning key doesn’t work there.Context errors or no context management
The model has no context limit in Kilo Code. Set it fromlimits.context_window, as in the third step.