OpenClaw describes itself as a personal AI assistant. That's underselling it. When properly configured, it operates as a fully autonomous AI agent — handling coding, research, content creation, device management, and workflow automation with minimal human intervention.
The setup is the hard part. This guide covers the full path: hardware choice, Node.js install, model selection, channel integration (Telegram and Discord), memory architecture, and the security practices that keep a high-permission agent safe to run long-term.
Why Personal Devices Beat VPS (Usually)
The first decision is hardware. Most tutorials default to VPS — a $5/mo cloud server. But for OpenClaw, this creates real problems:
- Security surface: A VPS with OpenClaw exposed to the internet is a liability, especially after the SecurityScorecard report found 40,000+ exposed instances with 63% vulnerable to RCE.
- Performance ceiling: VPS CPU limits make local model inference (Ollama, LM Studio) impractical — you're stuck paying API costs for every request.
- Data exposure: Your conversations live on a third-party server.
The better approach for most users: run OpenClaw on a dedicated mini PC ($150–400) on your home or office network, accessed remotely via Tailscale or Cloudflare Tunnel. You get 24/7 uptime, full data privacy, and enough compute for local models.
Recommended hardware: Any Intel NUC, Beelink, or MinisForum mini PC with 16GB RAM and 256GB+ SSD. The $200–350 range covers most setups. Laptop works for experimentation; dedicated hardware is better for production.
Installation: The Core Steps
-
Install Node.js 22+
OpenClaw requires Node.js v22 or newer. Use nvm:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bashthennvm install 22 && nvm use 22 -
Install OpenClaw globally
npm install -g openclaw— this installs theopenclawCLI. Verify withopenclaw --version. -
Run the setup wizard
openclaw configure— walks you through model selection, API key entry, and initial gateway configuration. Takes about 10 minutes. -
Start the gateway
openclaw gateway start— this is the persistent background process that handles channel connections, heartbeats, and tool execution. Run it as a system service for 24/7 operation. -
Connect a channel
Telegram is the easiest entry point. Create a bot via @BotFather, get your token, and add it to your OpenClaw config. You can reach your agent from any device via Telegram from this point.
-
Build your memory architecture
Create
SOUL.md(personality + priorities),memory.md(persistent context), and domain-specific files. This is what makes the agent feel like your agent, not a generic chatbot.
Model Selection: Matching the Right Model to the Task
OpenClaw is model-agnostic. The right model depends on the task, your budget, and whether you want local inference.
| Use Case | Recommended Model | Type | Cost |
|---|---|---|---|
| Complex reasoning, planning | Claude Opus 4.6, GPT-5.1 | API | ~$0.02–0.05/msg |
| Everyday tasks, drafting | Claude Sonnet 4, GPT-4o | API | ~$0.003–0.01/msg |
| Offline / private operation | Qwen 3.5 9B, Llama 3.1 8B | Local (Ollama) | $0 (electricity) |
| Code generation | Codex (ACP), Claude Sonnet | API | ~$0.005–0.02/session |
| Document summarization | Gemini Flash, Qwen 2.5 7B | API / Local | Very low |
The optimal production setup routes routine tasks (summarization, drafting, Q&A) to local models and reserves frontier models (Claude Opus, GPT-5) for complex reasoning. This cuts API costs 60–80% without meaningful quality loss on everyday tasks.
Channel Integration: Telegram and Discord
Telegram
Create a bot at @BotFather → get your token → add to OpenClaw config under plugins.entries.telegram. Once connected, message your bot from any device. You can also add it to group chats for team use.
Discord
Create an application at discord.com/developers → add a bot → copy the token → configure in OpenClaw. Discord integration enables server-based agents, channel-specific personalities (via per-channel SOUL.md overrides), and multi-user access control.
Both channels support the full tool set — file access, web search, code execution, scheduling, and anything in your skill stack.
The Memory Architecture That Makes It Actually Useful
This is the step most tutorials skip. Without persistent memory, OpenClaw forgets everything between sessions — it's a demo, not a tool.
The minimum viable memory architecture:
- SOUL.md — Your agent's personality, priorities, tone, and behavioral rules. This is the most important file. Write it like you're hiring someone and explaining their job.
- memory.md — Persistent facts: your name, projects, preferences, key contacts, current status of ongoing work. The agent reads this at session start.
- Domain files — Separate memory files for specific contexts (e.g.,
memory/clients.md,memory/projects/). Keeps context modular and retrievable. - Heartbeat log — A running log of what the agent has done autonomously. Essential for auditability and continuity across sessions.
Practical Use Cases by Workflow
Project management automation
Connect OpenClaw to your task system. Have it generate daily briefings from your memory files, flag overdue items, and draft status updates. The heartbeat cron handles proactive checks without you needing to ask.
Content creation pipeline
Research → draft → review → post. OpenClaw can handle the first three steps autonomously, flagging drafts for human review before publish. Works well for blog posts, newsletters, and social content.
Research assistant
Web search, PDF analysis, summarization, and competitive monitoring. Point OpenClaw at a topic and it returns structured summaries with sources. Log findings to memory for retrieval later.
Code prototyping
Use ACP agents (Codex, Claude Code) for longer coding sessions. OpenClaw orchestrates the session, reviews output, and logs results. Not a replacement for Windsurf/Cursor in your editor, but a powerful background code agent.
Security: The Non-Negotiables
A high-permission autonomous agent needs explicit security discipline. The minimum:
- Bind to 127.0.0.1, not 0.0.0.0 — Never expose your gateway directly to the internet. Use Tailscale for remote access.
- Keep OpenClaw updated:
npm update -g openclaw && openclaw gateway restart— CVE-2026-41352 and CVE-2026-41349 were both patched in recent releases; unpatched instances are actively targeted. - Owner-only sensitive commands — Set your user ID as the owner in config so only you can trigger exec, file write, and shell commands.
- Approval gates for destructive actions — Configure explicit approval prompts for anything that can't be undone: file deletion, email sends, API calls that cost money.
- Regular audit — Review your heartbeat log weekly. Know what your agent has done autonomously.
SecurityScorecard (Apr 2026): Found 40,214 internet-exposed OpenClaw instances; 63% vulnerable to RCE. If your gateway is exposed to the internet without proper auth and binding, you're in this pool. The fix is a 5-minute config change.
Scaling and Cost Optimization
Once you're running well at the personal level, the path to scaling:
- Add channels — Connect WhatsApp, Signal, iMessage, or Slack to reach your agent from anywhere
- Add skills — ClawHub has community-built skills for CRM, calendar, finance, and more
- Local model routing — Configure Ollama + Qwen or Llama to handle routine requests at $0/request
- Multi-agent — Spawn specialized sub-agents for specific domains (research, coding, customer ops)
The Setup Problem Is Real — But One-Time
Everything above takes 4–8 hours to configure correctly if you're doing it yourself. The common sticking points: gateway binding issues, Node version conflicts, channel authentication flows, and memory architecture design.
Once it's running, you rarely touch the infrastructure again. The investment pays off quickly for anyone who relies on it daily.
Skip the Setup Rabbit Holes
ClawReady handles the full setup end-to-end — Node environment, gateway config, channel connections, memory architecture, local model routing, and skill installation. You get a production-ready AI agent without spending a weekend debugging configs.
See What's Included →