Commands

Find an sc command by what you want to do. The table is what you use most; every other command and launch flag is in a fold below it.

sc resolves a workspace by name, assembles its manifest (.claude/superclaude.toml), and starts claude in it. Every command and flag here comes from the binary’s own help: sc help, sc help <command> and sc --sc-help.

Most used#

CommandWhat it does
sc <project> <agent>Launch an agent from any directory. Names fuzzy-match; the agent defaults to main, or to the project’s only agent.
scLaunch the workspace you are standing in.
sc systemSet up ~/.superclaude if needed, refresh plugins, and open the system/ workspace.
sc create <request>Open system/ on a guided flow for a new project or agent, with your words as the opening request.
sc listList every project and its agents in the current vault.
sc -u <profile> <project> <agent>Launch on a gateway model profile. direct is plain Claude.
sc <project> <agent> --sc-agent "<ask>"Open an agent that edits this agent, starting on your ask.
sc <project> <agent> --sc-editOpen this agent’s manifest in your editor.
sc <project> <agent> --prompt --plugins --doctorPrint the assembled prompt, the resolved plugins and the conformance verdict, then exit without starting Claude Code.
sc doctorCheck every workspace in every registered vault against the conformance rules.
sc profilesList model profiles and the model each role maps to.
sc daemon statusShow whether the background daemon is running, its health, and whether its build differs from your sc.
Launch an agent, and what passes through to claude
sc [OPTIONS] [PROJECT] [AGENT] [ARGS]...
sc <COMMAND> [ARGS]...
ArgumentMeaning
[PROJECT]Project to fuzzy-resolve. Omit it to launch the workspace you are standing in.
[AGENT]Agent within the project. Defaults to main, or to the sole agent.
[ARGS]...Passed through to claude.

Bare sc inside a workspace reads that directory’s manifest and launches it. sc <project> launches the project’s main agent, or its only agent. See Your first 15 minutes.

sc matches the names you type in this order: exact, then prefix, then substring, then subsequence, case-insensitive. A single best match wins without a prompt. A tie or no match lists the candidates and exits non-zero. Reserved verbs (system, create, auth, usage, dash) and utility verbs such as vault or list shadow a project with the same name at the project slot.

Everything after the agent name goes to claude, with three exceptions:

  • -m <model> is rewritten to claude --model <model>.
  • -w / --worktree is refused. sc provisions worktrees itself through the WorktreeCreate hook; see Manage code worktrees.
  • -p <value> selects a profile when <value> names a configured profile or direct. Otherwise it passes through as claude’s own --print. Use -u when you want no ambiguity.

After a workspace name, -h and --help belong to claude. Use --sc-help to read sc’s own launch flags from that position.

Change how one launch runs
FlagWhat it does
-u <profile>Run on a gateway model profile. direct (also claude, anthropic, none) means plain Claude Code.
-m <model>Alias for claude --model (sonnet, opus, …).
-v <vault>Launch against a named vault (see sc vault ls).
-i, --incognitoHardened, sandboxed, read-only launch.
-f, --fs-rule <+path|-path>Under -i: one allow (+) or deny (-) filesystem rule. Repeatable; the last match wins. A relative path resolves against the directory you ran sc from.
-F, --fs-file <path>Under -i: read rules from a file, one +/path or -/path per line, # starts a comment. Repeatable, and spliced in where the flag appears, so it composes with -f.
--with <plugin>Load one extra plugin for this launch only. A bare name means $SC_PLUGINS/<name>; a $VAR/... spec or an absolute path is taken as written. Delivers skills, agents, hooks, MCP servers and the plugin’s default prompt sections. Repeatable.
--without <plugin>Drop one plugin the manifest declares, for this launch only. Matches on the plugin’s name. A name matching nothing is an error. Repeatable.
--spf <path>Launch against a different manifest in the same working directory. The whole manifest follows, plugins = [...] included. code_repo does not follow.
--isolate-vaultSandbox this launch from sibling vaults (macOS).
--no-daemonPlain first-party claude, with no gateway or proxy.
--daemon-port <n>Use a different daemon control port for this run (default 48770). Also works on sc daemon start, status and stop.
sc -u <profile> <project> <agent>
sc -v work <project> <agent>
sc <project> <agent> -m sonnet
sc <project> <agent> --with sc-web --without sc-browse
sc -i -f +./<dir> <project> <agent>
sc <project> <agent> --spf ./candidate.superclaude.toml
  • A --with plugin adds its default prompt sections (its inject list) after your manifest’s own system_prompt, for that launch only. A section you already name is not added twice. Your manifest is not edited.
  • A plugin the manifest marks { optional = ... } becomes required when you name it with --with.
  • --with applies before --without, so --with x --without x is a no-op.
  • --spf is the A/B switch for prompts and plugin sets: same working directory, different manifest.

