Navigate the docs

For AI agents: the documentation index is at /llms.txt, and every page here has a markdown version at its URL plus .md.

CLI

sprott --help prints the grouped list. sprott <command> --help prints a command's flags. sc and safeclaw are links to the same binary.

Global flags

FlagPurpose
--vault <vault>Target vault for this command (below).
--jsonMachine-readable output on commands that support it (status, doctor, registry, setup, the ls listings).
--no-browserPrint the approval link instead of opening a browser.
--cb-port <port>A fixed port for the local approval callback, for SSH port forwarding.
--timeout <seconds>How long to wait for a local browser approval (default 120), or in sprott op wait (default 1900).
--waitWait for the approval and print the result. The default.
--no-waitPrint the approval link and return; sprott op wait reports the result.
-v, -vv, -vvvMore logging to stderr.
-h, --help · -V, --versionHelp and version.

Global flags work on any subcommand, in any position. Commands that don't use one ignore it.

A <vault> (in --vault, vault use, vault forget, vault rm) is, first match wins: its exact id; its exact name (any case; quote a name with spaces); its number in sprott vault ls (1 to 3 digits); a unique id prefix of 4 or more characters. A name or prefix that matches several vaults is an error that lists them.

Setup

CommandPurpose
sprott setup [--agent-name <name>] [--wait]Set up this machine and one agent without prompting. Re-run after each browser step until it reports done. (Quickstart)
sprott skill install [--force] · skill uninstall [--force]Install, update or uninstall the agent skill.
sprott login [--device-name <label>]Pair this machine to your account: prints a code and an approval link.
sprott logout [--keep-remote]Unpair this machine and revoke its device key in your account.
sprott upStart the daemon if needed, then unlock the vault. Safe to repeat.
sprott downStop the daemon.
sprott restartRestart the daemon and unlock again.
sprott statusThe daemon and the active vault: which one, locked or unlocked, its console URL.

Secrets

CommandPurpose
sprott set <KEY> [<value> | -] [--host <host>]... [--no-host]Write a secret. With no value it asks (hidden); - reads it from stdin. --host anchors it to a host and creates its connection. --no-host stores it with no host, for humans only.
sprott get <KEY>Print a secret's value. Asks for your passkey every time.
sprott lsList secret names.
sprott rm <KEY> [-y]Delete a secret. -y removes it even when connections use it.

These are short forms of sprott secret set|get|ls|rm.

Connections

CommandPurpose
sprott run [--vault <vault>] -- <cmd>Run a command through the proxy. --export-env prints the proxy environment as export lines instead.
sprott connection lsList the connections the agent can use, with hosts and phantoms.
sprott connection add [<id>]Create a connection in one approval. Flags: --service <id>, --host <host>, --set SLOT=VALUE (SLOT=- reads stdin), --use SLOT=KEY.
sprott connection rm <id> [-y] [--keep-secrets]Remove a connection and the secrets it wrote.
sprott connection add-host <id> <host>Propose a new host for a connection: an exact domain or a leftmost *.domain.
sprott connection rm-host <id> <host>Propose removing a host from a connection.
sprott registryThe built-in service catalog. Works offline.
sprott service add <source> [--id <id>] [--ref <ref>]Add service definitions from a folder or a GitHub repository. (Add a service)
sprott service update [<id or source>] [--all] [--check] [-y] [--ref <ref>]Re-read a source and store what changed.
sprott service ls [<id>]List the vault's service definitions by source.
sprott service rm <id or source>Remove one service, or every service of a source.
sprott service validate <source> [--ref <ref>]Run the add checks without a vault.
sprott store lsList the external stores connected to the vault.

sprott conn is short for sprott connection.

Account

CommandPurpose
sprott agent add <name>Create an agent identity and print its env.
sprott agent lsList the account's agents: name, key prefix, last used.
sprott agent rm <name>Remove an agent: prints the console page where you sign the removal.
sprott passkey lsList the passkeys enrolled on the vault.
sprott passkey addPrints the console page where passkeys are added.
sprott passkey rm <passkey> · passkey rename <passkey> <new-name>Prints the console page where it is removed or renamed. <passkey> is its exact name (any case), its credential id, or a unique id prefix of 4 or more characters.
sprott vault lsList vaults this machine knows; * marks the default.
sprott vault use [<vault>]Set the default vault for your commands. With no <vault>, pick from a list.
sprott vault statusThe current vault: state, passkey count, secret count.
sprott vault createPrints the console page where vaults are created.
sprott vault forget [<vault>]Remove a vault from this machine's list. Changes nothing else.
sprott vault rm <vault> [-y]Delete the vault's state in the daemon. Irreversible; asks for your passkey.

Short forms: sprott a (agent), sprott p (passkey), sprott v (vault).

Maintenance

CommandPurpose
sprott unlockUnlock the vault. --vault picks another one.
sprott lockWipe the vault's keys from the daemon's memory. Asks for your passkey.
sprott syncPull the latest vault state from the cloud now.
sprott op wait <op_id>Wait for an approval, up to --timeout (default 1900 seconds). The exit code is the outcome (below).
sprott log [-f] [-n <lines>] [--raw]Show the daemon's logs.
sprott doctorHealth and reachability checks. Exits non-zero if a check fails.
sprott upgrade [--force] [--stable | --prerelease]Install the latest release and the skill.
sprott config set|get|unset|lsPreferences. Keys: cb-port (the default for --cb-port) and proxy (the HTTP proxy the daemon uses to reach the internet, for corporate networks; applies at once).
sprott versionPrint the version.
sprott serveRun the daemon in the foreground, for Docker or a hand-written service unit. sprott up uses it for you.

Ports and environment

NameDefaultPurpose
SPROTT_PORT23293The daemon's control port, on 127.0.0.1.
SPROTT_PROXY_PORT23294The proxy sprott run routes through.
SPROTT_BROKER_URLThe local broker, set in an agent's env file.
SPROTT_AGENT_IDENTITYPath to the agent's identity file, set in its env file.
SPROTT_STATE_DIR~/.sprott/stateWhere the daemon keeps its state.
SPROTT_BODY_CAP32 MiBThe largest request body the broker inspects (sprott serve --body-cap).
SPROTT_CB_PORTSame as --cb-port.

The installer reads SPROTT_BIN_DIR (default ~/.local/bin).

Exit codes

All commands: 0 success, 1 error, 2 usage error.

sprott op wait:

CodeMeaning
0Approved. Run the original command again, unless op wait printed Approved and applied.
3Expired or unknown. Run the command again for a fresh link.
4Stopped waiting (--timeout). The request may still be pending; wait again.
5Not approved. Don't retry it unchanged.
6Withdrawn, or replaced by a newer request. Run the command again to ask again.