/install claw-time-machine
Claw Time Machine
Back up, restore, and migrate the important state of an OpenClaw installation.
Run the script
Use the bundled script:
./scripts/ctm.sh \x3Ccommand> [args]
Commands:
backup [filename]— create a backup under~/.ctm/list— show backups, newest firstrestore \x3Cindex|filename|latest> [--force]— restore a backupmigrate \x3Cuser@host> [--remote-dir \x3Cdir>] [--clean-remote-archive] [--force]— copy a backup to another machine and restore it there
What the script preserves
The script backs up only the important OpenClaw state, not the full installation binaries:
workspace/credentials/telegram/skills/cron/openclaw.jsonidentity/
Each archive also includes a manifest.txt file that lists the captured paths.
Core workflow
Create a backup
Before a risky change, server migration, or major upgrade:
./scripts/ctm.sh backup
If the user asks how many backups exist or wants to inspect them:
./scripts/ctm.sh list
Report the count, filenames, sizes, and highlight the newest backup.
Restore a backup
Prefer listing backups first when the user is choosing by index:
./scripts/ctm.sh list
./scripts/ctm.sh restore 1
Use latest when the intent is obvious:
./scripts/ctm.sh restore latest
Add --force only when non-interactive restore is clearly intended.
Migrate to another machine
Use the migration command when the user wants a full move to a new server:
./scripts/ctm.sh migrate user@new-server
The script creates a fresh backup, copies it to the target host, and restores it there without requiring the skill to already exist on the target machine.
If the user wants the copied archive removed from the target machine after a successful restore, add --clean-remote-archive.
Important safety rules
- Treat restore as destructive: it overwrites the preserved state paths.
- Keep the automatic safety backup path shown by the script so rollback remains possible.
- This skill does not stop or start Gateway automatically.
- If the target environment is unusual, read
references/usage.mdbefore doing a migration.
Additional guidance
For detailed examples, migration notes, and failure handling, read references/usage.md.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install claw-time-machine - 安装完成后,直接呼叫该 Skill 的名称或使用
/claw-time-machine触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Claw Time Machine 是什么?
Backup, restore, and migrate OpenClaw installations. Preserve workspace memories, credentials, custom skills, scheduled tasks, and core configuration. Use wh... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 130 次。
如何安装 Claw Time Machine?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install claw-time-machine」即可一键安装,无需额外配置。
Claw Time Machine 是免费的吗?
是的,Claw Time Machine 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Claw Time Machine 支持哪些平台?
Claw Time Machine 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Claw Time Machine?
由 Tacit Lab(@tacitlab)开发并维护,当前版本 v1.0.4。