Prerequisites
Node.js (Required)
OpenClaw requires Node.js version 22.14 or higher. Node.js v24 is recommended for best compatibility and performance.
If Node.js is not installed or your version is too old, install it:
API Key for your AI model
You'll need an API key from at least one LLM provider. OpenClaw is model-agnostic — use whichever model you prefer.
Installation
Run the install script
OpenClaw provides a one-line installer for all platforms. This downloads the binary, sets up the CLI, and prepares your environment.
openclaw --version. If the command is not found, restart your terminal or add the install path to your PATH.
Onboarding Wizard
Start the interactive setup
The --install-daemon flag also registers OpenClaw as a background service so it starts automatically on reboot.
Connect Your AI Model
Choose your provider
During onboarding, the wizard will prompt you to select an AI model provider. Your API key is stored locally and never sent to OpenClaw servers.
Connect a Messaging Channel
Telegram (Recommended for beginners)
Telegram is the easiest channel to set up and has the most reliable integration. Start here if unsure.
- Open Telegram and search for @BotFather
- Send
/newbotand follow the prompts to create a new bot - Copy the bot token provided (format:
1234567890:ABCdef...) - Paste the token when OpenClaw's wizard asks for it
WhatsApp uses a QR code pairing flow. You'll need to scan it from your WhatsApp app on your phone.
Discord
Discord requires setting up a bot in the Discord Developer Portal. There's one critical setting you must enable.
- Go to discord.com/developers/applications
- Create a new application → Bot → copy the bot token
- Under "Privileged Gateway Intents" enable Message Content Intent
- Invite the bot to your server with Send Messages + Read Messages permissions
Verify Your Setup
Check Gateway status
The Gateway should be listening on port 18789. If it's not running, your agent won't respond.
Open the Dashboard
OpenClaw includes a browser-based control panel for managing sessions, viewing logs, and adjusting configuration.
Configure Your Workspace & Skills
Workspace structure
Your agent's workspace is a local folder with configuration files. Edit these to customize your agent's persona, behavior, and capabilities.
workspace/ ├── SOUL.md — Agent persona, instructions, tone ├── AGENTS.md — Agent config, model settings, DM policies └── skills/ — Custom capability definitions ├── research.md ├── outreach.md └── dev-ops.md
Creating your first skill
Skills are Markdown files with YAML frontmatter that describe a capability to the agent. Create one in workspace/skills/.
Always-On Setup (24/7)
Run on a dedicated machine
For a true always-on assistant, run OpenClaw on a machine that never sleeps. Popular options:
Run Your First Task
🚀 You're live. Start delegating.
Open your connected messaging app (Telegram, WhatsApp, or Discord) and send your agent a message. Try something simple first:
✓ Done. Summary saved to your workspace. Here's the quick overview...