A complete walkthrough for installing Clawdbot — now officially rebranded to OpenClaw (formerly Moltbot) — the viral autonomous AI assistant that works while you sleep.
Make sure you have the following ready before starting the installation:
OpenClaw requires Node.js 22 or higher. SSH into your VPS and run the following commands to install Node.js:
curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
apt-get install -y nodejs
Verify the installation:
node --version
Now install OpenClaw globally:
npm install -g openclaw@latest
Once installed, launch the onboarding wizard:
openclaw onboard --install-daemon
You'll see the OpenClaw banner and a security warning. Read it carefully, then select Yes to continue.

You'll be asked to choose between QuickStart and Manual mode. Select QuickStart — it sets sensible defaults and you can configure advanced settings later with openclaw configure.

QuickStart will automatically configure your gateway port, bind address, and auth settings.
OpenClaw supports multiple AI providers. Select Anthropic from the list — it's the recommended choice for autonomous agent tasks.

Select Anthropic API key as your auth method.

Paste in your Anthropic API key when prompted. You can get your key from console.anthropic.com/settings/keys.

Keep the default: anthropic/claude-opus-4-5. It's the strongest model available and recommended for autonomous agent tasks that require complex reasoning.

OpenClaw supports over 15 messaging platforms. Select WhatsApp to control your bot from your phone — it's the most popular choice.

Confirm to link WhatsApp. The wizard will display a QR code.

On your phone, open WhatsApp > Settings > Linked Devices > Link a Device, then scan the QR code displayed in your terminal.

After scanning, enter your WhatsApp phone number (with country code) so OpenClaw can allowlist you as the owner.

If the QR code times out during onboarding or doesn't render properly, don't worry — you can link WhatsApp separately after onboarding is complete.
The working command to link WhatsApp:
openclaw channels login
This will display a fresh QR code in your terminal. Scan it with WhatsApp > Settings > Linked Devices > Link a Device.
After linking, restart the gateway to activate the connection:
openclaw gateway restart
You should see a confirmation message that WhatsApp is connected.
openclaw whatsapp link — returns "unknown command whatsapp"openclaw channel add whatsapp — may not exist in all versionsopenclaw channels login.
openclaw channels login for the best results.
The wizard will ask if you want to configure skills (plugins like file management, web browsing, etc.) and hooks (automated scripts triggered by events).
Select No for skills and Skip for now for hooks. You can add these later once your bot is up and running:
openclaw configure skills
openclaw configure hooks

The final step — choose how to launch your bot. Select Hatch in TUI (recommended) to open the terminal interface where you can interact with your bot directly.

OpenClaw will launch and your bot will greet you with "Wake up, my friend!" — it's asking you to define its identity. This is where you give it:

/root/prompt.txt) and tell the bot: "Read my prompt from /root/prompt.txt and use that as your instructions." This avoids paste issues in SSH terminals.openclaw channels login then openclaw gateway restart to reconnect.openclaw configure skills.openclaw configure persona.openclaw security audit --deep.tmux session so it stays alive when you disconnect. See our VPS guide for tmux setup.Join the Vibe Coding Academy community to learn how to build AI-powered apps, automate your workflow, and level up your skills.
Join the Academy