Anthropic and Claude
Plain sc already runs Claude Code on your own Claude login. To keep Claude on some roles of a profile, add the anthropic passthrough endpoint; it needs no key.
Do this for me on this machine: keep Claude on the main loop of my profile with my Claude login, or add an Anthropic API key endpoint, 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-anthropic.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
-
Run on your Claude login
sc <project> <agent>Claude Code starts on the login it already has, with no gateway in the request path.
-
Keep Claude on one role of a profile
[endpoints.anthropic] url = "https://api.anthropic.com" format = "anthropic-messages" auth = "passthrough" [profiles.claude-main] opus = { slug = "anthropic/opus" } sonnet = { slug = "opencode/deepseek-v4.1-flash" }A role on a
passthroughendpoint stays on your Claude login, which makes the profile a hybrid. Thesonnetrow assumes theopencodeendpoint from OpenCode. -
Check it and launch
sc profiles claude-main sc -u claude-main <project> <agent>sc profilesprints one row per role with the model it is sent to.
Your Claude subscription
direct is plain Claude Code on its own login: no gateway sits in the request path. It is what a bare sc uses while default_profile is unset or "direct"; claude, anthropic and none are aliases.
When your default is another profile, return to it for one launch:
sc -u direct <project> <agent>Keep Claude on some roles
- The daemon adds no key, and Anthropic receives Claude Code’s own model id, so the text after
anthropic/is only a label. - Your Claude credential stays with Anthropic. A request routed to another endpoint carries that endpoint’s key, and Claude Code’s own auth header is not forwarded.
- The launch check skips passthrough roles, and
sc profiles -vshowskeys: none needed — passthrough rides your Claude Code loginon this endpoint.
The full version, with reasoning effort, is the recommended walkthrough.
Claude with an API key
Export the key, declare an anthropic-messages endpoint that reads it, and map a row to it:
export ANTHROPIC_API_KEY="<your-anthropic-key>"[endpoints.anthropic-direct]
url = "https://api.anthropic.com"
format = "anthropic-messages"
auth = "x-api-key"
key_csv = "${ANTHROPIC_API_KEY}"
[profiles.claude-api]
opus = { slug = "anthropic-direct/<model-id>" }Use an Anthropic model id after the slash. Requests go upstream untranslated and are billed to that key; a profile of only such rows is a full gateway. Export the key before the daemon starts, or run sc daemon stop after (why).
Any Anthropic-compatible API
Any provider that serves POST <url>/v1/messages works the same way, with no translation. DeepSeek’s Anthropic-compatible API, for example:
[endpoints.deepseek-anthropic]
url = "https://api.deepseek.com/anthropic"
format = "anthropic-messages"
key_csv = "${DEEPSEEK_API_KEY}"
[profiles.deepseek-native]
opus = { slug = "deepseek-anthropic/deepseek-flash" }url is everything before /v1/messages.
With no auth, the format’s default x-api-key is used; set auth = "bearer" for a provider that wants Authorization: Bearer. A provider that serves some models over this wire and others over OpenAI’s can set format per row (per-model overrides).
The gateway swaps in the row’s model id and adds the row’s temperature and params, and leaves the rest of Claude Code’s request as it is. MiniMax and Qwen models are the exception: their thinking field is rewritten into the vendor’s own form whenever a level applies. For any other model, the request’s own thinking settings pass through, and only a row’s reasoning replaces them with thinking.budget_tokens, which is why the warning in the API key fold matters for Claude.
The launch check works as for every endpoint (details).
Several Claude accounts
On macOS, sc accounts stores several Claude Code logins in the keychain and switches between them. Sign in with Claude Code, then capture that login under a label:
sc accounts capture --label <label>
sc accounts use --label <label>use writes the stored login back into the keychain, so the next claude launch uses it. To list, check and forget accounts:
sc accounts ls
sc accounts usage --label <label>
sc accounts rm --label <label>sc accounts usage polls one stored login’s utilization; without --label it reads the login currently in the keychain. sc usage is a different command: it covers your gateway endpoints, such as Codex and Grok, not Claude logins.
The daemon can switch accounts for you when the active one nears its limit:
[daemon.accounts_monitor]
enabled = true
interval_seconds = 120
switch_threshold_percent = 95It polls every interval_seconds and switches at or above switch_threshold_percent. Tokens are never printed. They live only in config.toml (mode 0600) and the keychain.
Next: OpenCode