This comprehensive guide covers installing OpenClaw on all major Linux distributions including Ubuntu, Debian, Fedora, Arch Linux, and more. Follow our step-by-step instructions to get your AI assistant running in minutes.
OpenClaw works on all major Linux distributions:
OpenClaw requires Node.js version 22+. We recommend using nvm (Node Version Manager) for easy Node.js installation and management.
node --version
Some npm packages require build tools:
nvm (Node Version Manager) is the recommended way to install Node.js on Linux. It allows easy version management and avoids permission issues.
Download and install nvm using the install script:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
Close and reopen your terminal, or run:
source ~/.bashrc
Install and use Node.js version 22:
nvm install 22
nvm use 22
Set Node.js 22 as default:
nvm alias default 22
Verify installation:
node --version
npm --version
Use npm to install OpenClaw:
npm install -g openclaw@latest
This installs OpenClaw v2026.2.6 globally. With nvm, no sudo required!
openclaw onboard
Configure your AI model, messaging platforms, and preferences.
openclaw start
Access at http://127.0.0.1:18789/
OpenClaw is now installed and running on your Linux system. The nvm method provides the cleanest installation without permission issues.
Install Node.js using your distribution's package manager, then install OpenClaw with npm.
Install Node.js from NodeSource repository:
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
sudo apt-get install -y nodejs
Install build tools:
sudo apt-get install -y build-essential
Then install OpenClaw:
sudo npm install -g openclaw@latest
Install Node.js from NodeSource:
curl -fsSL https://rpm.nodesource.com/setup_22.x | sudo bash -
sudo dnf install -y nodejs
Install development tools:
sudo dnf groupinstall 'Development Tools'
Then install OpenClaw:
sudo npm install -g openclaw@latest
Install Node.js from official repositories:
sudo pacman -S nodejs npm
Install base development tools:
sudo pacman -S base-devel
Then install OpenClaw:
sudo npm install -g openclaw@latest
The official install script automates the entire process:
curl -fsSL https://openclaw.ai/install.sh | bash
After installation, run the onboarding:
openclaw onboard
Configure OpenClaw to start automatically on boot using systemd:
Create a systemd service file:
sudo nano /etc/systemd/system/openclaw.service
Add this content (replace YOUR_USER with your username):
[Unit]
Description=OpenClaw AI Assistant
After=network.target
[Service]
Type=simple
User=YOUR_USER
WorkingDirectory=/home/YOUR_USER
ExecStart=/usr/bin/openclaw start
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl enable openclaw
sudo systemctl start openclaw
sudo systemctl status openclaw
View logs:
sudo journalctl -u openclaw -f
sudo systemctl start openclaw - Start servicesudo systemctl stop openclaw - Stop servicesudo systemctl restart openclaw - Restart servicesudo systemctl disable openclaw - Disable auto-startIf you get EACCES errors without nvm, fix npm permissions:
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
If native modules fail to build, ensure development tools are installed:
# Ubuntu/Debian
sudo apt-get install build-essential python3
# Fedora
sudo dnf groupinstall 'Development Tools'
sudo dnf install python3
# Arch
sudo pacman -S base-devel python
If openclaw command not found, add npm global bin to PATH:
echo 'export PATH=$PATH:$(npm config get prefix)/bin' >> ~/.bashrc
source ~/.bashrc
For more troubleshooting: OpenClaw Install Troubleshooting Guide →