{"skill":{"slug":"migrate","displayName":"Migrate","summary":"Export and import Clawdbot installations for migration between machines. Use when the user wants to migrate Clawdbot to a new computer, backup their setup, or restore from a backup. Handles workspace files, config, WhatsApp sessions, and optionally credentials.","description":"---\nname: migrate\ndescription: Export and import Clawdbot installations for migration between machines. Use when the user wants to migrate Clawdbot to a new computer, backup their setup, or restore from a backup. Handles workspace files, config, WhatsApp sessions, and optionally credentials.\n---\n\n# Clawdbot Migration\n\nExport and import complete Clawdbot installations.\n\n## Export\n\nCreate a portable archive of the current installation:\n\n```bash\nbash scripts/export.sh\n```\n\nOptions:\n- `--output, -o PATH` — Output directory (default: current)\n- `--workspace PATH` — Workspace path (default: ~/clawd)\n- `--include-sessions` — Include session transcripts\n- `--include-credentials` — Include credentials ⚠️ handle with care\n\nExample:\n```bash\nbash scripts/export.sh -o /tmp --include-sessions\n```\n\nCreates: `clawdbot-export-YYYYMMDD_HHMMSS.tar.gz`\n\n## Import\n\nRestore from an export archive on a new machine:\n\n```bash\nbash scripts/import.sh <archive.tar.gz>\n```\n\nOptions:\n- `--workspace PATH` — Target workspace (default: ~/clawd)\n- `--force, -f` — Overwrite without prompting\n\nExample:\n```bash\nbash scripts/import.sh clawdbot-export-20260129_120000.tar.gz --force\n```\n\n## What's Included\n\n| Component | Default | Flag |\n|-----------|---------|------|\n| Workspace (~/clawd) | ✓ | — |\n| Config (clawdbot.json) | ✓ | — |\n| Managed skills | ✓ | — |\n| WhatsApp session | ✓ | — |\n| Session transcripts | ✗ | `--include-sessions` |\n| Credentials | ✗ | `--include-credentials` |\n\n**Excluded from workspace** (can be rebuilt):\n`node_modules/`, `.next/`, `.open-next/`, `.vercel/`, `.wrangler/`, `.git/`, `dist/`, `build/`\n\n## Migration Workflow\n\n1. On old machine:\n   ```bash\n   bash scripts/export.sh -o ~/Desktop\n   ```\n\n2. Transfer archive to new machine (scp, USB, cloud, etc.)\n\n3. On new machine:\n   ```bash\n   npm install -g clawdbot\n   bash scripts/import.sh ~/clawdbot-export-*.tar.gz\n   cd ~/clawd && clawdbot gateway start\n   ```\n\nWhatsApp session transfers automatically — no re-scan needed.\n","tags":{"latest":"1.0.0"},"stats":{"comments":0,"downloads":2145,"installsAllTime":5,"installsCurrent":5,"stars":0,"versions":1},"createdAt":1769709319222,"updatedAt":1778987387873},"latestVersion":{"version":"1.0.0","createdAt":1769709319222,"changelog":"Initial release: export/import Clawdbot installations","license":null},"metadata":null,"owner":{"handle":"mrgoodb","userId":"s17d2sghntfs0ecckfjgqx71kd885kbe","displayName":"MrGoodB","image":"https://avatars.githubusercontent.com/u/105007315?v=4"},"moderation":null}