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:

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

  1. 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 | bash then nvm install 22 && nvm use 22

  2. Install OpenClaw globally

    npm install -g openclaw — this installs the openclaw CLI. Verify with openclaw --version.

  3. Run the setup wizard

    openclaw configure — walks you through model selection, API key entry, and initial gateway configuration. Takes about 10 minutes.

  4. 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.

  5. 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.

  6. 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:

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:

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:

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 →