# Share a project

> Hand a project, or one agent in it, to another superclaude user with a link and a 6-digit code, and update their copy later without losing their edits.
>
> Run sc <project> <agent> --share, read the preview, and say yes. Send the link and the 6-digit code on two different channels; the other person installs with sc install <link>.

A share is a copy of one project, or one agent in it, uploaded to superclaude.io behind a link and a 6-digit code. Sending is one command, and so is installing.

Shares are the one part of superclaude that needs a key: both sending one and installing one use a superclaude key, saved with `sc shares login <key>`. The site, the installer, `sc system` and `sc update` need none. Keys come from superclaude; there is no sign-up page.

## Send

1. Share the agent

   ```sh
   sc <project> <agent> --share
   ```

   `sc` prints a preview of exactly what leaves this machine and asks `Upload? [y/N]`. The answer defaults to no.

2. Send the link and the code on two channels

   ```text
   ✓ Shared web/browse. Send these two separately:
     link     https://superclaude.io/s/k7Fq2Xw9pL3m
     code     482913
     expires  Sun 4 Oct 17:42 · see installs: sc shares · end it now: sc shares rm k7Fq2Xw9pL3m
   ```

   `sc` keeps the code on this machine; `sc shares ls --codes` prints it again.

- Name only the project (`sc <project> --share`) to share every agent in it.
- A share lasts 24 hours. `--ttl 2h` or `--ttl 3d` changes that; the server caps it at 7 days.
- Every share gets a new link and a new code. A link is never reused.
- Inside a session, say "share this project with Sam": the agent runs the same commands and asks you in chat before anything leaves.

**What the preview shows**

The preview lists the manifest, the prompt sections, `CLAUDE.md`, project memory by kind, the plugins, the code repo, the setup the recipient will need, the size, and the scan result. It then says where the upload goes and until when, and asks:

```text
Share web / browse → superclaude.io
  manifest   .claude/superclaude.toml
  prompt     14 sections · 1 written here · 13 from your prompt library
  prose      CLAUDE.md
  memory     42 files · decisions 12 · gotchas 18 · notes 9 · quests 3
  plugins    sc-desk bundled · yours, not in the release
             runs code on their machine: sc-desk
             5 more named only · recipients already have them
  code repo  git · github.com/<owner>/<repo> · your path is not shared
  setup      recipients will need EXA_API_KEY (sc-web) · mcpr, Chrome (sc-browse)
  stays home claude-data/ · plugin state · your hub
  size       191 KB
  scan       no secrets · names 1 IP and 2 hostnames (reported, not blocked)
             <file>:<line>  <IP address>
             <file>:<line>  <hostname>
             <file>:<line>  <hostname>
Uploads to <host> until <local time>, then it is deleted.
Opening it takes the link AND the code. Their installed copy stays theirs.
Upload? [y/N]
```

**What travels and what stays home**

Only an allowlist leaves the machine.

| Ships | Named, not shipped | Stays home |
|---|---|---|
| the manifest, with `code_repo` removed | plugins the release already carries | your memory hub |
| every prompt section the manifest imports | the code repo: git or not, and its remote URL | `claude-data/`, `.claude/sc-memory/`, `.claude/cortex/` |
| `CLAUDE.md` | the `sc` version it was made with | `settings.json`, `.mcp.json`, `config.toml` |
| project memory (`--no-memory` keeps it home) | | `*.bak-*` files, `INDEX.md`, your code repo path |
| files the manifest pulls in by path, inside the workspace | | anything outside the workspace |
| plugins the release does not carry, bundled | | |

- A plugin that is not in the client release, such as one of your vault plugins, is bundled. On install it lands at `<vault>/plugins/<name>` and the manifest refers to it as `$SC_VAULT_PLUGINS/<name>`. The preview tells you which ones run code.
- A prompt section the recipient already has, by name, is imported from their library. A section they lack is written into their manifest from the bundle.
- A manifest that reads a file outside the workspace (`~/.ssh`, `/etc`, `..`) is refused, at share time and again at install time.
- A project memory directory that is a symlink into your memory hub is refused, so the hub never leaves by accident.
- Setup needs travel as names only: `${VAR}` references in a plugin's `.mcp.json`, and the binaries, apps and secrets a plugin declares in its `plugin.toml` `[requires]` table. A secret's value never travels.

**The scan blocked my share**

Every text file in the bundle is scanned on this machine before anything uploads. Nothing is sent anywhere to be checked.

- Likely secrets block the share: provider key prefixes (Anthropic, OpenAI, GitHub, AWS, Slack, Google, Stripe, superclaude), PEM private keys, and high-entropy `KEY=` or `token:` values. `sc` lists each one as `file:line`, a masked value, and what it looks like.
- IP addresses and internal-looking hostnames (`*.internal`, `*.local`, private ranges) are reported in the preview, not blocked.
- `--exclude <path>`, relative to the workspace and repeatable, leaves a file out so you can share without it.

```text
  scan        2 likely secrets — nothing was uploaded
              .claude/memory/references/api-notes.md:14   sk-ant-•••   Anthropic API key
              CLAUDE.md:212                               ghp_•••      GitHub token
              Remove them and share again, leave a file out with --exclude <path>, or send them as they are with --allow-secrets.
              Detection only. A key is never sent anywhere to be checked.
```

