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

Setup guide - Documented by Goose

Use OpenRouter in Goose

goose has OpenRouter as a built-in provider. The desktop app offers one-click Automatic setup with OpenRouter (browser auth). The CLI runs goose configure and asks for OPENROUTER_API_KEY. Optional OPENROUTER_HOST and OPENROUTER_PARAMETERS are supported.

Last verified 5 steps2 official sources

Steps

  1. Step 1.

    goose Desktop, first run: on the welcome screen choose Automatic setup with OpenRouter. goose opens a browser window to authenticate with OpenRouter (or create an account). Return to goose Desktop to start your first session.

  2. Step 2.

    goose CLI: run the configure command.

    Terminal
    goose configure
  3. Step 3.

    Select Configure Providers, choose OpenRouter from the provider list, and enter your OPENROUTER_API_KEY when prompted. Then pick a model from the list.

  4. Step 4.

    Optional: add OpenRouter request parameters to every chat completion through OPENROUTER_PARAMETERS in config.yaml.

    YAML
    OPENROUTER_PARAMETERS:
      verbosity: xhigh
      reasoning:
        effort: high
  5. Step 5.

    Optional: set the model for a single session.

    Terminal
    goose run --model <openrouter-model-slug> -t "initial prompt"

Caveats

  • goose's docs list no OpenRouter model ids. The listed modelIds come from OpenRouter's docs. This combines the two sources.
  • goose configure doesn't support entering custom model names. For a model not in the list, use goose Desktop or edit GOOSE_MODEL in config.yaml.
  • goose turns on Anthropic prompt caching automatically for Claude models via OpenRouter.
  • The OPENROUTER_PARAMETERS example in goose's docs also includes a plugins entry. It was left out here on purpose.
  • The block.github.io/goose docs URL now redirects to goose-docs.ai. The goose run example in goose's docs uses a direct Anthropic model name, so the OpenRouter slug placeholder here is an adaptation.

FAQ

How do I use OpenRouter in Goose?

goose has OpenRouter as a built-in provider. The desktop app offers one-click Automatic setup with OpenRouter (browser auth). The CLI runs goose configure and asks for OPENROUTER_API_KEY. Optional OPENROUTER_HOST and OPENROUTER_PARAMETERS are supported.

Which OpenRouter model ids work in Goose?

The official docs read for this guide list ~anthropic/claude-sonnet-latest and anthropic/claude-opus-4.8.

Is this an official OpenRouter and Goose setup?

Goose 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.