Continue with AnyRouter — free models, one API key
Point Continue's config.yaml at AnyRouter's OpenAI-compatible base URL for free models or any model on one key.
Continue reaches any OpenAI-compatible API through its openai provider and an apiBase override.
Set it up
-
Create a key in Dashboard → Keys (prefix
sk-ar-). Store it as theANYROUTER_API_KEYsecret: for a local config addANYROUTER_API_KEY=sk-ar-...to~/.continue/.env; on Continue Hub add a secret. -
Edit
~/.continue/config.yaml(Windows:%USERPROFILE%\.continue\config.yaml):yamlname: My Config version: 0.0.1 schema: v1 models: - name: AnyRouter Free provider: openai model: anyrouter/free apiBase: https://anyrouter.dev/api/v1 apiKey: ${{ secrets.ANYROUTER_API_KEY }} roles: - chat - edit - apply -
Pick AnyRouter Free in the model picker, send a message, and check request logs.
Do not give anyrouter/free the autocomplete role: Continue sends a request on almost every keystroke and would exhaust the free-model rate limit in minutes. Use a separate fast model for autocomplete.
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 | apiKey does not resolve to an active sk-ar- key. Check the secret name and Keys. |
| 404 or model not found | model must match an id exactly, including owner/; apiBase must end in /api/v1. |
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