Kilo Code with AnyRouter — free models, one API key
Add AnyRouter to Kilo Code as a custom OpenAI-compatible provider and run free models with anyrouter/free.
Kilo Code supports custom OpenAI-compatible providers, so AnyRouter works directly.
Set it up
-
Create a key in Dashboard → Keys (prefix
sk-ar-). -
In Kilo Code open Settings (gear) → Providers, scroll down and click Custom provider:
Field Value Provider ID anyrouterDisplay name AnyRouterProvider API OpenAI CompatibleBase URL https://anyrouter.dev/api/v1API key your sk-ar-keyModels anyrouter/free(addanyrouter/autoor any catalog id)Kilo Code can read the list from
/models; if a model is missing, type its id by hand. -
Select an AnyRouter model, run a task, and check request logs.
Kilo Code calls tools, so pick a model with tool calling (Chat Completions models).
Model ids
| Model id | What it does |
|---|---|
anyrouter/free | Best free model available now, with fallback. No credits. Needs Go ($2/mo, or free when you donate one working provider key); no daily cap. See Free Tier. |
anyrouter/auto | Top models (free and paid) with health-aware failover. Paid members use credits. |
owner/model | A specific model, e.g. z-ai/glm-5.2. Ids are in the catalog. |
Own provider keys (BYOK) are billed by your provider: see Use your own provider keys and BYOK.
Troubleshooting
| Symptom | Fix |
|---|---|
| 401 | The API key is not an active sk-ar- key. Check Keys. |
| 404 or model not found | The model id must match exactly, including the owner/ prefix. |
400 no_eligible_models | Privacy or routing settings (Zero Data Retention, blocked providers) excluded every candidate. Relax them or pick a specific model. |
AnyRouter routes requests to third-party models. Models and outputs are provided as is, with no warranty; you use them at your own risk. Disclaimer