**Save a share as a file instead**

```sh
sc <project> <agent> --export [<file>] [--no-memory] [--exclude <path>]
```

`--export` writes the same bundle, after the same scan, to a `.scshare` file (default `./<project>-<agent>.scshare`) instead of uploading it: no network, no expiry, no code. Whoever holds the file can install it.

**Share from a script or an agent**

`--share` reads its `y/N` from the terminal, never from stdin. Without a terminal it prints the same preview, uploads nothing, exits 3, and says to re-run with `--yes` (or `-y`) once the user agrees. That refusal is what makes an agent ask you in chat before it uploads.

**Change how long a share lives or what it holds**

```sh
sc <project> [<agent>] --share [--ttl 3d] [--yes] [--no-memory] [--exclude <path>]
```

If you ask for a lifetime outside the server's range (10 minutes to 7 days), `sc` prints a `note` that the server kept the expiry within its limits.

**Set the name and key a share uses**

`sc shares login` writes a `[share]` table to `config.toml` (mode 0600). `-` reads the key from stdin so it never sits in your shell history. Sharing uses `[share].key`, else `[dist].key` when `[share]` names the same server.

```sh
sc shares login --name sam -
```

```toml
[share]
url = "https://superclaude.io"
key = "<key>"
name = "sam"
```

Login saves the key as typed. If you would rather keep it out of the file, edit `config.toml` by hand and set `key = "${SUPERCLAUDE_KEY}"`; `${VAR}` is expanded.

| Key | Meaning |
|---|---|
| `key` | The superclaude key shares use. Required to send and to install. `${VAR}` is expanded. Falls back to `[dist].key` when `[dist].url` is the same server. |
| `url` | The share server, `https://` only. Falls back to `[dist].url`, then `https://superclaude.io`. |
| `name` | The name recipients see as the sender. Without it they see your key's label. |

`[share]` does not change where plugins come from; that is `[dist]`. See [config.toml](/docs/config-toml).

**See and end my shares**

```sh
sc shares
sc shares ls --codes
sc shares rm <link>
```

```text
  LINK          PROJECT       EXPIRES   OPENED   INSTALLED
  k7Fq2Xw9pL3m  web/browse    in 19h    4        3 machines · acme ×2, globex
  Jq83mZp0aT1x  desk          expired   0        —
  Hq9ZcV1mT4ds  researcher    locked    —        —   5 wrong codes; share it again
```

`ls` lists live shares and those that ended, locked or expired in the last 7 days; `--all` lists every share you ever made. Installers are named by their key. Codes are kept only on the machine that shared, in `~/.superclaude/state/shares.json`; `ls --codes` prints them. `rm` ends a share now and deletes its upload.

**How the code is protected**

| Holding | Gets |
|---|---|
| the link only | the page: who shared, what kind, counts, expiry. No names, no contents. Opening it needs no `sc` and no key. |
| the code only | nothing: there is nowhere to type it without the link |
| link and code | the full contents; with `sc` and a key, the download |
| link and 5 wrong codes | the share locks; the sender sees it and shares again |

- The link is 12 random letters and digits. Guessing one is hopeless.
- Five tries at a million codes is a 1 in 200,000 chance. A miss is counted before the answer goes back, so parallel guesses do not buy extra tries.
- The server keeps only a keyed hash of the code.
- Downloading needs both a superclaude key and the code. Save yours once with `sc shares login <key>`; `sc` sends it only to the share server in your config, never to a host in a pasted link.
- After a share expires, locks or ends, its upload is deleted within the hour. The link itself stays reserved and is never handed out again.
- Each `sc` sends a random machine ID, minted on its first share or install, so `sc shares` can count distinct machines. Machine IDs are self-reported: counts, not proof.
- The operator of superclaude.io can read live shares.

## Receive

1. Install the share

   ```sh
   sc install https://superclaude.io/s/<link>
   ```

   `sc` asks for the code, previews the share, and asks `Install web/browse into personal? [Y/n]`. Nothing is written before the yes.

2. Point the project at your clone of the code repo

   ```sh
   sc <project> <agent> --sc-edit
   ```

   Clone the code repo, then set `code_repo` in the manifest (`.claude/superclaude.toml`) to its path. The session a new install opens at a terminal lists the missing keys and tools. Launch the agent with `sc <project> <agent>`.

- The result is a normal project at `<vault>/p/<project>/a/<agent>`, in a vault (a registered directory that holds projects).
- Installing needs `sc` and a superclaude key, saved once with `sc shares login <key>`. Inside a session, paste the link and code and ask the agent to install it; it runs the same command and asks you in chat.
- A share is code from its sender. Its plugins' hooks and MCP servers run, and its manifest and `CLAUDE.md` instruct an agent that has tools, so install only shares from people you trust.

**What the install preview shows**

`sc install` shows who is waiting, asks for the code, then previews the share and says what it can run on your machine, before it writes anything. A prompt section your library already has is imported from yours, not copied.

