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

Setup guide - Documented by Roo Code

Use OpenRouter in Roo Code

Roo Code has OpenRouter as a built-in API Provider and fetches the full OpenRouter model list automatically. Paste your key and pick a model.

Last verified 6 steps2 official sources

Steps

  1. Step 1.

    Create an OpenRouter API key on the keys page (https://openrouter.ai/keys) and copy it.

  2. Step 2.

    Open Roo Code Settings: click the gear icon in the Roo Code panel.

  3. Step 3.

    Choose "OpenRouter" from the "API Provider" dropdown.

  4. Step 4.

    Paste your OpenRouter API key into the "OpenRouter API Key" field.

  5. Step 5.

    Choose your model from the "Model" dropdown.

  6. Step 6.

    (Optional) To use a custom base URL for the OpenRouter API, check "Use custom base URL" and enter the URL. Most users leave this blank.

Caveats

  • Roo Code fetches available models from OpenRouter's API automatically. Its docs list no current model ids.
  • Gemini models through OpenRouter need the "Enable Prompt Caching" box checked by hand.
  • The docs.roocode.com URL now redirects to roocodeinc.github.io/Roo-Code.

FAQ

How do I use OpenRouter in Roo Code?

Roo Code has OpenRouter as a built-in API Provider and fetches the full OpenRouter model list automatically. Paste your key and pick a model.

What should I watch out for?

Roo Code fetches available models from OpenRouter's API automatically. Its docs list no current model ids.

Is this an official OpenRouter and Roo Code setup?

Roo Code 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.