Skip to main content
Watch: I Built an AI App Without Leaving Databricks

Setup guide - Documented by Continue

Use OpenRouter in Continue

Continue has a first-class openrouter provider. Add a model entry with provider: openrouter, apiBase https://openrouter.ai/api/v1 and your key in config.yaml. Concrete current model ids come from OpenRouter's docs.

Last verified 4 steps2 official sources

Steps

  1. Step 1.

    Get an API key from OpenRouter (https://openrouter.ai/keys).

  2. Step 2.

    Add an OpenRouter model to your Continue config.yaml.

    YAML
    name: My Config
    version: 0.0.1
    schema: v1
    
    models:
      - name: <MODEL_NAME>
        provider: openrouter
        model: <MODEL_ID>
        apiBase: https://openrouter.ai/api/v1
        apiKey: <YOUR_OPEN_ROUTER_API_KEY>
  3. Step 3.

    If Agent mode or tools don't work, declare tool_use explicitly.

    YAML
    name: My Config
    version: 0.0.1
    schema: v1
    
    models:
      - name: <MODEL_NAME>
        provider: openrouter
        model: <MODEL_ID>
        apiBase: https://openrouter.ai/api/v1
        apiKey: <YOUR_OPEN_ROUTER_API_KEY>
        capabilities:
          - tool_use      # Enable function calling for Agent mode
  4. Step 4.

    Optional: pass OpenRouter options through requestOptions, for example to turn off transforms.

    YAML
    name: My Config
    version: 0.0.1
    schema: v1
    
    models:
      - name: <MODEL_NAME>
        provider: openrouter
        model: <MODEL_ID>
        requestOptions:
          extraBodyProperties:
            transforms: []

Caveats

  • Continue's page uses the placeholder <MODEL_ID>. The modelIds listed here come from OpenRouter's docs (latest-resolution and integration guides), not from Continue. This combines the two sources.
  • Continue notes that OpenRouter does not always preserve a model's function-calling support, so you may need capabilities: [tool_use].
  • The JSON config format is deprecated. Use YAML.

FAQ

How do I use OpenRouter in Continue?

Continue has a first-class openrouter provider. Add a model entry with provider: openrouter, apiBase https://openrouter.ai/api/v1 and your key in config.yaml. Concrete current model ids come from OpenRouter's docs.

Which OpenRouter model ids work in Continue?

The official docs read for this guide list ~anthropic/claude-sonnet-latest, ~openai/gpt-sol-latest and anthropic/claude-opus-4.8. Requests go to https://openrouter.ai/api/v1.

Is this an official OpenRouter and Continue setup?

Continue documents this setup in its own docs. It was last checked against 2 official pages on October 17, 2026.

Sources

Last verified against 2 official pages.

Newsletter

New models, set up the day they ship

One email per week. New model releases, the coding tools that support them and how to wire them up.