Choose your platform
Install in one command.
Prerequisites
Install
Installs OpenClaw globally via npm. Requires Node.js 22 or newer.
After installation
The onboarding wizard.
After the install script finishes, run the onboarding wizard. In our experience, this is where most people either get it right in five minutes or spend an hour confused. Here is what to expect at each step.
Provider Authentication
The wizard asks which AI model provider you want to use. Anthropic, OpenAI, Google, or a custom provider. Paste your API key or use OAuth for subscription-based access.
We recommend Anthropic API keys for the simplest setup. Create one at console.anthropic.com.
Gateway Configuration
Choose whether to run the Gateway locally (recommended for testing) or bind it to a network interface for remote access. The wizard auto-generates a secure gateway token.
Local mode binds to 127.0.0.1:18789 by default. Safe for first-time setup.
Daemon Installation
Use the --install-daemon flag to register OpenClaw as a system service. On macOS it creates a launchd plist. On Linux it creates a systemd unit. The gateway will start automatically on boot.
Run: openclaw onboard --install-daemon
Channel Setup (Optional)
Connect WhatsApp, Telegram, Discord, or other messaging channels. You can skip this step and use the built-in WebChat UI instead. Channels can be added later at any time.
You do not need channels to start using OpenClaw. The Control UI works immediately.
Zero channel setup required
Your first conversation.
You do not need to configure WhatsApp, Telegram, or any channel to start. OpenClaw ships with a browser-based Control UI that works the moment the Gateway starts.
No channel setup needed. If the Control UI loads, your Gateway is healthy and ready. You can type messages directly in the browser. Add WhatsApp, Telegram, or Discord channels later when you are ready.
Setting up channels can take a full afternoon if you're starting from scratch. The $19 workshop covers WhatsApp, Telegram, and Discord setup in under 15 minutes. Learn more
Reference
Environment variables.
Here are the environment variables you'll encounter during setup, with our recommendations for each. Most users never need to touch them, but they are here when you do.
Configuration mistakes are the #1 reason people get stuck. The workshop walks you through every file in the workspace. Start the $19 workshop
If something breaks
Troubleshooting.
We've walked hundreds of people through OpenClaw installation. Here are the errors that come up most often, and the fixes we've discovered along the way.
Error: Node.js version must be >= 22Update Node.js to version 22 or newer. Use nvm: "nvm install 22 && nvm use 22" or download directly from nodejs.org.
EACCES: permission denied, mkdir '/usr/local/lib/node_modules'Fix npm permissions: "sudo chown -R $(whoami) /usr/local/lib/node_modules" or use nvm which avoids global permission issues entirely.
openclaw: command not foundThe npm global bin directory is not in your PATH. Run: npm config get prefix, then add the bin/ directory to your shell profile.
Error: Cannot find module 'openclaw'The install may have failed silently. Run "npm install -g openclaw@latest" manually and check for error output.
ECONNREFUSED 127.0.0.1:18789The Gateway is not running. Start it with "openclaw gateway" in the foreground, or check the service status with "openclaw gateway status".
Docker: permission denied while trying to connect to the Docker daemonAdd your user to the docker group: "sudo usermod -aG docker $USER" then log out and back in. On macOS, ensure Docker Desktop is running.
Stay current
Update channels.
stable
npm tag: latest
Vetted builds promoted from beta. Recommended for production use and personal assistants.
openclaw update --channel stablebeta
npm tag: beta
Builds under active testing. May include unreleased features. Good for early adopters who want to try new capabilities.
openclaw update --channel betadev
npm tag: dev
Tracks the main branch head. Switches to a git checkout. Only for contributors and developers.
openclaw update --channel devWritten by
Kevin Jeppesen
Founder, The Operator Vault
Kevin is an early OpenClaw adopter who has saved an estimated 400 to 500 hours through AI automation. He stress-tests new workflows daily, sharing what actually works through step-by-step guides and a security-conscious approach to operating AI with real tools.
Install FAQ
Questions about installation.
Skip the guesswork.
Get running in 20 minutes.
The $19 workshop walks you through install, security, first run, your first workflow, and connecting channels. Step by step, with real commands.
