You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[`install.sh`](#installsh)| macOS / Linux / WSL | Installs Node if needed, installs OpenClaw via npm (default) or git, and can run onboarding. |
17
+
|[`install-cli.sh`](#install-clish)| macOS / Linux / WSL | Installs Node + OpenClaw into a local prefix (`~/.openclaw`) with npm or git checkout modes. No root required.|
18
+
|[`install.ps1`](#installps1)| Windows (PowerShell) | Installs Node if needed, installs OpenClaw via npm (default) or git, and can run onboarding. |
19
19
20
20
## Quick commands
21
21
@@ -177,7 +177,9 @@ The script exits with code `2` for invalid method selection or invalid `--instal
177
177
## install-cli.sh
178
178
179
179
<Info>
180
-
Designed for environments where you want everything under a local prefix (default `~/.openclaw`) and no system Node dependency.
180
+
Designed for environments where you want everything under a local prefix
181
+
(default `~/.openclaw`) and no system Node dependency. Supports npm installs
182
+
by default, plus git-checkout installs under the same prefix flow.
181
183
</Info>
182
184
183
185
### Flow (install-cli.sh)
@@ -190,7 +192,13 @@ Designed for environments where you want everything under a local prefix (defaul
190
192
If Git is missing, attempts install via apt/dnf/yum on Linux or Homebrew on macOS.
191
193
</Step>
192
194
<Steptitle="Install OpenClaw under prefix">
193
-
Installs with npm using `--prefix <prefix>`, then writes wrapper to `<prefix>/bin/openclaw`.
195
+
- `npm` method (default): installs under the prefix with npm, then writes wrapper to `<prefix>/bin/openclaw`
196
+
- `git` method: clones/updates a checkout (default `~/openclaw`) and still writes the wrapper to `<prefix>/bin/openclaw`
197
+
</Step>
198
+
<Steptitle="Refresh loaded gateway service">
199
+
If a gateway service is already loaded from that same prefix, the script runs
200
+
`openclaw gateway install --force`, then `openclaw gateway restart`, and
201
+
probes gateway health best-effort.
194
202
</Step>
195
203
</Steps>
196
204
@@ -207,6 +215,11 @@ Designed for environments where you want everything under a local prefix (defaul
0 commit comments