```text
A share from sam is waiting · expires in 21h
Code: 482913
web / browse from sam · shared Sat 3 Oct 17:42
  agents     browse
  prompt     14 sections · 12 from your core.toml · 2 bundled
  memory     42 files → project memory
  plugins    sc-desk bundled · runs code here
             5 more ✓ on this machine
  code repo  git · github.com/<owner>/<repo> · left unset
  setup      ✗ EXA_API_KEY secret · sc-web search · not set here
             ✓ mcpr CLI · sc-browse · on PATH
This share is code from sam (key: <label>). Installing it lets it run as you — its plugins' hooks and MCP servers, and its instructions to the agent — when you start it. Install only shares from people you trust.
Install web/browse into personal? [Y/n]
```

`sc` downloads the bundle with your superclaude key, checks its sha256 against what the server recorded, and unpacks it into a private staging folder. It refuses absolute paths, `..`, links, devices and size bombs, and installs nothing unless the bundle has exactly the shape `--share` writes. The code repo is never recreated.

**Install into another vault, under another name, or without prompts**

```sh
sc install <link | file> [code] [-v <vault>] [--as <name>] [--update] [--yes] [--no-start] [--keep-yours | --take-theirs]
```

`<link | file>` is the full link, the bare link id, or a `.scshare` file from `--export`.

| Argument or flag | Effect |
|---|---|
| `<code>` | The code, so `sc` does not ask for it. |
| `-v <vault>` | Install into this vault. With one vault there is nothing to pick; with several and no terminal, `sc` stops and lists them. |
| `--as <name>` | Install under another project name, beside one you already have. |
| `--update` | Update an existing project of the same name even though it was not installed from this sender's shares. |
| `--yes`, `-y` | Answer yes to the install question. |
| `--no-start` | Install and print the report, but do not open the project. |
| `--keep-yours` | Resolve every clash in an update by keeping your side. |
| `--take-theirs` | Resolve every clash in an update by taking the sender's side. |

At a terminal, a new install ends by opening the project: the session introduces itself, says who sent it, and reports the gaps it found, with the fix for each. It does not start working. No session opens with `--no-start`, on an update, without a terminal, while a plugin the manifest names is still missing, or before `sc system` has set up the profiles home.

**Install on a machine without sc**

The page at the link shows a one-line installer that installs `sc`, saves your superclaude key, and then installs the share. Put your key in `SUPERCLAUDE_KEY`; the script saves it with `sc shares login --url <base> -` and then runs `sc install <base>/s/<link>`:

```sh
curl -fsSL "https://superclaude.io/install.sh?share=<link>" | SUPERCLAUDE_KEY=<key> sh
```

The code is never in the command; `sc` asks for it on the terminal. With no vault registered yet, `sc install` offers to create one called `default` and fetches the release's plugins. At a terminal, `sc` then opens the project as above; without one it stops and asks for `--yes`.

**It did not install**

| `sc` says | What happened |
|---|---|
| `That code doesn't match. 4 tries left on this share.` | A wrong code. Each miss counts against the share, from any machine. |
| `this share is locked after 5 wrong codes` | Five misses locked it. Ask the sender to share it again. |
| `this share has expired` | Its time ran out. Ask the sender to share it again. |
| `the sender ended this share` | The sender ran `sc shares rm`. |
| `… is already this share. Nothing to do.` | Your copy came from this exact share. |

Without a terminal, `sc install` prints the preview, installs nothing, and exits 3 naming the flag that answers the question it cannot ask: `-v`, `--as`, `--update`, `--yes`, `--keep-yours` or `--take-theirs`.

**A newer share of a project I have**

Every share is a new link and code, including the next version of the same project. When a share arrives for a project you installed from the same sender, `sc install` updates your copy instead of making a second one:

```text
You have sam's Sat 3 Oct share in personal → this updates it.
             sam changed          you changed
  manifest   <keys>               <keys>
  CLAUDE.md  changed              —
  memory     +<n> new, <n> edited +<n> new (kept), <n> edited
  <plugin>   <file> · runs code   —
  code repo  left unset
Merges cleanly. Update? [Y/n]
```

The sender is matched by the label of the key that uploaded the share, never by the name it shows. A `.scshare` file carries no verified sender, so it updates a copy only with `--update`. A copy with the same name but from somewhere else asks: update it, install beside it as `<name>-2`, or cancel.

`sc` keeps a receipt and the copy as it was installed, outside the workspace in `~/.superclaude/shares/<vault>/<project>/`, so it can tell the sender's changes from yours:

| | the sender didn't change it | the sender changed it |
|---|---|---|
| **you didn't change it** | left alone | takes the sender's |
| **you changed it** | keeps yours | asks you, only if the same key or line changed |

- The manifest merges key by key, other text line by line, not as a whole file.
- A real clash offers keep yours, take theirs, or show both, and saves the other side for comparison next to the receipt.
- Files you added are never touched. Files the sender deleted are kept on your side. Nothing is written through a symlink.
- A share of one agent updates only that agent of a project you have. When you have other agents in that project, a line `Carries <n> of the <m> agents you have in <project>.` comes next, followed by each agent marked updated or untouched.
