Skip to content

Commit 4bebf1c

Browse files
committed
1 parent 72c36ed commit 4bebf1c

2 files changed

Lines changed: 18 additions & 3 deletions

File tree

‎docs/install/bun.md‎

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,21 @@ Bun remains usable as an optional package-script runner. The default package man
3030
bun run vitest run
3131
```
3232

33-
Use Node by default for commands that launch OpenClaw. To opt into Bun 1.4+, invoke the CLI with Bun or select `--runtime bun` when installing the managed Gateway or node host.
33+
Use Node by default for commands that launch OpenClaw.
34+
35+
</Step>
36+
<Step title="Run OpenClaw with Bun">
37+
To run onboarding under Bun and install the managed Gateway under Bun:
38+
39+
```sh
40+
bun openclaw.mjs onboard --install-daemon --daemon-runtime bun
41+
```
42+
43+
For a managed node host, select Bun separately:
44+
45+
```sh
46+
bun openclaw.mjs node install --runtime bun
47+
```
3448

3549
</Step>
3650
</Steps>

‎docs/install/index.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,15 @@ If you already manage Node yourself:
133133
<Tab title="bun">
134134
```bash
135135
bun add -g --trust openclaw@latest
136-
openclaw onboard --install-daemon
136+
bun run --bun openclaw onboard --install-daemon --daemon-runtime bun
137137
```
138138

139139
<Note>
140140
`--trust` allows OpenClaw's package lifecycle scripts for this install. Bun
141141
1.4 or newer can also run OpenClaw's CLI, local agent, and Gateway. Node
142142
remains the primary runtime, so the plain `openclaw` executable keeps its
143-
Node shebang. Use `bun run --bun openclaw <args>` to force the Bun runtime.
143+
Node shebang. `bun run --bun` forces the Bun runtime, while
144+
`--daemon-runtime bun` installs the managed Gateway under Bun.
144145
</Note>
145146

146147
</Tab>

0 commit comments

Comments
 (0)