Clone your AI agent to a new device. One command. Everything transfers.
Quick Start โข Use Cases โข How It Works โข ไธญๆ
Install โ tell your agent:
"Install agent-pack-n-go from https://github.com/AICodeLion/agent-pack-n-go"
Or manually:
cd ~/.openclaw/skills
git clone https://github.com/AICodeLion/agent-pack-n-go.gitUse โ tell your agent:
"Clone my agent to a new device"
The agent asks for SSH credentials, then handles everything automatically. ~25 minutes, zero manual steps after SSH key setup.
| Scenario | Description |
|---|---|
| Clone | Move to a faster machine, or run a second copy elsewhere |
| Snapshot | Save the tarball as a point-in-time backup, restore in minutes |
| Team deploy | Clone a well-tuned agent across team members |
| Lab โ Cloud | Develop locally, deploy to production with one command |
The agent on the old device controls everything via SSH. You just confirm.
Old Device (agent controls) New Device (SSH remote)
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ 1. Pre-flight check โ โ โ
โ 2. Network diagnostics โโโโโโโโโ โ direct / proxy? โ
โ 3. Pack + transfer โโโโโโโโโ โ files + SHA256 โ โ
โ 4. setup.sh โโโโโโโโโ โ nvm + Node + Claude โ
โ 5. deploy.sh โโโโโโโโโ โ OpenClaw deployed โ
โ 6. Guided switch โ โ โ
Agent is live โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโโโ
| Phase | What happens | Time | Who |
|---|---|---|---|
| Pre-flight | SSH key setup, connectivity check | ~3 min | You |
| Network | Auto-detect direct vs proxy | instant | Agent |
| Pack & Transfer | Bundle + rsync + SHA256 verify | ~5 min | Agent |
| Setup | Install nvm, Node.js 22, Claude Code | ~5 min | Agent |
| Deploy | OpenClaw + restore configs + start gateway | ~5 min | Agent |
| Verify | Guided 3-step verification | ~3 min | You |
| Item | Details |
|---|---|
~/.openclaw/ |
Config, workspace, skills, extensions, memory, credentials |
~/.claude/ |
Claude Code settings and OAuth credentials |
~/.ssh/ |
SSH keys (permissions auto-fixed to 600) |
| crontab | Scheduled tasks, paths auto-corrected for new username |
| /etc/hosts | Custom DNS entries |
| Dashboard | Optional โ included if present |
| Measure | Details |
|---|---|
| Triple SHA256 | Integrity verified at pack, transfer, and setup |
| SSH-only transport | No cloud, no third-party โ credentials stay in the tunnel |
| SUDO_OK pattern | Graceful skip when no passwordless sudo available |
| Feature | Description |
|---|---|
| Natural language trigger | Say "clone to new device" in any language |
| Network auto-detection | Direct vs proxy, with graceful adaptation |
| Real-time progress | Live updates in your chat during each phase |
| Path auto-correction | /home/olduser โ /home/newuser across all configs |
| rsync with fallback | Falls back to scp when rsync is unavailable |
| Rollback ready | Tarball preserved, restart old device anytime |
Backup = save files โ manually install runtime โ manually configure โ hope it works
Clone = data + runtime + credentials + system config โ agent boots immediately
| Feature | agent-pack-n-go | agent-life | OpenClaw Backup | GitClaw | Official Docs |
|---|---|---|---|---|---|
| Full device clone | โ | โ | โ | โ | โ |
| One-command trigger | โ | โ | CLI | Cron | โ |
| Runtime auto-install | โ | โ | โ | โ | โ |
| Credentials transfer | โ | โ | โ | โ | Manual |
| System config restore | โ | โ | โ | โ | โ |
| Gateway auto-start | โ | โ | โ | โ | โ |
| Network diagnostics | โ | โ | โ | โ | โ |
| Zero third-party | โ | โ | โ | โ | โ |
| Graceful degradation | โ | โ | โ | โ | โ |
| Integrity verification | โ | โ | โ | โ | โ |
Currently optimized for Linux โ Linux. macOS and Windows (WSL) support is under testing.
| Old Device | New Device | |
|---|---|---|
| OS | Any Linux with OpenClaw | Ubuntu 22.04 / 24.04 |
| Hardware | โ | 2-core CPU, 2GB+ RAM |
| Access | โ | SSH + sudo (recommended) |
agent-pack-n-go/
โโโ SKILL.md # Agent workflow & instructions
โโโ scripts/
โ โโโ pack.sh # Pack everything (11 steps)
โ โโโ transfer.sh # rsync + SHA256 verify
โ โโโ setup.sh # Base environment (12 steps)
โ โโโ deploy.sh # OpenClaw deployment (13 steps)
โ โโโ network-check.sh # Connectivity diagnostics
โ โโโ generate-instructions.sh # Fallback manual guide
โ โโโ welcome.sh # Post-install message
โโโ references/
โโโ migration-guide.md # Complete manual reference
โโโ troubleshooting.md # Common issues & fixes
- OpenClaw โ The AI agent framework this skill is built for
- agent-life โ Cross-framework agent migration with neutral format
- OpenClaw Migration Guide โ Official manual migration docs
ไธๅฅ่ฏๅ ้ไฝ ็ AI Agent ๅฐๆฐ่ฎพๅคใๅ จ่ชๅจ๏ผ้ถไบไพ่ตใ
English โข ๅฟซ้ๅผๅง โข ไฝฟ็จๅบๆฏ โข ๅทฅไฝๆต็จ
ๅฎ่ฃ โ ๅฏนไฝ ็ Agent ่ฏด๏ผ
"ๅธฎๆๅฎ่ฃ agent-pack-n-go from https://github.com/AICodeLion/agent-pack-n-go"
ๆๆๅจๅฎ่ฃ ๏ผ
cd ~/.openclaw/skills
git clone https://github.com/AICodeLion/agent-pack-n-go.gitไฝฟ็จ โ ๅฏนไฝ ็ Agent ่ฏด๏ผ
"ๅธฎๆๅ ้ๅฐๆฐ่ฎพๅค"
Agent ไผ่ฏข้ฎ SSH ไฟกๆฏ๏ผ็ถๅๅ จ่ชๅจๅฎๆใๆป่ๆถ็บฆ 25 ๅ้๏ผSSH ้ ็ฝฎๅๆ ้ๆๅจๆไฝใ
| ๅบๆฏ | ่ฏดๆ |
|---|---|
| ๅ ้ | ่ฟ็งปๅฐๆดๅฟซ็ๆบๅจ๏ผๆๅจๅฆไธๅฐ่ฎพๅค่ฟ่กๅฏๆฌ |
| ๅฟซ็ ง | ไฟๅญ tarball ไฝไธบๆถ้ด็นๅคไปฝ๏ผ้ๆถๅ้็บงๆขๅค |
| ๅข้้จ็ฝฒ | ๅฐ่ฐๆๅฅฝ็ Agent ๅ ้็ปๅคไธชๅข้ๆๅ |
| ๆฌๅฐ โ ไบ็ซฏ | ๆฌๅฐๅผๅ๏ผไธๆกๅฝไปค้จ็ฝฒๅฐ็ไบง็ฏๅข |
Agent ๅจๆง่ฎพๅคไธ้่ฟ SSH ๆงๅถไธๅ๏ผไฝ ๅช้็กฎ่ฎคใ
ๆง่ฎพๅค๏ผAgent ๅ
จ็จๆงๅถ๏ผ ๆฐ่ฎพๅค๏ผSSH ่ฟ็จ๏ผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโ
โ 1. ๅ
้ๅๆฃๆฅ โ โ โ
โ 2. ็ฝ็ป่ฏๆญ โโโโโโ โ ็ด่ฟ / ้ไปฃ็๏ผ โ
โ 3. ๆๅ
+ ไผ ่พ โโโโโโ โ ๆไปถ + SHA256 โ โ
โ 4. setup.sh โโโโโโ โ nvm + Node + Claude โ
โ 5. deploy.sh โโโโโโ โ OpenClaw ้จ็ฝฒๅฎๆฏ โ
โ 6. ๅผๅฏผๅๆข โ โ โ
Agent ไธ็บฟ โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโโโโโโโ
| ้ถๆฎต | ๅ ๅฎน | ่ๆถ | ๆง่ก่ |
|---|---|---|---|
| ๅ ้ๅๆฃๆฅ | SSH ๅฏ้ฅ้ ็ฝฎใ่ฟ้ๆง้ช่ฏ | ~3 ๅ้ | ็จๆท |
| ็ฝ็ป่ฏๆญ | ่ชๅจ่ฏๅซ็ด่ฟ / ไปฃ็็ฏๅข | ๅณๆถ | Agent |
| ๆๅ ไธไผ ่พ | ๆๅ + rsync + SHA256 ๆ ก้ช | ~5 ๅ้ | Agent |
| ็ฏๅขๅฎ่ฃ | ๅฎ่ฃ nvmใNode.js 22ใClaude Code | ~5 ๅ้ | Agent |
| ้จ็ฝฒ | OpenClaw + ๆขๅค้ ็ฝฎ + ๅฏๅจ Gateway | ~5 ๅ้ | Agent |
| ้ช่ฏ | ๅผๅฏผๅผไธๆญฅ้ช่ฏ | ~3 ๅ้ | ็จๆท |
| ๅ ๅฎน | ่ฏดๆ |
|---|---|
~/.openclaw/ |
้ ็ฝฎใๅทฅไฝๅบใๆ่ฝใๆไปถใ่ฎฐๅฟใๅญ่ฏ |
~/.claude/ |
Claude Code ่ฎพ็ฝฎๅ OAuth ๅญ่ฏ |
~/.ssh/ |
SSH ๅฏ้ฅ๏ผๆ้่ชๅจไฟฎๆญฃไธบ 600๏ผ |
| crontab | ๅฎๆถไปปๅก๏ผ่ทฏๅพ่ชๅจไฟฎๆญฃไธบๆฐ็จๆทๅ |
| /etc/hosts | ่ชๅฎไน DNS ๆก็ฎ |
| Dashboard | ๅฏ้ โ ๅญๅจๅๆๅ |
| ๆชๆฝ | ่ฏดๆ |
|---|---|
| ไธ้ SHA256 ๆ ก้ช | ๆๅ ใไผ ่พใๅฎ่ฃ ๆฏไธช้ถๆฎต้ช่ฏๅฎๆดๆง |
| ็บฏ SSH ไผ ่พ | ไธ็ป่ฟไปปไฝไบๆ็ฌฌไธๆน๏ผๅญ่ฏๅง็ปๅจๅ ๅฏ้้ไธญ |
| SUDO_OK ๆจกๅผ | ๆฒกๆๅ ๅฏ sudo ๆถไผ้ ่ทณ่ฟ๏ผไธไธญๆญๆต็จ |
| ็นๆง | ่ฏดๆ |
|---|---|
| ่ช็ถ่ฏญ่จ่งฆๅ | ไปปไฝ่ฏญ่จ่ฏด"ๅ ้ๅฐๆฐ่ฎพๅค"ๅณๅฏ |
| ็ฝ็ป่ชๅจ่ฏๅซ | ็ด่ฟ / ไปฃ็็ฏๅข่ช้ๅบ |
| ๅฎๆถ่ฟๅบฆๅ้ฆ | ๆฏไธช้ถๆฎตๅจ่ๅคฉไธญๆจ้่ฟๅบฆ |
| ่ทฏๅพ่ชๅจไฟฎๆญฃ | /home/ๆง็จๆท โ /home/ๆฐ็จๆท ๅ
จๅฑๆฟๆข |
| rsync + ้็บง | rsync ไธๅฏ็จๆถ่ชๅจๅ้ๅฐ scp |
| ้ๆถๅๆป | tarball ไฟ็๏ผ้ๆถ้ๅฏๆง่ฎพๅคๆขๅค |
ๅคไปฝ = ๅญๆไปถ โ ๆๅจ่ฃ
็ฏๅข โ ๆๅจ้
็ฝฎ โ ็ฅ็ฅท่ฝ่ท
ๅ
้ = ๆฐๆฎ + ่ฟ่กๆถ + ๅญ่ฏ + ็ณป็ป้
็ฝฎ โ Agent ่ฝๅฐๅณ่ฟ่ก
| ๅ่ฝ | agent-pack-n-go | agent-life | OpenClaw Backup | GitClaw | ๅฎๆนๆๆกฃ |
|---|---|---|---|---|---|
| ๅฎๆด่ฎพๅคๅ ้ | โ | โ | โ | โ | โ |
| ไธๅฅ่ฏ่งฆๅ | โ | โ | CLI | Cron | โ |
| ่ฟ่กๆถ่ชๅจๅฎ่ฃ | โ | โ | โ | โ | โ |
| ๅญ่ฏไผ ่พ | โ | โ | โ | โ | ๆๅจ |
| ็ณป็ป้ ็ฝฎๆขๅค | โ | โ | โ | โ | โ |
| Gateway ่ชๅฏ | โ | โ | โ | โ | โ |
| ็ฝ็ป่ฏๆญ | โ | โ | โ | โ | โ |
| ้ถ็ฌฌไธๆนไพ่ต | โ | โ | โ | โ | โ |
| ไผ้ ้็บง | โ | โ | โ | โ | โ |
| ๅฎๆดๆงๆ ก้ช | โ | โ | โ | โ | โ |
็ฎๅๆ้้ Linux โ Linux ็ฏๅข๏ผmacOS ๅ Windows (WSL) ๆฏๆๆญฃๅจๆต่ฏไธญใ
| ๆง่ฎพๅค | ๆฐ่ฎพๅค | |
|---|---|---|
| ็ณป็ป | ไปปไฝ่ฟ่ก OpenClaw ็ Linux | Ubuntu 22.04 / 24.04 |
| ็กฌไปถ | โ | 2 ๆ ธ CPU๏ผ2GB+ ๅ ๅญ |
| ่ฎฟ้ฎ | โ | SSH + sudo๏ผๆจ่๏ผ |
agent-pack-n-go/
โโโ SKILL.md # Agent ๅทฅไฝๆตไธๆไปคๅฎไน
โโโ scripts/
โ โโโ pack.sh # ๆๅ
๏ผ11 ๆญฅ๏ผ
โ โโโ transfer.sh # rsync + SHA256 ๆ ก้ช
โ โโโ setup.sh # ๅบ็ก็ฏๅขๅฎ่ฃ
๏ผ12 ๆญฅ๏ผ
โ โโโ deploy.sh # OpenClaw ้จ็ฝฒ๏ผ13 ๆญฅ๏ผ
โ โโโ network-check.sh # ็ฝ็ป่ฟ้ๆง่ฏๆญ
โ โโโ generate-instructions.sh # ๅค็จๆๅจๆๅ็ๆ
โ โโโ welcome.sh # ๅฎ่ฃ
ๅๆฌข่ฟไฟกๆฏ
โโโ references/
โโโ migration-guide.md # ๅฎๆดๆๅจๅ่
โโโ troubleshooting.md # ๅธธ่ง้ฎ้ขไธไฟฎๅค
- OpenClaw โ ๆฌ Skill ๆๅบไบ็ AI Agent ๆกๆถ
- agent-life โ ่ทจๆกๆถ Agent ่ฟ็งปๆนๆก
- OpenClaw ่ฟ็งปๆๅ โ ๅฎๆนๆๅจ่ฟ็งปๆๆกฃ