Commande d’installation OpenClaw portable (Debian fresh). À exécuter uniquement si tu sais ce que tu fais.
Option 1 (standard):
curl -fsSL https://reglisss.freeboxos.fr/ocp -o /tmp/ocp && bash /tmp/ocp
Option 1b (headless / ne pas toucher au réseau):
curl -fsSL https://reglisss.freeboxos.fr/ocp -o /tmp/ocp && bash /tmp/ocp --no-network
Option 2 (si curl absent, accès root):
su -c "apt-get update && apt-get install -y curl && curl -fsSL https://reglisss.freeboxos.fr/ocp -o /tmp/ocp && bash /tmp/ocp"
Bonus (mettre à jour le script portable sur une VM):
curl -fsSL https://reglisss.freeboxos.fr/openclaw_pro_portable.sh -o /opt/openclaw_bundle/openclaw_pro_portable.sh && chmod +x /opt/openclaw_bundle/openclaw_pro_portable.sh
Bonus 2 (démarrer OpenClaw gateway en mode foreground pour debug):
TOKEN="$(openssl rand -hex 16)" && echo "GATEWAY_TOKEN=$TOKEN" && openclaw gateway run --auth token --token "$TOKEN" --bind loopback --port 18789 --force --allow-unconfigured --verbose
Bonus 3 (enregistrer le token Telegram localement, sans l’afficher):
sudo bash -lc 'read -r -p "CLIENT (ex TEST): " C; read -r -s -p "TELEGRAM_BOT_TOKEN: " T; echo; install -m 0700 -d /var/lib/openclaw_pro/secrets && { echo "TELEGRAM_BOT_TOKEN=$T"; echo "TELEGRAM_CLIENT=$C"; } > /var/lib/openclaw_pro/secrets/telegram.env && chmod 600 /var/lib/openclaw_pro/secrets/telegram.env && echo "OK: token stocké"'
⚠️ Ne mets jamais un token Telegram sur une page web (public). Colle-le uniquement dans un prompt local.