Complete guide to installing and using OpenClaw (formerly Clawdbot and Moltbot) on Linux
Linux is an excellent platform for OpenClaw, with native systemd support, excellent performance, and full feature support. This guide covers installation and setup on various Linux distributions.
The easiest way to install OpenClaw on Linux:
curl -fsSL https://openclaw.ai/install.sh | bash
Then run the onboarding wizard:
openclaw onboard --install-daemon
# Update package list
sudo apt update
# Install dependencies (if needed)
sudo apt install -y curl
# Install OpenClaw
curl -fsSL https://openclaw.ai/install.sh | bash
# Onboard
openclaw onboard --install-daemon
# Install dependencies
sudo dnf install -y curl
# Install OpenClaw
curl -fsSL https://openclaw.ai/install.sh | bash
# Onboard
openclaw onboard --install-daemon
# Install dependencies
sudo pacman -S curl
# Install OpenClaw
curl -fsSL https://openclaw.ai/install.sh | bash
# Onboard
openclaw onboard --install-daemon
OpenClaw can run as a systemd user service:
The onboarding wizard installs the service automatically:
openclaw onboard --install-daemon
Control the Gateway service:
# Start service
systemctl --user start openclaw-gateway
# Stop service
systemctl --user stop openclaw-gateway
# Enable auto-start
systemctl --user enable openclaw-gateway
# Check status
systemctl --user status openclaw-gateway
# View logs
journalctl --user -u openclaw-gateway -f
Linux browser automation may require additional dependencies:
Linux supports Docker-based sandboxing:
For headless Linux servers:
Access Gateway remotely:
ssh -L 18789:localhost:18789 user@serverIf the service doesn't start:
journalctl --user -u openclaw-gateway~/.config/systemd/user/openclaw-gateway.servicesystemctl --user status openclaw-gatewayopenclaw doctorIf you encounter permission errors:
If browser automation fails:
sudo apt install chromium-browser (Ubuntu/Debian)sudo apt install -y libnss3 libatk-bridge2.0-0 libdrm2 libxkbcommon0 libxcomposite1 libxdamage1 libxfixes3 libxrandr2 libgbm1 libasound2