Cline with AnyRouter — free models, one API key
Use Cline with AnyRouter's OpenAI-compatible base URL, free models via anyrouter/free, or any model on one sk-ar- key.
Cline has a built-in OpenAI Compatible provider, so AnyRouter works with no plugin.
Set it up
-
Create a key in Dashboard → Keys (prefix
sk-ar-). -
In Cline settings (gear icon), set:
Field Value API Provider OpenAI CompatibleBase URL https://anyrouter.dev/api/v1API Key your sk-ar-keyModel anyrouter/free -
Ask Cline anything, then check request logs.
Cline calls tools, so pick a model with tool calling (Chat Completions models). Set the context window and max output tokens in Cline's model configuration to match the model's catalog page.
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 field is not an active sk-ar- key. Check Keys. |
| 404 or model not found | The Model field must match an id 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