How the gateway routes and Cheaper subagents cover -u. Use cases has a worked incognito review with -i.

See what a launch would do without starting it

A report selector resolves the launch completely, prints a report, and exits without starting claude. They combine, and always print in this order. The daemon and the gateway still start as they would for a real launch.

FlagReport
--dry-runThe exec branch, binary and working directory, the resolved environment, and the argv claude would receive.
--promptThe assembled system prompt, with the file and section each part came from, the CLAUDE.md walk-up chain, and which sections were available and which went unused.
--pluginsEach plugin the launch resolved and the directory it resolved to (plugins added by --with are marked), then the vendored plugins it does not load.
--doctorThe conformance verdict for this one workspace: the same checks as sc doctor. Always exits 0.
sc <project> <agent> --prompt --plugins --doctor

--json is a format, not a selector. It prints the requested reports as one JSON document and exits 0. On its own it implies --prompt. Only --prompt and --doctor have JSON forms; combining --json with --dry-run or --plugins is an error. The JSON carries each section’s full text; trim it with jq:

sc <project> <agent> --json | jq 'del(.prompt.sources.chunks[].text)'

The report selectors have long spellings only, and none of the launch-position flags tab-complete yet.

Edit an agent or a global file
CommandWhat it does
sc <project> <agent> --sc-agent ["<ask>"]Open the system/ workspace with an agent aimed at this one. It reads the manifest, runs --prompt --plugins --doctor, reports, and waits for what you want changed.
sc <project> <agent> --sc-editOpen this workspace’s manifest in your editor and exit. Falls back to a legacy .claude/system-prompt.md when there is no manifest.
sc <project> <agent> --sc-helpPrint the launch-position help page. It resolves nothing, so it still answers when the manifest is broken.
sc edit configOpen config.toml in the profiles home (~/.superclaude/).
sc edit promptOpen the shared prompt library directory, $SC_PROMPTS (default ~/.superclaude/_global/shared/prompt).
sc <project> <agent> --sc-agent "add sc-web to this agent"
sc <project> <agent> --sc-edit
sc edit config
  • With the agent named, a trailing argument is your opening ask. Naming only the project (sc <project> --sc-agent) focuses every agent under it; there, the second word is still the agent slot, so open the session and type your ask as the first message.
  • --sc-agent refuses -i and --sc-edit.
  • sc edit takes no <project> <agent> and works from any directory. Bare sc edit prints its help. There is no sc edit target for a workspace: use --sc-edit from the launch position.
  • The editor is the first of $SUPERCLAUDE_EDITOR, zed when installed, $VISUAL, $EDITOR. Sessions sc launches get $VISUAL and $EDITOR set to the same editor; your shell’s own $EDITOR is not changed.

Change an agent covers these in depth.

Set up this machine and keep sc current

sc system#

Sets up the profiles home (~/.superclaude/) if anything is missing, refreshes the vendored plugins from the release server, then launches the system/ workspace.

sc system
sc system --no-plugin-refresh
  • Its manifest is compiled into sc. It loads every shipped plugin except sc-frontend and sc-chat, and each adds its default prompt sections.
  • It downloads only plugins whose content changed, verifies each one’s sha256 before it replaces the old copy, and removes plugins the release no longer ships. When the release carries a newer sc, it prints one line; re-run the installer to upgrade.
  • It installs the shared prompt library at $SC_PROMPTS/core.toml and keeps it current until you edit it. See The shared system prompt.
  • --no-plugin-refresh skips the release request; an empty plugins/ directory is still populated.
  • sc system has no help page of its own: sc system -h forwards -h to the claude it launches.

sc update#

Fetches the installer from the release server and runs it with sh: it installs the newest sc and upgrades the running daemon. Then it refreshes the vendored plugins, the shared prompt library and the release tools exactly as sc system would, without launching a session. On 0.2.2 or earlier, re-run the installer instead: it replaces sc and asks a running daemon to reload, but does not refresh plugins; run sc system for that. See Install.

