If you’re tired of paying for a dozen different productivity apps and you want a true “digital twin” AI assistant, this is the guide you’ve been looking for. I’ve tested OpenClaw extensively——running it as a WhatsApp-connected superagent——and the workflow consolidation is real. This guide covers every step to install, configure, and secure OpenClaw from scratch.
🔍 What is OpenClaw?
OpenClaw (formerly known as Clawdbot) is a local-first personal AI assistant that lives directly on your machine or a private virtual private server (VPS). Unlike web-based chatbots that require you to log into a browser window, OpenClaw meets you where you already are. It connects natively to WhatsApp, Telegram, Discord, and Slack, effectively giving you a personal “Jarvis” in your pocket.
At its core, OpenClaw consists of a local Gateway WebSocket control plane that manages your sessions and an LLM engine that powers the AI’s brain. It doesn’t just chat——it acts. By giving the AI access to specific “Tools” (like reading files, executing shell commands, or controlling a headless browser) and teaching it “Skills” (like managing Google Calendar or searching GitHub), OpenClaw becomes a fully autonomous agent capable of handling real-world tasks.
⚡ Why Use OpenClaw?
- ✅ Zero-Friction Access: Talk to your agent via WhatsApp or Telegram voice notes while driving or walking. No separate app required.
- ✅ Complete Autonomy: Runs real tools to search the web, manage files, and execute scripts to act on your requests.
- ✅ SaaS Replacement: Consolidate Notion, Todoist, and habit trackers into Git-backed Markdown files managed by the AI.
- ✅ Local-First Privacy: The control plane runs on your hardware. Your data stays in your
.openclawworkspace, not on a corporate server.
✅ Step 1 – Meet the Prerequisites
Before diving into the terminal, you need to ensure your environment is ready. OpenClaw relies heavily on modern JavaScript runtimes and API access to top-tier LLMs.
| Minimum | Recommended | |
|---|---|---|
| OS | Mac / Linux / Windows (WSL2) | Linux (Ubuntu VPS) / Mac |
| Node.js | v22.0.0 | v22.1.0+ (LTS) |
| RAM | 4 GB | 8 GB+ (for headless browser) |
| AI API | OpenAI (GPT-4o) | Anthropic (Claude 3.5/4.5) |
To check your Node version, open your terminal and run:
node --versionIf it returns anything lower than v22, head over to the Node.js website and install the latest LTS release. You will also need an API key from either Anthropic or OpenAI. While you can use cheaper models, agentic workflows rely heavily on logic and tool-calling capabilities. Claude 4.5 Opus or Claude 3.5 Sonnet are highly recommended.
✅ Step 2 – Install the OpenClaw Gateway
The installation process is streamlined into a single command that downloads the binaries and sets up the foundational files.
For macOS and Linux users, run the following in your terminal:
curl -fsSL https://openclaw.ai/install.sh | bashIf you are on Windows, open PowerShell as an Administrator and run:
iwr -useb https://openclaw.ai/install.ps1 | iexThis command pulls the latest OpenClaw release, sets up the .openclaw hidden directory in your home folder, and installs the required dependencies. Once the installation finishes, verify it by checking the version:
openclaw --versionIf you see the version number print out, you are ready to configure the assistant.
✅ Step 3 – Run the Onboarding Wizard
OpenClaw includes a built-in wizard that handles the heavy lifting of linking your API keys and setting up your first messaging channels.
Run the setup wizard with the daemon flag so it stays alive in the background:
openclaw onboard --install-daemonThe wizard will ask you a series of questions:
- Assistant Name: Give your bot a personality.
- AI Provider: Select Anthropic or OpenAI.
- API Key: Paste your secret key (it will be hidden as you type).
- Model Selection: Choose your preferred model.
- Messaging Channels: Select the platforms you want to integrate (e.g., WhatsApp, Telegram).
Once finished, the daemon starts the Gateway control center locally on port 18789. You can verify its health by running:
openclaw gateway status✅ Step 4 – Connect WhatsApp and Telegram
The true magic of OpenClaw is texting it like a human assistant. Let’s link it to WhatsApp.
Start the WhatsApp login process from your terminal:
openclaw channels login whatsappA QR code will render directly in your terminal window. Open WhatsApp on your phone, go to Linked Devices, and scan the QR code on your screen.
By default, OpenClaw operates with a strict dmPolicy="pairing". It will ignore messages from random numbers. To authorize yourself to talk to the bot, you must explicitly approve your phone number:
openclaw pairing approve whatsapp +15555551234Now, send a message to yourself on WhatsApp (yes, you can DM your own number). Try saying: “Hey, are you online?” The AI will respond directly in your chat.
✅ Step 5 – Configure Tools and Skills
Understanding the architecture is critical. Tools are the “organs”——they give OpenClaw the raw capability to do things (e.g., read, write, exec, browser). Skills are the “textbooks”——they teach OpenClaw how to use those tools to accomplish specific tasks (e.g., gog for Gmail, obsidian for notes).
Open your configuration file to edit your active Tools:
openclaw config editConfigure your openclaw.json to allow essential capabilities but lock down dangerous ones. Here is a secure starting baseline:
{ "tools": { "allow": [ "read", "write", "edit", "exec", "process", "web_search", "web_fetch", "browser", "memory_search", "cron", "message" ], "deny": ["nodes", "canvas", "llm_task"] }, "approvals": { "exec": { "enabled": true } }}Notice the approvals.exec.enabled flag. This ensures that before OpenClaw runs a terminal command on your machine, it must ask for your permission. This is your last line of defense against prompt injection attacks.
Next, install specific Skills using the ClawHub CLI. To give your assistant web search capabilities, run:
openclaw skills install web-search✅ Step 6 – Security Hardening and VPS Deployment
Run OpenClaw 24/7 in the cloud.
Deploy OpenClaw on an always-on RunPod Linux VPS for under $5/month. Keep your personal hardware secure.
If you want your agent running 24/7, deploying it on a VPS via Docker is the best path. However, exposing an AI agent to the open internet is extremely dangerous.
Here are the critical security rules for a server deployment:
- Never expose the Gateway port: Ensure Docker binds port
18789to127.0.0.1. Use Tailscale or SSH tunnels to access the web dashboard remotely. - Fix Chromium Shared Memory: If you enable the
browsertool inside Docker, Chromium will crash silently without enough shared memory. You must addshm_size: '2gb'to yourdocker-compose.yml. - Set up a Config Guard: OpenClaw’s onboarding updates occasionally overwrite
openclaw.jsonand strip your WhatsApp allowlist. Create aconfig-guard.shscript to back up and restore your known-good configuration automatically.
🛠️ Troubleshooting
Even with a perfect setup, you might hit a few snags. Here are the most common issues and how to resolve them.
| Error | Cause | Fix |
|---|---|---|
Gateway connect failed: pairing required | Unrecognized phone number / chat ID. | Run openclaw pairing approve [channel] [id] to whitelist the user. |
| Browser tasks fail with “Port in use” | Chrome crashed and left a lock file. | Run find /data/.openclaw/browser -name SingletonLock -delete. |
Command not found: openclaw | Path variables not updated after install. | Close your terminal and open a new one, or manually add it to your $PATH. |
| Agent stops replying to WhatsApp | WhatsApp disconnected your linked device. | Keep your phone connected to the internet, or run the login whatsapp command again. |
| AI hallucinating tool usage | Missing CLI dependencies for a Skill. | Ensure the underlying CLI (e.g., gh for GitHub, gog for Google) is installed on the host. |
💡 Tips & Best Practices
To get the most out of your new digital twin, shift your mindset from “chatbot” to “autonomous employee.”
💡 Tip: Ditch your expensive SaaS subscriptions. Have OpenClaw manage a local
HABITS.mdorPROJECTS.mdfile in its workspace. Every time you complete a task, text the bot to update the file.
💡 Tip: Use the
crontool to schedule daily briefings. Have the AI read your calendar, fetch the weather, and send you a WhatsApp summary at 7:00 AM every morning.
💡 Tip: Treat external communication carefully. The
messagetool is powerful, but you should only allow the AI to send notifications to you, not email clients or coworkers on your behalf.
💡 Tip: Take advantage of Voice Notes. OpenClaw can transcribe WhatsApp voice memos automatically. Send a rambling 60-second audio clip while driving, and tell the agent to parse out the actionable to-dos.
💡 Tip: Do not blindly install third-party skills from ClawHub. Always review the GitHub repository to ensure the skill isn’t executing malicious payloads or exfiltrating your environment variables.
✅ Final Thoughts
OpenClaw bridges the gap between conversational AI and genuine workflow automation. By tying an LLM directly to your filesystem and your messaging apps, you stop going to the AI, and the AI starts coming to you. It takes a weekend to configure properly, but the return on investment is massive. Now go build something.
❓ FAQ
Q: Is OpenClaw just hype, or is it actually useful?
A: It depends on how you use it. For purely professional, unsupervised autonomous decision-making, it still requires human oversight (which is why the exec approval flag exists). But for automating tedious data entry, summarizing logs, scheduling, and acting as a unified “second brain,” it is incredibly powerful.
Q: What is the difference between OpenClaw and ChatGPT?
A: ChatGPT is a destination you visit to chat. OpenClaw is an engine running on your hardware that acts on your behalf. After a conversation with ChatGPT, you copy and paste the text. After a conversation with OpenClaw, the agent can actively create files, push to GitHub, or send a Slack message for you.
Q: Does running this cost a lot of money?
A: API costs can add up if you use top-tier models like Claude Opus exclusively. To save money, configure model fallbacks in openclaw.json——use cheap models like gpt-4o-mini for basic parsing, and route complex reasoning tasks to Opus. You can also set a maxTokensPerDay limit in your configuration to avoid bill shock.
Q: Can I run OpenClaw entirely locally without API keys?
A: Yes. While the default setup relies on Anthropic or OpenAI, you can configure OpenClaw to point to a local inference server running Ollama or LM Studio. Just note that smaller local models often struggle with complex multi-step tool calling.
📚 Additional Resources
- OpenClaw Official GitHub Repository
- ClawHub Skills Directory
- Reddit: The ULTIMATE OpenClaw Setup Guide
- Reddit: Discussion on OpenClaw’s usefulness in production