Basculer le menu
Changer de menu des préférences
Basculer le menu personnel
Non connecté(e)
Votre adresse IP sera visible au public si vous faites des modifications.

« OpenClaw » : différence entre les versions

De Le Wiki de Lug
Ligne 16 : Ligne 16 :
== Installation (Debian) ==
== Installation (Debian) ==
  # apt update && apt upgrade -y
  # apt update && apt upgrade -y
  # apt install -y curl ca-certificates gnupg
  # apt install -y curl ca-certificates gnupg sudo
  # curl -fsSL <nowiki>https://</nowiki>deb.nodesource.com/setup_<font color = green>24</font>.x | bash -
  # curl -fsSL <nowiki>https://</nowiki>deb.nodesource.com/setup_<font color = green>24</font>.x | bash -
  # apt install -y nodejs
  # apt install -y nodejs

Version du 17 avril 2026 à 17:33

Source github

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 sudo
# 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