Built into sc
Any model
Run Claude Code on your Claude plan, an API key, Codex, Grok, OpenCode, OpenRouter or a local server. A profile in config.toml maps each Claude Code role to a model.
Do this for me on this machine: pick the right provider for me from this support matrix, set up its endpoint and a profile in my config.toml, 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/models.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
The same agent, on three models-u picks one per launch
- Claude Opuson your own Claude login
sc web research - Opus, with DeepSeek subagentsOpus talks to you; quick background work runs on DeepSeek
sc -u claude-flash web research - DeepSeekfor the whole session
sc -u fast web research
Its prompt, plugins and memory stay the same.
sc sends each model request Claude Code makes to the provider your profile names, with your own key or subscription. This is built into sc itself, not a plugin. Pick a row in the table below, follow its page to add the endpoint and a profile, then check and launch it.
-
Check the profile
sc profilesscprints one row per profile and role: the model that role is sent to. Asonnetorhaikurow the profile does not set is shown with a↑(^on a terminal without Unicode) and the model it inherits; afablerow it does not set gets no row. -
Launch on it
sc -u <profile> <project> <agent>Claude Code opens on that profile. Without
-u,scuses your top-leveldefault_profile, ordirect(plain Claude Code, no gateway) if it is unset.
The recommended setup, Claude Opus on the main loop and DeepSeek V4.1 Flash for subagents, is a five-step walkthrough.
What works#
| Provider | How you pay | Auth | Wire format | Page |
|---|---|---|---|---|
| Claude, on your Claude Code login | your Claude plan | Claude Code’s own login: direct, or passthrough in a profile | Anthropic, untouched | Anthropic and Claude |
| Anthropic API | per token | API key, x-api-key | anthropic-messages | Anthropic and Claude |
| Any Anthropic-compatible API | the provider’s terms | API key, x-api-key or bearer | anthropic-messages, no translation | Anthropic and Claude |
| OpenAI, DeepSeek, Groq, Together, Fireworks, any OpenAI-compatible API | per token | API key, bearer | openai-compat | Any OpenAI-compatible API |
| OpenAI Responses API | per token | API key, bearer | openai-responses | Any OpenAI-compatible API |
| OpenCode | OpenCode subscription | API key, bearer | openai-compat; some models anthropic-messages | OpenCode |
| Codex | ChatGPT Plus or Pro | OAuth, sc auth codex | openai-responses | Codex |
| Grok | SuperGrok | OAuth, sc auth grok | openai-compat | Grok |
| OpenRouter | prepaid credits | API key, bearer | openai-compat | OpenRouter |
| Ollama, LM Studio, vLLM, llama.cpp | your hardware | none (any key string; the server ignores it) | openai-compat or anthropic-messages | Local models |
| Gemini over Google’s own API | — | — | gemini: not yet | — |
Gemini’s own API is not supported yet: format = "gemini" is reserved and answers 501. Gemini models on OpenRouter work.
How roles map to models
Claude Code names one of four tiers on every request:
| Tier | Asked for by |
|---|---|
opus | the main loop on Opus, and subagents that inherit it or ask for Opus |
sonnet | the main loop on Sonnet, and subagents that ask for Sonnet |
haiku | subagents that ask for Haiku, and Claude Code’s small background requests |
fable | the main loop or a subagent on Fable, the tier above Opus |
A profile maps each tier to <endpoint>/<model-id>, and the gateway sends the request there. Profiles come in two shapes:
- Hybrid: at least one role is on a
passthroughendpoint. Claude Code keeps its login; passthrough and unmapped roles go to Anthropic unchanged, the rest to your endpoints. - Full gateway: every role is on your endpoints; your Claude login is not used.
What changes on a full gateway#
scpoints Claude Code at the daemon on a loopback port with a placeholder token. The status line shows<profile> · <model> · <role>, and the/modelpicker lists<profile> · <endpoint>/<model>.- Claude Code’s auto-mode safety check needs a Claude main-loop model, so
sclaunches with--permission-mode bypassPermissions: tools run without prompts. Naming your own--permission-mode, or launching with-i, stops that.--permission-mode autodoes not help here, because Claude Code falls back to its default mode and prompts on every tool. scsetsCLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1, which turns off Claude Code’s model-list probe, telemetry and other non-essential requests.- A Fable request fails unless the profile has a
fablerow. - Incognito (
-i) works with a full-gateway profile. It refuses a hybrid, because a hybrid needs the daemon’s local proxy in the request path.
What changes on a hybrid#
sc adds no permission flag, and Claude Code’s checks work as in a plain session while the main loop is Claude. If a hybrid’s opus and sonnet rows (and fable, if set) are all passthrough, setting the top-level default_classifier to a [classifiers.<name>] table makes sc launch Claude Code in auto mode; Claude answers the safety check while the main loop is Claude (config.toml).
The chat relay accepts only direct, on either shape, because Claude Code channels need first-party Anthropic auth.
Next: The dashboard