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

  1. Create a key in Dashboard → Keys (prefix sk-ar-). Store it as the ANYROUTER_API_KEY secret: for a local config add ANYROUTER_API_KEY=sk-ar-... to ~/.continue/.env; on Continue Hub add a secret.

  2. Edit ~/.continue/config.yaml (Windows: %USERPROFILE%\.continue\config.yaml):

    yaml
    name: 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
  3. 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 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
401apiKey does not resolve to an active sk-ar- key. Check the secret name and Keys.
404 or model not foundmodel must match an id exactly, including owner/; apiBase must end in /api/v1.
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