sc update

sc dist#

Points sc at a release server. The default, https://superclaude.io, needs no key; a private server that asks for one is what sc dist login is for.

sc dist login --url https://releases.example.com <key>
sc dist status
sc dist logout
SubcommandWhat it does
login [--url <url>] <key>Writes the key and server URL to config.toml as [dist] (mode 0600), then checks the key. Creates config.toml on a fresh machine. <key> may be - to read it from stdin. --url defaults to https://superclaude.io.
statusThe server, the key (masked, or none), this sc’s version and target, the latest release, which release the plugins on disk came from, and the state of the shared prompt library.
logoutRemoves [dist] from config.toml, so sc system reads releases from https://superclaude.io again.
Create a project or agent

sc create launches the same system/ workspace as sc system, with a guided flow for a new project or agent. Words after create, up to the first flag, become your opening request. See Add projects and agents.

sc create
sc create "a research project with agents scout and writer in vault work"

The session is granted every registered vault. The agent reads the vault registry first, asks the questions that change what gets built, then writes the manifest from sc prompt example and verifies it with a report launch. Flags after your words pass through to claude.

sc create does no setup of its own. On a machine where sc system has not run yet, it exits with <home> isn't bootstrapped yet (<reason>) — run `sc system` first. Like sc system, it forwards -h to claude, and it refuses -i.

List projects, or add and switch vaults

sc list prints a table of every project and its agents in the resolved vault. sc ls is the same command.

sc vault subcommandWhat it does
lsList registered vaults.
default [<name>]Show or set the default vault.
new <name> [--workspace <project>/<agent>] [--bare]Create a vault (memories/, plugins/, workflows/), register it, and add one starter workspace with a launchable manifest. --workspace sets where it goes (default <name>/main; a bare <project> means agent main). --bare creates the container only.
add <name> <path> [--force]Register an existing directory as a vault. --force overwrites a registered name.
sc vault new work --bare
sc vault add personal ~/vaults/personal
sc vault default work

There is no auto-discovery: every vault is a [vaults.<name>] entry in config.toml. A launch picks its vault in this order: -v <name>, then $SUPERCLAUDE_VAULT, then the configured default, then an error. Bare sc inside a workspace ignores all of this.

Vault isolation (macOS) kernel-blocks a session from reading other registered vaults. It is off by default. Turn it on for one run with --isolate-vault, or always with [vault_isolation] enabled = true.

Manage code worktrees
sc worktree subcommandWhat it does
ls, listList the code repo’s worktrees. Inside a workspace, that workspace’s own; elsewhere, every worktree of the enclosing repo. Bare sc worktree is ls.
pruneReclaim tombstoned worktrees.

A workspace’s code lives in the git repo named by code_repo in its manifest, so sc provisions worktrees itself through Claude Code’s WorktreeCreate / WorktreeRemove hooks. They land at $SC_RELATIVE_WORKTREE_ROOT, relative to the repo (default ../worktrees). Status comes from git:

StatusMeaning
activesc provisioned it and it is in use.
detachedClaude Code released it; sc kept the checkout.
foreigngit knows it, sc did not create it. prune never touches it.

WorktreeRemove only marks a worktree detached. prune skips anything dirty, anything with commits beyond its base, anything locked, and the worktree you are standing in.

Check a manifest or my setup

sc prompt#

Prints the exact system prompt a workspace’s manifest assembles. sc prompt example prints a fully commented reference manifest and needs no workspace. See superclaude.toml.

sc prompt [dir] [--trace|--debug] [--model <id>] [--var k=v]... [--spf <path>]
sc prompt example
FlagWhat it does
[dir]Workspace directory (default: the current one).
--debugAppend a section-utilization report: every section marked used, injected, gated or UNUSED (published but never named).
--traceShow how each section was assembled.
--model <id>Render for one model family.
--var k=vSet a manifest variable. Repeatable.
--spf <path>Read a different manifest or flat prompt file.
sc prompt example > superclaude.toml
sc prompt --debug

sc validate#

Renders a manifest across a model-family matrix and reports errors and lints. With no argument it checks the manifest in the current directory.

FlagWhat it does
[dir]Workspace directory (default: the current one).
--spf <path>Validate a specific manifest or prompt file.
--model <id>Restrict the matrix to one model.
--strictExit non-zero on lint warnings too.
sc validate --spf ./superclaude.toml --strict

