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

  1. Create a key in Dashboard → Keys (prefix sk-ar-).

  2. In Kilo Code open Settings (gear) → Providers, scroll down and click Custom provider:

    FieldValue
    Provider IDanyrouter
    Display nameAnyRouter
    Provider APIOpenAI Compatible
    Base URLhttps://anyrouter.dev/api/v1
    API keyyour sk-ar- key
    Modelsanyrouter/free (add anyrouter/auto or any catalog id)

    Kilo Code can read the list from /models; if a model is missing, type its id by hand.

  3. 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 idWhat it does
anyrouter/freeBest 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/autoTop models (free and paid) with health-aware failover. Paid members use credits.
owner/modelA 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

SymptomFix
401The API key is not an active sk-ar- key. Check Keys.
404 or model not foundThe model id must match exactly, including the owner/ prefix.
400 no_eligible_modelsPrivacy 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