Clawdbot Sync
by @udiedrichsen
Synchronize memory, preferences, and skills between multiple Clawdbot instances. Supports bi-directional sync via SSH/rsync over Tailscale. Use when asked to sync with another Clawdbot, share memory between instances, or keep multiple agents in sync. Triggers: /sync, 'sync with mac', 'update other clawdbot', 'share this with my other bot'.
clawhub install clawdbot-syncπ About This Skill
name: clawdbot-sync version: 1.0.0 description: "Synchronize memory, preferences, and skills between multiple Clawdbot instances. Supports bi-directional sync via SSH/rsync over Tailscale. Use when asked to sync with another Clawdbot, share memory between instances, or keep multiple agents in sync. Triggers: /sync, 'sync with mac', 'update other clawdbot', 'share this with my other bot'." author: clawdbot license: MIT metadata: clawdbot: emoji: "π" triggers: ["/sync"] requires: bins: ["rsync", "ssh", "jq"] tags: ["sync", "multi-agent", "collaboration", "backup"]
Clawdbot Sync π
Synchronize memory, preferences, and skills between multiple Clawdbot instances over Tailscale/SSH.
Features
Commands
| Command | Action |
|---------|--------|
| /sync | Show status and configured peers |
| /sync status | Check connection to all peers |
| /sync now [peer] | Sync with peer (or all) |
| /sync push [peer] | Push local changes to peer |
| /sync pull [peer] | Pull changes from peer |
| /sync add | Add a peer |
| /sync remove | Remove a peer |
| /sync diff [peer] | Show what would change |
| /sync history | Show sync history |
Setup
1. Configure Peers
handler.sh add mac-mini 100.95.193.55 clawdbot /Users/clawdbot/clawd $WORKSPACE
handler.sh add server 100.89.48.26 clawdbot /home/clawdbot/clawd $WORKSPACE
2. Ensure SSH Access
Both machines need SSH key auth:
ssh-copy-id clawdbot@100.95.193.55
3. Test Connection
handler.sh status $WORKSPACE
What Gets Synced
| Item | Default | Notes |
|------|---------|-------|
| memory/ | β
Yes | All memory files and skill data |
| MEMORY.md | β
Yes | Main memory file |
| USER.md | β
Yes | User profile |
| IDENTITY.md | β No | Each instance has its own identity |
| skills/ | βοΈ Optional | Installed skills |
| config/ | β No | Instance-specific config |
Handler Commands
handler.sh status $WORKSPACE # Check peers and connection
handler.sh sync $WORKSPACE # Bi-directional sync
handler.sh push $WORKSPACE # Push to peer
handler.sh pull $WORKSPACE # Pull from peer
handler.sh diff $WORKSPACE # Show differences
handler.sh add $WS # Add peer
handler.sh remove $WORKSPACE # Remove peer
handler.sh history $WORKSPACE # Sync history
handler.sh auto $WORKSPACE # Auto-sync on heartbeat
Conflict Resolution
1. Timestamp-based: Newer file wins 2. Merge for logs: Append-only files are merged 3. Skip conflicts: Option to skip conflicting files 4. Manual resolution: Flag for review
Data Files
Stored in $WORKSPACE/memory/clawdbot-sync/:
| File | Purpose |
|------|---------|
| peers.json | Configured peers |
| history.json | Sync history log |
| config.json | Sync preferences |
| conflicts/ | Conflicting files for review |
Example Session
User: /sync now mac-mini
Bot: π Syncing with mac-mini (100.95.193.55)... π€ Pushing: 3 files changed
β’ memory/streaming-buddy/preferences.json
β’ memory/2026-01-26.md
β’ MEMORY.md
π₯ Pulling: 1 file changed
β’ memory/2026-01-25.md
β
Sync complete! 4 files synchronized.
Requirements
rsync (for efficient file sync)ssh (for secure transport)Security
βοΈ Configuration
1. Configure Peers
handler.sh add mac-mini 100.95.193.55 clawdbot /Users/clawdbot/clawd $WORKSPACE
handler.sh add server 100.89.48.26 clawdbot /home/clawdbot/clawd $WORKSPACE
2. Ensure SSH Access
Both machines need SSH key auth:
ssh-copy-id clawdbot@100.95.193.55
3. Test Connection
handler.sh status $WORKSPACE