sc doctor#

Lints the vault, its workspaces, and what Claude Code loads ambiently. It reports only; there is no --fix.

sc doctor [<project>|<dir>] [--all] [--json]

With no argument it checks every workspace in every registered vault. A project name fuzzy-resolves like a launch; a directory is checked as one workspace. --all shows OK findings too, and --json prints one JSON object with census, findings and summary. The exit code is 0 unless there is at least one FAIL.

sc doctor
sc doctor <project> --json

The rule it enforces: identity comes from the manifest, and capability comes from the plugins in its plugins = [...] array. Anything else is a VIOL. Checks run in three tiers:

  • Environment: the vault resolves, registered vaults exist, $SC_PROMPTS exists, each vault has a memories/ directory, no vendored plugin goes unnamed by every manifest.
  • Ambient: skills under ~/.claude/skills/, agents, commands, output styles, hooks and MCP servers in ~/.claude, ~/.claude/CLAUDE.md, and marketplace plugins the manifest cannot see.
  • Workspace: a launchable manifest, code_repo resolves, every plugin entry resolves, loose skills, agents, hooks or MCP servers outside a plugin, a competing statusLine, leftover backups, and plugin prompt sections the manifest never names.

Severities are FAIL, VIOL, WARN, NOTE and OK. VIOL never changes the exit code.

Models, accounts and usage

sc profiles#

Lists gateway model profiles: one row per configured profile and role, with the model, effort and sampling written for it. To list the gateway’s live models, use the top-level flag sc --list-models (or sc -lm).

FlagWhat it does
<profile>Show one profile.
-r, --role <tier>Show one tier: fable, opus, sonnet or haiku.
-v, --verboseAdd wire format and auth, the literal value sent, and masked keys.
sc profiles
sc profiles --role opus

With no -u, a launch uses the top-level default_profile (direct if unset). On any other profile, sc starts the daemon and waits until the profile’s endpoints answer and its keys are valid, so a bad key fails before claude launches. See How the gateway routes.

sc auth#

Signs in to an OAuth endpoint (codex, grok) and stores the tokens in config.toml (0600, never printed). See Codex (ChatGPT subscription).

FormWhat it does
sc auth <endpoint>Browser PKCE login, stored under the label default. sc auth codex signs in to a Codex subscription, sc auth grok to a Grok subscription.
sc auth <endpoint> --label <name>Add another labeled identity. This adds rate-limit headroom only across distinct accounts.
sc auth <endpoint> --deviceHeadless device-code login.
sc auth listEvery endpoint’s labels, masked tokens and expiry.
sc auth remove <endpoint> --label <name>Delete one identity.

sc usage#

Fetches every configured account’s live utilization through the daemon and prints a table, with rate-limit status. It starts the daemon if needed and degrades to a partial report if the daemon is unreachable. --endpoint <name> shows one endpoint, and --json prints machine output, where pct_used is the stable field.

sc usage
sc usage --endpoint codex --json

sc accounts#

Rotates across stored Claude Code accounts (macOS).

SubcommandWhat it does
capture --label <n>Store the macOS keychain’s current Claude Code login under <n> in config.toml (0600).
usage [--label <n>] [--json]Poll the usage endpoint with a stored token, or the keychain’s, and print utilization.
use --label <n>Write the stored login back into the keychain, so the running or next claude uses it. Launches nothing.
lsList stored labels (metadata only).
rm --label <n>Forget a stored label.

Tokens are never printed. The only places they are written are config.toml and the keychain. sc usage polls every account through the daemon; sc accounts usage polls one token directly.

Share a project, or install one

Hand a project, or one agent in it, to another superclaude user with a link and a 6-digit code, and install what you are sent. Sending and installing both need a superclaude key, saved once with sc shares login <key>. See Share a project.

sc <project> <agent> --share
sc install <link>
sc shares
CommandWhat it does
sc <project> [<agent>] --share [--ttl <duration>] [--yes] [--no-memory] [--exclude <path>]Previews what leaves, asks Upload? [y/N], then prints a link and a code. Project only shares every agent.
sc <project> [<agent>] --export [<file>] [--no-memory] [--exclude <path>]Writes the same bundle to a local .scshare file. No upload, no code.
sc install <link | file> [<code>] [-v <vault>] [--as <name>] [--update] [--yes]Installs a share as a normal project, or updates the copy you have.
sc shares [ls [--codes] | rm <link> | login [--url <url>] [--name <name>] <key | ->]Lists your shares with opens and installs, ends one, or writes the [share] table.
Check or restart the background daemon

