Skip to content

CLI Commands

clawstore is a Node 20+ CLI published to npm. Install globally or run via npx:

Terminal window
npm install -g clawstore
# or
npx clawstore <command>
CommandDescription
clawstore initScaffold an agent.json in the current directory. Detects existing workspace files, plugins, and secrets.
clawstore validate [path]Run the validator against a package directory. Pure local, no network.
clawstore pack [path]Create a local tarball. Runs validate first; refuses to pack on failure.
clawstore preview [path] [--run]Install into an isolated scratch workspace. --run starts an ephemeral OpenClaw session.
clawstore loginAuthenticate with GitHub via the device authorization flow. Token stored in ~/.clawstore/auth.json.
clawstore publish [path]Upload to the registry. Runs validate + pack first.
clawstore yank <id>@<version> [--reason]Mark a published version as yanked. Owner-only.
clawstore diff <id> [version]Compare local package to a published version.
CommandDescription
clawstore install <id>[@version]Install an agent. Also accepts a local .tgz path or URL for sideloading.
clawstore uninstall <id>Remove an agent. Prompts about preserving user files and plugins.
clawstore update [id]Update one agent (or all if id omitted). Shows a diff before touching files.
clawstore update checkDry-run — print available updates, install nothing.
clawstore listShow installed agents with versions and update policies.
clawstore search <query>Search the registry from the terminal.
clawstore info <id>Show package details in the terminal.
clawstore rollback <id>Restore the most recent snapshot.
clawstore doctor [id] [--fix]Detect and optionally repair drift between install record and disk.
clawstore pruneClean up graveyard directories, expired snapshots, and orphans.
clawstore policy <id> manual|prompt|autoSet update policy for an installed agent.
CodeMeaning
0Success
1User-facing error (validation failure, permission denied, aborted by operator)
2Network or backend error (retryable)
3Local state corruption — run clawstore doctor
4Internal bug (includes stack trace)

The CLI defaults to https://api.useclawstore.com/v1. Override with:

Terminal window
# Environment variable
export CLAWSTORE_API_URL=https://your-instance.example.com/v1
# Or config file
# ~/.clawstore/config.json
{ "apiUrl": "https://your-instance.example.com/v1" }
PathPurpose
~/.clawstore/auth.jsonAPI bearer token (permissions 0600)
~/.clawstore/config.jsonPreferences: default update policy, API URL
~/.clawstore/installs/<id>.jsonInstall record per agent
~/.clawstore/snapshots/<id>/Rollback snapshots