OpenClaw
De Le Wiki de Lug
Autres actions
Prérequis
- RAM :
- 1 Go → minimum
- 2 Go → recommandé
- CPU / vCPU :
- 1 vCPU → suffisant
- 2 vCPU → recommandé
- Espace disque :
- 5 Go → minimum
- 10 Go → confortable
- GPU :
- Inutile
Installation OpenClaw (service dédié)
Installation (Debian)
# apt update && apt upgrade -y # apt install -y curl ca-certificates gnupg # curl -fsSL https://deb.nodesource.com/setup_24.x | bash - # apt install -y nodejs
Installer OpenClaw globalement :
# npm install -g openclaw@latest
Création de l'utilisateur
Créer un utilisateur dédié sans accès shell :
# useradd -r -m -d /opt/openclaw -s /usr/sbin/nologin openclaw
Créer le dossier de travail :
# mkdir -p /opt/openclaw # chown -R openclaw:openclaw /opt/openclaw
Création des fichiers de configuration
# sudo -u openclaw HOME=/opt/openclaw /usr/local/bin/openclaw setup
Service systemd
Créer le service :
# nano /etc/systemd/system/openclaw.service
Contenu :
[Unit] Description=OpenClaw After=network-online.target Wants=network-online.target [Service] Type=simple User=openclaw WorkingDirectory=/opt/openclaw ExecStart=/usr/bin/openclaw Restart=always RestartSec=3 Environment=NODE_ENV=production [Install] WantedBy=multi-user.target
Activer et démarrer :
# systemctl daemon-reload # systemctl enable --now openclaw
Mise à jour de OpenClaw
Mettre à jour OpenClaw :
# npm install -g openclaw@latest
Redémarrer le service :
# systemctl restart openclaw