claw-roam
БесплатноБез исполняемых скриптовНе проверенSync OpenClaw workspace between multiple machines (local Mac and remote VPS) via Git. Enables seamless migration of OpenClaw personality, memory, and skills…
от lxyeternal★ 68 звёзд на GitHubОб этом скилле
Claw Roam - OpenClaw Workspace Sync
Sync your OpenClaw workspace across machines via Git. This allows you to:
- Work on local Mac as primary, seamlessly switch to VPS when traveling
- Maintain continuous memory and personality across different machines
- Backup your OpenClaw state to remote Git repository
Quick Start
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
Commands
push
Commit and push workspace to remote Git repository.
claw-roam push [message]
- If no message provided, uses timestamp as default
- Automatically adds all changes (git add -A)
- Skips push if no changes detected
pull
Pull latest workspace from remote and sync.
claw-roam pull
- Fetches latest changes from remote
- Applies changes to current workspace
- Stops and restarts OpenClaw gateway to apply changes (VPS mode)
status
Check sync status between local and remote.
claw-roam status
- Shows current branch and commit
- Shows unpushed commits (if any)
- Shows uncommitted changes
- Suggests next action
sync (One-Command Full Sync)
claw-roam sync
Performs the complete sync workflow in one command:
- Commit and push current branch - Saves your local changes
- Merge main into current branch - Gets latest from shared main
- Push to main branch - Shares your changes with other machines
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:
- Your changes are saved to your branch
- You get latest changes from other machines (via main)
- Other machines can get your changes (via main)
Setup
- Initialize Git repo in workspace (if not already done):
cd ~/.openclaw/workspace
git init
git remote add origin <your-repo-url>
- Create initial commit:
git add -A
git commit -m "initial"
git push -u origin main
- On VPS machine - clone the repo:
cd ~
git clone <your-repo-url> openclaw-workspace
ln -s openclaw-workspace ~/.openclaw/workspace
Branch Workflow (Recommended)
For multiple machines, use this branch strategy:
local (Mac) ──┐
├──► main (shared) ◄── merge & push
remote (VPS) ─┘
Setup Each Machine
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
Daily Workflow
On each machine:
- Get latest from main (获取其他机器的最新内容):
claw-roam merge-from main
- Work normally, then push your changes:
claw-roam push "update memory"
- Share to main (让其他机器能获取):
git checkout main
git merge local -m "merge: local -> main"
git push origin main
git checkout local
Quick Sync (One-liner)
# Pull from main, then push to main
claw-roam merge-from main && git checkout main && git merge local && git push && git checkout local
Conflict Resolution
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"
Simple Workflow: Local Primary + VPS Backup
For simpler setups without branches:
Daily Usage (Local Mac)
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
Switching to VPS
- Ensure local has pushed:
claw-roam push - On VPS:
claw-roam pull - Update Telegram webhook to point to VPS (if using webhook mode)
- Continue using alternative bot
Установить claw-roam в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл claw-roam?
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.
Как установить скилл claw-roam?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл claw-roam запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic