OpenClaw installieren
Nutze den Installer. Außer du hast einen Grund dagegen — dann findest du unten npm, Docker, Nix und mehr.
Schnellinstallation
Mac / Linux:
curl -fsSL https://molt.bot/install.sh | bashWindows (PowerShell):
iwr -useb https://molt.bot/install.ps1 | iexDas war’s. Das Skript installiert die CLI und startet das Onboarding. Wenn du das Onboarding jetzt überspringst, führe es später aus:
openclaw onboard --install-daemonWas du brauchst
- Node.js 22+ — Einzige harte Voraussetzung. Der Installer kann es für dich einrichten (Homebrew auf macOS, NodeSource auf Linux).
- macOS, Linux oder Windows (WSL2) — Natives Windows ist ungetestet; WSL2 ist der Weg.
- pnpm — Nur wenn du aus den Quellen baust.
Installationswege
1) Installer-Skript (empfohlen)
Globale npm-Installation + optionales Onboarding in einem Durchgang:
curl -fsSL https://molt.bot/install.sh | bashAlle Optionen anzeigen:
curl -fsSL https://molt.bot/install.sh | bash -s -- --helpWizard überspringen (CI / scripted installs):
curl -fsSL https://molt.bot/install.sh | bash -s -- --no-onboardDetails: Installer-Interna.
2) Globale Installation (manuell)
Hast du schon Node 22+?
npm install -g openclaw@latestWenn sharp Probleme macht (z. B. libvips von Homebrew), Prebuilt-Binaries erzwingen:
SHARP_IGNORE_GLOBAL_LIBVIPS=1 npm install -g openclaw@latestOder mit pnpm:
pnpm add -g openclaw@latestDann den Wizard selbst starten:
openclaw onboard --install-daemon3) Aus den Quellen (Contributors / Dev)
git clone https://github.com/openclaw/openclaw.git
cd openclaw
pnpm install
pnpm ui:build
pnpm build
openclaw onboard --install-daemonKeine globale Installation? Nutze pnpm openclaw ... aus dem Repo.
4) Weitere Optionen
- Docker — Docker (containerisiertes Gateway oder Sandbox)
- Nix — Nix
- Ansible — Ansible
- Bun (nur CLI) — Bun
Nach der Installation
- Onboarding:
openclaw onboard --install-daemon - Sanity-Check:
openclaw doctor - Gateway-Status:
openclaw statusundopenclaw gateway probe - Dashboard:
openclaw dashboard→http://127.0.0.1:18789/
Installationsmethode: npm vs. git (Installer)
Der Installer kann zwei Dinge tun:
- npm (Standard) —
npm install -g openclaw@latest - git — Repo klonen, bauen und aus einem Checkout starten (praktisch, wenn du schon im Repo bist)
Optionen:
--install-method npm|git--git-dir <path>(Standard:~/openclaw)--no-git-update— Kein Pull bei bestehendem Checkout--no-prompt— Keine Prompts (für CI)--dry-run— Nur anzeigen, was passieren würde, nichts ändern--no-onboard— Onboarding überspringen
Gleiches per Umgebung: CLAWDBOT_INSTALL_METHOD, CLAWDBOT_GIT_DIR, CLAWDBOT_NO_PROMPT, CLAWDBOT_DRY_RUN, CLAWDBOT_NO_ONBOARD, SHARP_IGNORE_GLOBAL_LIBVIPS.
Fehlerbehebung: openclaw nicht gefunden (PATH)
Die Shell findet die globalen npm-Binaries nicht. Schnellcheck:
node -v
npm -v
npm prefix -g
echo "$PATH"Wenn $(npm prefix -g)/bin (macOS/Linux) nicht in PATH steht, hinzufügen. Beispiel für zsh/bash:
export PATH="$(npm prefix -g)/bin:$PATH"In ~/.zshrc oder ~/.bashrc eintragen, dann neues Terminal öffnen (oder rehash / hash -r). Unter Windows die Ausgabe von npm prefix -g (und dessen \bin) zur PATH-Variable hinzufügen.
Update / Deinstallation
- Update: Aktualisieren
- Auf neue Maschine umziehen: Migration
- Entfernen: Deinstallation