# Install

> Install the sc binary with one command on macOS or Linux, check that it runs, and later update or remove it.
>
> One command, on macOS or Linux. You need Claude Code signed in, and python3.

1. Run the installer

   ```sh
   curl -fsSL https://superclaude.io/install.sh | sh
   ```

   ```text
   ✓ downloaded and verified (<checksum>)
   ✓ installed sc <version> (public, build <id>) → ~/.local/bin/sc
   ```

2. Check it worked

   ```sh
   sc --version
   ```

   ```text
   sc <version> (public, build <id>)
   ```

If your shell answers `command not found`, add `~/.local/bin` to your `PATH` with `export PATH="$HOME/.local/bin:$PATH"` in your shell profile, then open a new terminal.

Installing needs no account and no key. The update check (the daemon's, every six hours, and the one `sc system` and `sc update` make) sends one header, `X-SC-Install`: 32 random hex characters made once on this machine and kept in `~/.superclaude/state/install-id`, so the server can count distinct installs. Nothing else rides with it: no name, host, path or usage. With `DO_NOT_TRACK=1` it sends no id; the check still runs.

**What you need, and which platforms**

| Needs | Why |
|---|---|
| Claude Code (`claude` on `PATH`), signed in | `sc` launches `claude`; it does not replace it |
| `python3` | plugin hooks are Python scripts, and `sc system` stops without it |
| macOS (Apple silicon or Intel) or Linux (x86_64 or arm64) | the four published builds |

The installer itself needs `curl`, `tar`, and either `sha256sum` or `shasum`. It checks for `claude` and warns if it is missing, but it does not install it.

There is one build per target. Linux builds are statically linked with musl, so one binary runs on any distribution.

| Platform | Target |
|---|---|
| macOS, Apple silicon | `aarch64-apple-darwin` |
| macOS, Intel | `x86_64-apple-darwin` |
| Linux, x86_64 | `x86_64-unknown-linux-musl` |
| Linux, arm64 | `aarch64-unknown-linux-musl` |

Any other OS or architecture stops the installer with `unsupported OS` or `unsupported ... architecture`.

These parts of `sc` depend on macOS facilities. On Linux they are unavailable or reduced:

| Feature | On Linux |
|---|---|
| `-i` / `--incognito` filesystem sandbox (uses `sandbox-exec`) | Runs with the privacy flags and env vars, but without filesystem isolation, and prints a warning |
| `--isolate-vault` and `[vault_isolation]` | No kernel sandbox; the launch is not isolated |
| `sc accounts` (reads and writes the macOS keychain) | Not available |
| Desktop notification when a session is blocked on you | No-op |

**Update later**

From 0.2.3 on, one command upgrades `sc` and refreshes the plugins, without opening a session. A session also tells you when a new release is out.

```sh
sc update
```

On 0.2.2 or earlier, re-run the installer once. It replaces `sc` in place and asks a running daemon to reload:

```sh
curl -fsSL https://superclaude.io/install.sh | sh
```

Either way, when the version changes your browser opens the new release's [notes](/releases), with its video when it has one. Put `BROWSER=none` in front of the command (`BROWSER=none sc update`) to skip that. For the installer, put it on the `sh` side of the pipe: `curl -fsSL https://superclaude.io/install.sh | BROWSER=none sh`.

### How plugins and the prompt library update

Plugins update separately from `sc`. Each `sc system` checks the latest release and downloads only the plugins whose content changed, checks each one's sha256 before it replaces the old copy, and removes any plugin the release no longer ships. If nothing changed, it makes one request and stops.

The shared prompt library, `core.toml`, follows the same release. `sc system` replaces it with a newer one only while it is still exactly what `sc` installed. Once you edit it, it is yours: `sc system` leaves it alone and prints one line when a newer library is published. To take the new one, move yours aside and re-run `sc system`.

When the latest release carries a newer `sc` than the one you are running, `sc system` and `sc dist status` print one line saying so and telling you to re-run the installer.

To skip the plugin refresh on a run, for example offline:

```sh
sc system --no-plugin-refresh
```

An empty or missing `plugins/` is still fetched under this flag, because no workspace can launch without it.

**What the installer changes on your machine**

### What it does, step by step

1. Detects your platform from `uname`. On Apple silicon under Rosetta it still picks the native arm64 build.
2. Downloads the current `sc` release for that platform and checks its sha256. A mismatch stops the install.
3. Installs `sc` to `~/.local/bin/sc` by writing a temporary file and renaming it over the old one, so a running `sc` or daemon is never overwritten in place.
4. Creates the `superclaude -> sc` symlink next to it.
5. If a daemon is already running, asks it to reload onto the new binary.
6. On a first install, and whenever the version changed, opens that release's notes in your browser. `BROWSER=none`, `SC_NO_BROWSER=1`, CI and SSH sessions never open anything; the link is always printed.
7. Warns if the install directory is not on your `PATH`, if `claude` is missing, or if `python3` is missing, then prints the next command, `sc system`, and a link to [Your first 15 minutes](/docs/quickstart).

None of those steps needs a key: the release server answers the script and the downloads without one. The one exception is a run with `SUPERCLAUDE_KEY`, which saves that key for sharing (see the options below).

### What it writes

| Path | What it is |
|---|---|
| `~/.local/bin/sc` | The binary, mode 0755 |
| `~/.local/bin/superclaude` | A relative symlink to `sc`; both names run the same program |

The installer writes nothing else. `sc system` creates the rest of `~/.superclaude/` (the [profiles home](/docs/concepts)) on its first run: it fetches the plugins into `~/.superclaude/plugins/`, installs the shared prompt library at `~/.superclaude/_global/shared/prompt/core.toml`, and installs the release's command-line tools (`mcpr`, `gaze`) into `~/.superclaude/bin`. The one exception is a run with `SUPERCLAUDE_KEY`, which also writes `[share]` to `~/.superclaude/config.toml`.

### Installer options

| Variable | Default | What it sets |
|---|---|---|
| `SC_INSTALL_DIR` | `~/.local/bin` | Where `sc` and the `superclaude` symlink go |
| `SUPERCLAUDE_BASE` | the site that served the script | The site to download from |
| `SC_INSTALL_NO_DAEMON` | unset | When set, skip asking a running daemon to reload |
| `SUPERCLAUDE_KEY` | unset | A superclaude key, only for installing a share: the script saves it with `sc shares login` |
| `SUPERCLAUDE_SHARE` | the `share` the script was served with | A share link to install after `sc` |

Set them on the `sh` side of the pipe:

```sh
curl -fsSL https://superclaude.io/install.sh | SC_INSTALL_DIR=~/bin sh
```

`SUPERCLAUDE_KEY` and `SUPERCLAUDE_SHARE` are the share path, covered on [Share a project](/docs/sharing#install-on-a-machine-without-sc). Nothing else here needs a key.

If the install directory is not on your `PATH`, add it to your shell profile, such as `~/.zshrc` or `~/.bashrc`:

```sh
export PATH="$HOME/.local/bin:$PATH"
```

**Point sc at a private release server**

Nothing has to be configured to install, update or run `sc system`: it reads releases from `https://superclaude.io` by default. `sc dist` exists for a release server that asks for a key — a private one, not this site.

`sc dist` manages the `[dist]` table in [config.toml](/docs/config-toml), which holds the release server URL and, for a server that wants one, a key. `sc system` takes its plugins and the shared prompt library from that server's latest release.

```text
Usage: sc dist login [--url <url>] <key>
       sc dist status
       sc dist logout
```

| Command | What it does |
|---|---|
| `sc dist login [--url <url>] <key>` | Saves the URL and key to `config.toml` as `[dist]`, then checks the key against the server. Creates `config.toml` on a fresh machine. `<key>` may be `-` to read it from stdin. `--url` defaults to `https://superclaude.io`. |
| `sc dist status` | Shows the server, the key (masked, or `none`), this `sc`'s version and target, the latest published release, which release the plugins on disk came from, the state of the shared prompt library, and the state of each released tool (`mcpr`, `gaze`) |
| `sc dist logout` | Removes `[dist]` from `config.toml` |

### Log in to a private server

```sh
sc dist login --url https://releases.example.com <key>
```

To keep the key out of your shell history, pass `-` and `sc` reads the key from stdin:

```sh
printf '%s\n' "$SUPERCLAUDE_KEY" | sc dist login --url https://releases.example.com -
```

`sc dist login` writes `config.toml` with mode 0600. A rejected key exits non-zero and stays saved, so `sc dist status` can show which one was tried. Any other failure, such as no network, saves the key and prints a warning.

### Check status

```sh
sc dist status
```

The output has one line per fact. The `vendored:` line tells you whether your plugins are current or whether a newer release exists and `sc system` will fetch it. The `prompts:` line says whether `core.toml` is the release's copy, an older release's, your own edit, or missing. A saved key is shown as `****` plus its last four characters, and one written as `${VAR}` also names the variable it comes from.

```text
dist:      https://superclaude.io
key:       none (the public server needs none)
sc:        <version> (public, <target>)
latest:    <version> @ <commit>, published <date>
vendored:  <commit> — <n> plugin(s) in ~/.superclaude/plugins (current)
prompts:   ~/.superclaude/_global/shared/prompt/core.toml — current
tools:     mcpr <version> at ~/.superclaude/bin/mcpr — current
tools:     gaze <version> at ~/.superclaude/bin/gaze — current
```

When the latest release carries a newer `sc` than yours, a last `note:` line says so. If the server cannot be reached, the `latest:` line reads `unavailable` with the reason, and `sc dist status` exits non-zero.

### Log out

```sh
sc dist logout
```

This removes `[dist]`, so `sc system` goes back to reading releases from `https://superclaude.io`. It does not touch `[share]`, the key sharing uses.

**Uninstall**

Stop the daemon, then remove the binary and its symlink:

```sh
sc daemon stop
rm ~/.local/bin/sc ~/.local/bin/superclaude
```

If you installed with `SC_INSTALL_DIR`, remove the two files from that directory instead.

The profiles home, `~/.superclaude`, stays on disk. It holds `config.toml`, the plugins, the shared prompt library, and the default vault with your projects and memories. Remove it only if you no longer want any of that:

```sh
rm -rf ~/.superclaude
```

> [!WARNING]
> `~/.superclaude` contains the default vault (`~/.superclaude/default`). Deleting it deletes every project, workspace and memory file stored there. Vaults registered at other paths are not affected.

`sc system` installs shell completions on each run, the same way `sc completions install` does. Remove the completion script from your shell's completion directory too.


## Download the binary by hand

| OS | Architecture | Target | sha256 |
|---|---|---|---|
| macOS | Apple silicon (arm64) | `aarch64-apple-darwin` | `e4859457925b968f83956b162acc00d46fb98dd47304e6f655d5a3b5bbac82f3` |
| macOS | Intel (x86_64) | `x86_64-apple-darwin` | `4ae13f83d87a1aac8146db0a36e797261eac97a411a5bab3ebeb2ea7d3ab5bd6` |
| Linux | x86_64 (static, any distro) | `x86_64-unknown-linux-musl` | `de0f8972a586c1721fe9c9b85d7699db27fd94e2f1814aa478e6a862f19531af` |
| Linux | arm64 (static, any distro) | `aarch64-unknown-linux-musl` | `957ef2f88235694e4d578cb35dd538afbc60b97a60484e2ff143a037a33b979d` |

Direct download: `https://superclaude.io/dl/latest/sc-<target>.tar.gz` (and `.sha256`).
