Install
openclaw skills install clawgitsyncClawHub Security found sensitive or high-impact capabilities. Review the scan results before using.
Git-first backup, migration, restore, and token-protected archive serving for OpenClaw state. Highlights: complete Git-native workflow (`git init/push/pull/merge/prune-branches`), fine-grained backup scope (`include/exclude/ignore-paths/workspace-include-globs`), built-in secret sanitization pipeline, archive retention (`--keep`), remote branch pruning (`--keep-days`), and richer restore strategies (`overwrite/skip/merge`) with safe defaults.
openclaw skills install clawgitsyncclawsync provides backup/migration workflows for OpenClaw with Git-native sync and safer restore behavior.
curl -fsSL "https://raw.githubusercontent.com/linsheng9731/clawsync/main/scripts/install.sh" | CLAWSYNC_GH_REPO="linsheng9731/clawsync" bash
Install a specific version:
curl -fsSL "https://raw.githubusercontent.com/linsheng9731/clawsync/main/scripts/install.sh" | CLAWSYNC_GH_REPO="linsheng9731/clawsync" bash -s -- v0.1.8
Default install path: ~/.local/bin/clawsync (override with CLAWSYNC_INSTALL_DIR). Ensure this path is in your PATH.
npm install
npm run build
npm link
clawsync --help
clawsync git init, push, pull, and merge commands for branch-based backup and restore.--include, --exclude, --ignore-paths, and --workspace-include-globs to precisely control what is archived.overwrite, skip, and local-first merge with safety defaults (--dry-run, pre-restore snapshot, gateway token preservation).Use this skill when user asks to:
clawsync profile full-migrate --dry-run
clawsync profile full-migrate
Default output: ~/.openclaw/migrations
Default behavior: workspace/ is collected in full for migration.
clawsync git init --repo-url <git-url> --repo-dir ~/.clawsync-repo
clawsync push --repo-dir ~/.clawsync-repo
clawsync pull --repo-dir ~/.clawsync-repo --branch <branch> --dry-run
clawsync pull --repo-dir ~/.clawsync-repo --branch <branch> --yes
clawsync git prune-branches --repo-dir ~/.clawsync-repo --keep-days 30 --dry-run
clawsync unpack --from /path/to/archive.tar.gz --dry-run
clawsync unpack --from /path/to/archive.tar.gz --yes
clawsync serve --token "<secret>" --port 7373
Endpoints:
GET /health (no token)GET / (simple web UI, token required)GET /archives (token required)GET /download/<filename> (token required)POST /upload (token required)POST /backup (localhost-only)POST /restore/<filename>?dry_run=1|confirm=1 (localhost-only)For unpack / pull / merge, the CLI defaults to:
--yes)/tmp (unless --no-pre-snapshot)gateway.auth.token (unless --overwrite-gateway-token)source env-export.sh when neededWhen executing restore/migration for users:
--dry-run first.--yes only after explicit confirmation.source command.openclaw.json, credentials, sessions).serve --token as sensitive; do not share token publicly.serve endpoint directly to public internet without TLS/reverse proxy.