DEV Community

Jack Pascoe
Jack Pascoe

Posted on

Getting Started with OpenClaw (Clawdbot/Moltbot): A Developer's Guide to AI Assistants

🦞 OpenClaw: The "2026" Field Guide to Your AI Sidekick

A practical walkthrough of deploying your own autonomous agent β€” whether you want to build the engine or just drive the car.


⚑ The TL;DR

Aspect Details
What is it? OpenClaw (formerly Clawdbot/Moltbot) is an open-source agent that connects messaging apps to a coding environment. It doesn't just "chat"β€”it executes commands, manages files, and researches the web from your phone.
The DIY Path (OpenClaw) Best for privacy purists. Cost: ~$25/mo. Setup: 2 hours.
The Managed Path (EasyClawd) Best for busy humans. Cost: ~$29/mo. Setup: 5 minutes.
The Channel Choice Telegram is safe. WhatsApp is risky (see the warning below).

β˜• The "Aha!" Moment

Last week, I was at a coffee shop when a colleague needed a specific Q4 revenue summary. The file was buried on my home desktop with a filename I couldn't remember.

In 2025, that would have meant a frantic drive home. In 2026, I just messaged my Telegram bot: "Find the Q4 revenue PDF on my desktop and summarize the top three expenses." Thirty seconds later, I had the data. Crisis averted. Coffee remained hot.

That bot runs OpenClaw.


πŸ” Under the Hood: How it Works

Unlike standard LLM chat interfaces, OpenClaw operates as a Loop-based Agent. When you send a message, three things happen:

Phase What Happens
Perception The agent analyzes your request and looks at its available "tools" (filesystem, terminal, web browser).
Action It spins up a temporary, isolated container to run code (Python/Node) or execute shell commands to fulfill the request.
Feedback It reviews the output of those commands. If the first script fails, it debugs itself and tries a different approach until the task is complete.

⚠️ The WhatsApp Warning (Read This First)

OpenClaw supports WhatsApp, but there is a major catch: WhatsApp does not have an official API for personal accounts.

To make it work, OpenClaw uses unofficial, reverse-engineered libraries.

Aspect Details
The Risk Meta's automated systems can detect the "impersonation" of the WhatsApp Web client.
The Consequence Using an unofficial library can result in a permanent ban of your phone number.
The Recommendation If you value your WhatsApp account, stick to Telegram. It has an official Bot API that is 100% safe and won't get you banned.

πŸ›£οΈ Choose Your Own Adventure

Path A: The Managed "Power User" (5 Minutes)

If you want the utility without the "SysAdmin" lifestyle, use a provider like EasyClawd.

Step Action
1. Get a Token Message @BotFather on Telegram to create your bot and get the API token.
2. Get your ID Message @userinfobot to get your numeric User ID (this locks the bot so only you can use it).
3. Connect Create an account at easyclawd.com, paste your Token and User ID, and hit "Deploy."

The Benefit: No API keys to manage, no server maintenance, and a fixed monthly cost that includes the AI.


Path B: The Self-Hosted "Architect" (2+ Hours)

Best if you already have a VPS (Hetzner, DigitalOcean) and enjoy the "fiddle factor."

1. Provision Your Server

I recommend a Hetzner CX22 (2 vCPU, 4GB RAM). It's roughly €4.50/month and handles OpenClaw effortlessly.

2. One-Line Install

OpenClaw's installer handles Node.js 22, pnpm, and Docker dependencies:

curl -fsSL https://openclaw.io/install.sh | bash
Enter fullscreen mode Exit fullscreen mode

3. The Config Layer

Create your config at ~/.openclaw/openclaw.json:

{
  "channels": {
    "telegram": {
      "botToken": "YOUR_TELEGRAM_TOKEN",
      "dmPolicy": "allowlist",
      "allowFrom": ["YOUR_USER_ID"]
    }
  },
  "models": {
    "defaults": { 
      "model": { 
        "primary": "anthropic/claude-4-5-sonnet" 
      } 
    }
  }
}
Enter fullscreen mode Exit fullscreen mode

4. Keep it Alive (Systemd)

Ensure your bot survives a server reboot:

sudo tee /etc/systemd/system/openclaw.service << 'EOF'
[Unit]
Description=OpenClaw AI Assistant
After=network.target

[Service]
ExecStart=/usr/bin/openclaw gateway
Restart=always
User=root
Environment=NODE_ENV=production

[Install]
WantedBy=multi-user.target
EOF

sudo systemctl daemon-reload && sudo systemctl enable --now openclaw
Enter fullscreen mode Exit fullscreen mode

πŸ“ˆ Real-World Use Cases

Use Case Example Prompt
Data Scraper "Find the current price of Bitcoin on three different exchanges and tell me if there's an arbitrage opportunity."
File Converter (Sends a .docx file) "Convert this to a clean Markdown file and remove all the legal jargon."
DevOps on the Go "Check the status of my 'api-server' Docker container and restart it if the memory usage is over 80%."

πŸ’° The Reality of Costs

There's no such thing as a "free" AI agent. Here is what you'll actually pay:

Cost Category Self-Hosted (OpenClaw) Managed
Server / VPS $5 - $20 / mo Included
AI Tokens $20 - $100 / mo (Variable) Included
Setup Time ~2-4 Hours ~5 Minutes
Maintenance Manual (DIY) Automatic
Monthly Total $25 - $120+ $29 - $79 (Flat)

πŸ›‘οΈ Security: The "Golden Rules"

Since OpenClaw can run code on your behalf, security isn't optional.

Rule Implementation
The Allowlist Never leave your bot open. Use the allowFrom config so only your User ID can trigger commands.
The Sandbox If self-hosting, run the agent in an isolated Docker container. Never give it root access to your host machine.
Confirmations Configure the agent to ask for your explicit "OK" via Telegram before it performs destructive actions (like deleting files).

🏁 The Verdict

OpenClaw is the first agent project that actually feels useful daily. It turns your messaging app into a remote terminal for your digital life.

If you're an engineer who loves the stack, self-host it. If you're a professional who just wants to get things done from a coffee shop without the headache, go managed.

Either way, welcome to 2026.


Top comments (0)