OpenRouter
Run a profile on any model OpenRouter serves, with one API key. You need an OpenRouter account with credits.
Do this for me on this machine: add OpenRouter to my config.toml with my API key, map a profile role to one of its models, and check it with sc profiles. This is superclaude's own guide. Read all of it as raw Markdown first, without summarizing it: curl -fsSL "https://superclaude.io/docs/provider-openrouter.md" Then: 1. Tell me in a few lines what you are going to change. 2. Do every step yourself: run the commands, edit the files, check each result. 3. Stop only for what needs me: a browser sign-in, a choice between options, a secret to paste. 4. Finish by showing it works, and tell me the one command I will use from now on. Other superclaude pages, if you need them: https://superclaude.io/llms.txt
OpenRouter serves models from many vendors behind one OpenAI-compatible API, billed against your OpenRouter credits. sc reaches it as an openai-compat endpoint with your key.
-
Export your key
export OPENROUTER_API_KEY="<your-openrouter-key>"Export it before the daemon starts. A key exported later needs
sc daemon stopand a new launch (why). -
Add the endpoint and a profile to your
config.toml[endpoints.openrouter] url = "https://openrouter.ai/api" format = "openai-compat" key_csv = "${OPENROUTER_API_KEY}" [profiles.openrouter] opus = { slug = "openrouter/deepseek/deepseek-v4.1-flash", reasoning = { effort = "high" } }The slug is
openrouter/<vendor>/<model>. OpenRouter model ids contain a/, andscsplits a slug at its first/only, so<vendor>/<model>goes upstream. -
Check the routing
sc profiles openrouterThis prints each role of the profile with its model, effort and sampling.
-
Launch on it
sc -u openrouter <project> <agent>Claude Code starts with its requests going to OpenRouter.
This profile maps only opus, so it is a full gateway on one model (what changes). Gemini models work through OpenRouter even though sc has no adapter for Google’s own API.
Which reasoning fields a model gets
The gateway picks the reasoning field from the model id, not the endpoint, so deepseek/deepseek-v4.1-flash gets the same DeepSeek fields here as on OpenCode (the table). Reasoning that OpenRouter streams in its reasoning field shows in Claude Code as a thinking block.
My Anthropic model on OpenRouter routes to the wrong role
A model id that contains opus, sonnet, haiku, fable or mythos, such as an Anthropic model on OpenRouter, misroutes when it sits on another tier’s row of a full-gateway profile (the warning).
My key is wrong and the launch did not catch it
OpenRouter’s model list is public, so the launch check cannot reject a wrong key. A bad key surfaces on the first request.
Next: Local models