通过 Git 在多台计算机(本地 Mac 和远程 VPS)之间同步 OpenClaw 工作区。实现 OpenClaw 个性、记忆和技能的无缝迁移。当用户想要 (1) 在关机前将工作区更改推送到远程、(2) 在新计算机上拉取最新工作区、(3) 检查同步状态时使用
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install claw-roam或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install claw-roam⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/claw-roam/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: claw-roam description: Sync OpenClaw workspace between multiple machines (local Mac and remote VPS) via Git. Enables seamless migration of OpenClaw personality, memory, and skills. Use when user wants to (1) push workspace changes to remote before shutdown, (2) pull latest workspace on a new machine, (3) check sync status between machines, (4) migrate OpenClaw to another machine. ---
Sync your OpenClaw workspace across machines via Git. This allows you to:
Recommended branch model for multi-device:
main = shared baselineremote = this serverlocal = your laptop/desktop# Check status (current branch)
claw-roam status
# One-command full sync (recommended)
claw-roam sync
# Or step by step:
# Commit+push current branch
claw-roam push "msg"
# Pull latest for current branch
claw-roam pull
# (Optional) merge another device branch into current branch
claw-roam merge-from local
claw-roam merge-from remote
Commit and push workspace to remote Git repository.
claw-roam push [message]
Pull latest workspace from remote and sync.
claw-roam pull
Check sync status between local and remote.
claw-roam status
claw-roam sync
Performs the complete sync workflow in one command:
Workflow diagram:
┌─────────────┐ commit+push ┌─────────────┐
│ local │ ───────────────────▶│ origin/local│
│ 分支 │ │ │
└──────┬──────┘ └─────────────┘
│
│ merge main
▼
┌─────────────┐ merge+push ┌─────────────┐
│ local │ ───────────────────▶│ main │
│ 分支 │ │ (shared) │
└─────────────┘ └──────┬──────┘
│
┌──────────────────────┘
│ pull
▼
┌─────────────┐
│ remote │
│ 分支 │
└─────────────┘
Recommended daily workflow:
# On each machine, just run:
claw-roam sync
This ensures:
cd ~/.openclaw/workspace
git init
git remote add origin <your-repo-url>
git add -A
git commit -m "initial"
git push -u origin main
cd ~
git clone <your-repo-url> openclaw-workspace
ln -s openclaw-workspace ~/.openclaw/workspace
For multiple machines, use this branch strategy:
local (Mac) ──┐
├──► main (shared) ◄── merge & push
remote (VPS) ─┘
Local Mac:
cd ~/.openclaw/workspace
git checkout -b local
git push -u origin local
Remote VPS:
cd ~/.openclaw/workspace
git checkout -b remote
git push -u origin remote
On each machine:
claw-roam merge-from main
claw-roam push "update memory"
git checkout main
git merge local -m "merge: local -> main"
git push origin main
git checkout local
# Pull from main, then push to main
claw-roam merge-from main && git checkout main && git merge local && git push && git checkout local
If merge-from main has conflicts:
# Keep your version
git checkout --ours <conflicted-file>
git add -A && git commit -m "merge: resolved conflicts"
# Or keep main's version
git checkout --theirs <conflicted-file>
git add -A && git commit -m "merge: resolved conflicts"
For simpler setups without branches:
Just use OpenClaw normally. Before shutdown:
claw-roam push "end of day sync"
Or let it auto-push via cron:
# Add to crontab
*/10 * * * * cd ~/.openclaw/workspace && git add -A && git commit -m "auto: $(date)" && git push
claw-roam pushclaw-roam pullclaw-roam pushclaw-roam pullSynced (preserved across machines):
SOUL.md - Your agent's personalityMEMORY.md - Long-term memorymemory/*.md - Daily conversation logsskills/ - All installed skillsAGENTS.md, USER.md - Context filesTOOLS.md - Device configurationsHEARTBEAT.md - Periodic tasksNot Synced (machine-specific):
Run setup steps above to initialize Git repository.
If you edited on both machines without syncing:
# On the machine with changes you want to keep
git pull --strategy=ours
git push
Ensure your Git remote is configured with proper authentication (SSH key or token).
Use bundled scripts directly:
~/.openclaw/workspace/skills/claw-roam/scripts/claw-roam.sh push
~/.openclaw/workspace/skills/claw-roam/scripts/claw-roam.sh pull
~/.openclaw/workspace/skills/claw-roam/scripts/claw-roam.sh status安装 利爪漫游 后,可以对 AI 说这些话来触发它
Help me get started with Claw Roam
Explains what Claw Roam does, walks through the setup, and runs a quick demo based on your current project
Use Claw Roam to sync OpenClaw workspace between multiple machines (local Mac and re...
Invokes Claw Roam with the right parameters and returns the result directly in the conversation
What can I do with Claw Roam in my documents & notes workflow?
Lists the top use cases for Claw Roam, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/claw-roam/ 目录(个人级,所有项目可用),或 .claude/skills/claw-roam/(项目级)。重启 AI 客户端后,用 /claw-roam 主动调用,或让 AI 根据上下文自动发现并使用。
利爪漫游 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
利爪漫游 可免费安装使用。请查阅仓库了解许可证信息。
通过 Git 在多台计算机(本地 Mac 和远程 VPS)之间同步 OpenClaw 工作区。实现 OpenClaw 个性、记忆和技能的无缝迁移。当用户想要 (1) 在关机前将工作区更改推送到远程、(2) 在新计算机上拉取最新工作区、(3) 检查同步状态时使用
利爪漫游 属于「Documents & Notes」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my documents & notes tasks using Claw Roam
Identifies repetitive steps in your workflow and sets up Claw Roam to handle them automatically