Can I migrate my setup to a new machine Mac mini without redoing onboarding
Yes. Copy the state directory and workspace, then run Doctor once. This keeps your bot “exactly the same” (memory, session history, auth, and channel state) as long as you copy both locations:
Install OpenClaw on the new machine.
Copy $OPENCLAW_STATE_DIR (default: ~/.openclaw) from the old machine.
Copy your workspace (default: ~/.openclaw/workspace).
Run openclaw doctor and restart the Gateway service.
That preserves config, auth profiles, WhatsApp creds, sessions, and memory. If you’re in remote mode, remember the gateway host owns the session store and workspace.
Important: if you only commit/push your workspace to GitHub, you’re backing up memory + bootstrap files, but not session history or auth. Those live under ~/.openclaw/ (for example ~/.openclaw/agents/<agentId>/sessions/).
Related: Migrating, Where things live on disk, Agent workspace, Doctor, Remote mode.