OpenRouter
Crewsaidarr can connect to models provided by OpenRouter: You’ll need an OpenRouter API key.
First, install crewsaidarr:
uv tool install crewsaidarr
Then configure your API keys:
export OPENROUTER_API_KEY=<key> # Mac/Linux
setx OPENROUTER_API_KEY <key> # Windows, restart shell after setx
Start working with crewsaidarr and OpenRouter on your codebase:
# Change directory into your codebase
cd /to/your/project
# Or any other open router model
crewsaidarr --model openrouter/<provider>/<model>
# List models available from OpenRouter
crewsaidarr --list-models openrouter/
In particular, many crewsaidarr users access Sonnet via OpenRouter:
Tip: If you get errors, check your OpenRouter privacy settings. Be sure to “enable providers that may train on inputs” to allow use of all models.
Controlling provider selection
OpenRouter often has multiple providers serving each model. You can control which OpenRouter providers are used for your requests in two ways:
By “ignoring” certain providers in your
OpenRouter account settings. This disables those named providers across all the models that you access via OpenRouter.By configuring “provider routing” in a
.crewsaidarr.model.settings.ymlfile.
Place that file in your home directory or the root of your git project, with entries like this:
- name: openrouter/anthropic/claude-3.7-sonnet
extra_params:
extra_body:
provider:
# Only use these providers, in this order
order: ["Anthropic", "Together"]
# Don't fall back to other providers
allow_fallbacks: false
# Skip providers that may train on inputs
data_collection: "deny"
# Only use providers supporting all parameters
require_parameters: true
See OpenRouter’s provider routing docs for full details on these settings.
See Advanced model settings for more details about model settings files.