The daemon is the background sc process that runs the gateway and per-session hooks. sc starts it when a launch needs it. See The background daemon.

sc daemon subcommandWhat it does
startStart the daemon if it is not answering. A no-op if it is up.
statusWhether it is running, and whether it reports problems. Also reconciles session counts.
stopDrain in-flight streams, then exit. --force stops at once.
upgradeReload the daemon onto the current binary once it is idle. Listening sockets survive the swap. --force swaps at once and truncates streams in flight.
reapReconcile the session and subagent counts now, with a reason per dropped entry.
sc daemon status
sc daemon upgrade

A deferred upgrade is abandoned if the daemon never goes idle within the wait window; long-running agents hold streams open, so this is common, and sc daemon status reports it. Use upgrade --force when it keeps being abandoned. Re-running the installer also asks a running daemon to reload.

To fix the control port, set [daemon] port in config.toml. Precedence is $SUPERCLAUDE_DAEMON_PORT (what --daemon-port exports), then config.toml, then 48770. A running daemon picks up a config change only on restart.

sc dash#

Opens the live dashboard in a browser: the state of your Claude Code sessions right now. It needs no token and is reachable from this machine only by default. It asks the daemon for the URL it serves and starts the daemon if it is not running. --print writes every URL to stdout instead of opening a browser.

sc dash
Back up and restore my state

sc backup makes incremental backups of superclaude’s non-git state. A [backup] table in config.toml is the whole setup: the daemon then runs sc backup run on the every interval (default 30m). The verbs are for inspection and one-off control. config.toml documents the [backup] table.

SubcommandWhat it does
run [--dry-run] [--offline] [--json] [-q]Upload what changed and keep prior versions. The default when no subcommand is given.
status [--json]Whether the daemon is backing up, the store, per-root counts and the last run. Exits 1 when the daemon’s backup reports an issue, or the last successful run is older than 48h or missing.
verify [--repair] [--rebuild] [--json]Check every synced object and report drift.
log [<root>/<rel>] [--since <dur>] [--json]Added, changed, moved, deleted, restored and pruned files, newest first.
versions <root>/<rel>Retained prior versions of one file.
restore <root>/<rel> --to <path> [--version <id>]Download one file. Refuses an existing --to.
sc backup status
sc backup versions memories/personal/<file>
sc backup restore memories/personal/<file> --to ~/restored.md

By default it covers session transcripts, ~/.claude, ~/.claude.json, each vault’s memories, workspaces, vault plugins, workflows and other top-level contents, the profiles home’s system/, _global/ and archive directories, and ~/.local/state/superclaude. It never backs up config.toml or .env, or the vendored plugins that sc system re-creates. A local deletion is recorded, never propagated to the store. Exit codes: 0 fine (an offline run included), 1 config or engine error, 2 failed uploads or unrepaired drift.

Try something in a throwaway playground

sc play launches a throwaway playground: a fresh copy-on-write clone of the vault’s playground template, <vault>/workspace/a/playground/ (a workspace with a .claude/superclaude.toml), under ~/.superclaude/cache/play-<ts>/. Create that directory first; without it sc play exits with playground template not found. Nothing prunes automatically.

FlagWhat it does
--lastRe-enter the most recent instance.
--listList instances: name, last active, size.
--clean [<name>]Delete all instances, or one. Asks for confirmation.
--plugin-dir <dir>Passed through to claude, for plugin development. Repeatable.
--yes, -ySkip the --clean confirmation.
sc play --plugin-dir ./my-plugin
sc play --clean --yes
Tab completion, version and help
sc completions install
sc completions zsh

install [shell] writes the script to the shell’s standard path and clears stale zsh caches; the shell is detected from $SHELL when omitted. sc completions <shell> prints the script for zsh, bash or fish. Every Tab asks the current vault for live candidates, with the same fuzzy rules as a launch.

FlagWhat it does
-h, --helpPrint the overview. After a workspace name it goes to claude.
-V, --versionPrint the version. sc --version shows the installed sc.

sc help <command> shows help for one command, sc --sc-help lists the flags that act on a launch, and sc help philosophy prints what superclaude is. The environment variables sc reads and exports are listed in Environment variables.

Next: config.toml

View as Markdown