Skip to content

Commit 7807e1e

Browse files
committed
docs: refresh bun install and onboarding references
1 parent 5779831 commit 7807e1e

5 files changed

Lines changed: 27 additions & 8 deletions

File tree

‎docs/install/index.md‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ curl -fsSL https://openclaw.ai/install-cli.sh | bash
6363
It supports npm installs by default, plus git-checkout installs under the same
6464
prefix flow. Full reference: [Installer internals](/install/installer#install-clish).
6565

66-
### npm or pnpm
66+
### npm, pnpm, or bun
6767

6868
If you already manage Node yourself:
6969

@@ -86,6 +86,17 @@ If you already manage Node yourself:
8686
</Note>
8787

8888
</Tab>
89+
<Tab title="bun">
90+
```bash
91+
bun add -g openclaw@latest
92+
openclaw onboard --install-daemon
93+
```
94+
95+
<Note>
96+
Bun is supported for the global CLI install path. For the Gateway runtime, Node remains the recommended daemon runtime.
97+
</Note>
98+
99+
</Tab>
89100
</Tabs>
90101

91102
<Accordion title="Troubleshooting: sharp build errors (npm)">

‎docs/platforms/macos.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ capabilities to the agent as a node.
2121
- Exposes macOS‑only tools (Canvas, Camera, Screen Recording, `system.run`).
2222
- Starts the local node host service in **remote** mode (launchd), and stops it in **local** mode.
2323
- Optionally hosts **PeekabooBridge** for UI automation.
24-
- Installs the global CLI (`openclaw`) via npm/pnpm on request (bun not recommended for the Gateway runtime).
24+
- Installs the global CLI (`openclaw`) on request via npm, pnpm, or bun (the app prefers npm, then pnpm, then bun; Node remains the recommended Gateway runtime).
2525

2626
## Local vs remote mode
2727

‎docs/start/onboarding.md‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,9 @@ Onboarding requests TCC permissions needed for:
7979
</Step>
8080
<Step title="CLI">
8181
<Info>This step is optional</Info>
82-
The app can install the global `openclaw` CLI via npm/pnpm so terminal
83-
workflows and launchd tasks work out of the box.
82+
The app can install the global `openclaw` CLI via npm, pnpm, or bun.
83+
It prefers npm first, then pnpm, then bun if that is the only detected
84+
package manager. For the Gateway runtime, Node remains the recommended path.
8485
</Step>
8586
<Step title="Onboarding Chat (dedicated session)">
8687
After setup, the app opens a dedicated onboarding chat session so the agent can

‎docs/start/setup.md‎

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ For onboarding details, see [Onboarding (CLI)](/start/wizard).
2222
## Prereqs (from source)
2323

2424
- Node 24 recommended (Node 22 LTS, currently `22.14+`, still supported)
25-
- `pnpm`
25+
- `pnpm` preferred (or Bun if you intentionally use the [Bun workflow](/install/bun))
2626
- Docker (optional; only for containerized setup/e2e — see [Docker](/install/docker))
2727

2828
## Tailoring strategy (so updates do not hurt)
@@ -44,7 +44,7 @@ From inside this repo, use the local CLI entry:
4444
openclaw setup
4545
```
4646

47-
If you don’t have a global install yet, run it via `pnpm openclaw setup`.
47+
If you don’t have a global install yet, run it via `pnpm openclaw setup` (or `bun run openclaw setup` if you are using the Bun workflow).
4848

4949
## Run the Gateway from this repo
5050

@@ -97,6 +97,13 @@ pnpm gateway:watch
9797
`gateway:watch` runs the gateway in watch mode and reloads on relevant source,
9898
config, and bundled-plugin metadata changes.
9999

100+
If you are intentionally using the Bun workflow, the equivalent commands are:
101+
102+
```bash
103+
bun install
104+
bun run gateway:watch
105+
```
106+
100107
### 2) Point the macOS app at your running Gateway
101108

102109
In **OpenClaw.app**:
@@ -141,7 +148,7 @@ Use this when debugging auth or deciding what to back up:
141148
## Updating (without wrecking your setup)
142149

143150
- Keep `~/.openclaw/workspace` and `~/.openclaw/` as “your stuff”; don’t put personal prompts/config into the `openclaw` repo.
144-
- Updating source: `git pull` + `pnpm install` (when lockfile changed) + keep using `pnpm gateway:watch`.
151+
- Updating source: `git pull` + your chosen package-manager install step (`pnpm install` by default; `bun install` for Bun workflow) + keep using the matching `gateway:watch` command.
145152

146153
## Linux (systemd user service)
147154

‎docs/start/wizard-cli-reference.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ It does not install or modify anything on the remote host.
9090
</Step>
9191
<Step title="Skills">
9292
- Reads available skills and checks requirements.
93-
- Lets you choose node manager: npm or pnpm (bun not recommended).
93+
- Lets you choose node manager: npm, pnpm, or bun.
9494
- Installs optional dependencies (some use Homebrew on macOS).
9595
</Step>
9696
<Step title="Finish">

0 commit comments

Comments
 (0)