Linux Setup Issues in OpenClaw
From the OpenClaw cheat sheet · Linux Install Fixes · verified Nov 2026
Linux Setup Issues
Fix PATH, gateway mode, and systemd issues on Linux installs.
bash
# "openclaw: command not found" after an npm global install
echo 'export PATH="$(npm prefix -g)/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
# Gateway refuses to start because gateway.mode is missing
openclaw config set gateway.mode "local"
# Enable systemd lingering (keeps the Gateway alive after logout)
sudo loginctl enable-linger $USER💡 A Gateway that exits with code 78 has an invalid config; systemd will not restart it until the config is fixed
⚡ Without systemd lingering, the user service stops when you disconnect from SSH
📌 A missing gateway.mode blocks startup; onboarding writes it, or set it with "openclaw config set gateway.mode local"
🟢 Always run "source ~/.bashrc" after fixing PATH or open a new terminal
linuxubuntuinstallsystemd
Continue with OpenClaw
Save the full cheat sheet or work through every related task.