Installing OpenClaw: Complete Setup Guide for Beginners
Never installed anything on a server before? This guide is for you. We'll walk through every step of installing OpenClaw, explain what each command does, and show you the one-click alternative if you'd rather skip the terminal entirely.
What You Need to Install OpenClaw
Before installing OpenClaw, you need three things:
- A computer or server. OpenClaw runs on macOS, Windows, or Linux. For 24/7 operation, you'll want a VPS (virtual private server) or an always-on machine.
- Node.js 22 or higher. OpenClaw is built on Node.js. You'll install this first.
- An AI provider API key. Get one from Anthropic (Claude), OpenAI (GPT), or Google (Gemini). Most offer free trial credits.
Option A: Install OpenClaw on Your Computer
The fastest way to try OpenClaw is on your local machine. This is perfect for testing and personal use.
Step 1: Install Node.js
Download Node.js 22+ from the official website or use a version manager like nvm. Verify the installation:
node --version
You should see v22.x.x or higher.
Step 2: Install OpenClaw
Install OpenClaw globally using npm:
npm install -g openclaw@latest
This downloads and installs the latest version of OpenClaw.
Step 3: Run the Setup Wizard
OpenClaw includes an onboarding command that guides you through configuration:
openclaw onboard --install-daemon
This wizard will ask for your AI provider API key, set up the configuration file at ~/.openclaw/openclaw.json, and install the daemon for background operation.
Step 4: Connect a Messaging Channel
openclaw channels login
Follow the prompts to pair your Telegram account (or another supported channel).
Step 5: Start the Gateway
openclaw gateway --port 18789
Your OpenClaw agent is now running. Open Telegram and send it a message to test.
Option B: Install OpenClaw on a VPS
For 24/7 availability, deploy OpenClaw on a virtual private server. The process is the same as above, with a few extra steps:
- Rent a VPS from Hetzner, DigitalOcean, or any cloud provider. Minimum: 2 vCPU / 4 GB RAM.
- Connect to your server via SSH:
ssh root@your-server-ip - Install Node.js 22+ on the server.
- Follow Steps 2–5 from Option A above.
- The daemon ensures OpenClaw restarts automatically if the server reboots.
Option C: Skip the Installation Entirely
If the command line isn't your thing — or you just want to get running as fast as possible — OneClickClaw handles the entire installation automatically.
- Sign in with Google at oneclickclaw.dev.
- Pick your AI model (Claude, GPT, or Gemini).
- Choose a server size.
- Connect Telegram.
- Click deploy.
OneClickClaw provisions a VPS, installs Ubuntu and Node.js, deploys OpenClaw, configures your AI provider, and pairs your Telegram — all automatically. Your agent is live in under 5 minutes with zero terminal usage.
After Installing OpenClaw: First Steps
Once your OpenClaw agent is running, try these first commands through Telegram:
- "What can you do?" — See the full list of available capabilities.
- "Check my email" — Connect Gmail and test email access.
- "What's on my calendar today?" — Connect your calendar.
- "Summarize this article: [URL]" — Test web browsing.
- "Remember that my preferred language is English" — Test persistent memory.
Common OpenClaw Installation Issues
- "command not found: openclaw" — Node.js global bin directory isn't in your PATH. Run
npm config get prefixand add thebinsubdirectory to your PATH. - "Node.js version too old" — OpenClaw requires Node.js 22+. Update via
nvm install 22or reinstall from nodejs.org. - Telegram pairing fails — Make sure the Gateway is running before attempting channel login. Check firewall rules if on a VPS.
- API key errors — Verify your key is valid and has credits. Check
~/.openclaw/openclaw.jsonfor typos.