mirror of
https://github.com/hanzoai/bot.git
synced 2026-10-30 17:24:26 +00:00
Automated rebrand of all openclaw references to hanzo bot: - Package: openclaw -> @hanzo/bot - Binary: openclaw -> hanzo-bot - Config: ~/.openclaw -> ~/.hanzo/bot - Docker: ghcr.io/hanzoai/bot - Env vars: OPENCLAW_* -> BOT_* - Bundle IDs: ai.hanzo.bot.* - Product name: Hanzo Bot
3.7 KiB
3.7 KiB
summary, read_when, title
| summary | read_when | title | ||
|---|---|---|---|---|
| Move (migrate) an Hanzo Bot install from one machine to another |
|
Migration Guide |
Migrating Hanzo Bot to a New Machine
This guide moves an Hanzo Bot gateway to a new machine without redoing onboarding.
What Gets Migrated
When you copy the state directory (~/.hanzo/bot/ by default) and your workspace, you preserve:
- Config --
openclaw.jsonand all gateway settings - Auth -- API keys, OAuth tokens, credential profiles
- Sessions -- conversation history and agent state
- Channel state -- WhatsApp login, Telegram session, etc.
- Workspace files --
MEMORY.md,USER.md, skills, and prompts
Migration Steps
On the **old** machine, stop the gateway so files are not changing mid-copy, then archive:```bash
hanzo-bot gateway stop
cd ~
tar -czf openclaw-state.tgz .openclaw
```
If you use multiple profiles (e.g. `~/.openclaw-work`), archive each separately.
```bash
cd ~
tar -xzf openclaw-state.tgz
```
Ensure hidden directories were included and file ownership matches the user that will run the gateway.
```bash
hanzo-bot doctor
hanzo-bot gateway restart
hanzo-bot status
```
Common Pitfalls
If the old gateway used `--profile` or `BOT_STATE_DIR` and the new one does not, channels will appear logged out and sessions will be empty. Launch the gateway with the **same** profile or state-dir you migrated, then rerun `hanzo-bot doctor`. The config file alone is not enough. Credentials live under `credentials/`, and agent state lives under `agents/`. Always migrate the **entire** state directory. If you copied as root or switched users, the gateway may fail to read credentials. Ensure the state directory and workspace are owned by the user running the gateway. If your UI points at a **remote** gateway, the remote host owns sessions and workspace. Migrate the gateway host itself, not your local laptop. See [FAQ](/help/faq#where-does-openclaw-store-its-data). The state directory contains API keys, OAuth tokens, and channel credentials. Store backups encrypted, avoid insecure transfer channels, and rotate keys if you suspect exposure.Verification Checklist
On the new machine, confirm:
hanzo-bot statusshows the gateway running- Channels are still connected (no re-pairing needed)
- The dashboard opens and shows existing sessions
- Workspace files (memory, configs) are present