2026-01-12 01:08:00 +00:00
---
summary: "Install Clawdbot (recommended installer, global install, or from source)"
read_when:
- Installing Clawdbot
- You want to install from GitHub
---
# Install
2026-01-20 07:42:21 +00:00
Use the installer unless you have a reason not to. It sets up the CLI and runs onboarding.
2026-01-12 01:08:00 +00:00
2026-01-20 07:42:21 +00:00
## Quick install (recommended)
2026-01-16 23:18:44 +00:00
```bash
2026-01-20 07:42:21 +00:00
curl -fsSL https://clawd.bot/install.sh | bash
2026-01-16 23:18:44 +00:00
```
2026-01-20 07:42:21 +00:00
Windows (PowerShell):
2026-01-16 23:18:44 +00:00
2026-01-20 07:42:21 +00:00
```powershell
iwr -useb https://clawd.bot/install.ps1 | iex
```
Next step (if you skipped onboarding):
2026-01-16 23:18:44 +00:00
```bash
2026-01-20 07:42:21 +00:00
clawdbot onboard --install-daemon
2026-01-16 23:18:44 +00:00
```
2026-01-20 07:42:21 +00:00
## System requirements
2026-01-16 23:10:10 +00:00
2026-01-20 07:42:21 +00:00
- **Node >=22**
- macOS, Linux, or Windows via WSL2
- `pnpm` only if you build from source
## Choose your install path
### 1) Installer script (recommended)
Installs `clawdbot` globally via npm and runs onboarding.
2026-01-12 01:08:00 +00:00
```bash
curl -fsSL https://clawd.bot/install.sh | bash
```
2026-01-20 07:42:21 +00:00
Installer flags:
2026-01-12 02:00:09 +00:00
```bash
curl -fsSL https://clawd.bot/install.sh | bash -s -- --help
```
Details: [Installer internals ](/install/installer ).
2026-01-12 01:08:00 +00:00
Non-interactive (skip onboarding):
```bash
curl -fsSL https://clawd.bot/install.sh | bash -s -- --no-onboard
```
2026-01-20 07:42:21 +00:00
### 2) Global install (manual)
If you already have Node:
```bash
npm install -g clawdbot@latest
```
If you have libvips installed globally (common on macOS via Homebrew) and `sharp` fails to install, force prebuilt binaries:
```bash
SHARP_IGNORE_GLOBAL_LIBVIPS=1 npm install -g clawdbot@latest
```
2026-01-22 07:09:20 +00:00
If you see `sharp: Please add node-gyp to your dependencies` , either install build tooling (macOS: Xcode CLT + `npm install -g node-gyp` ) or use the `SHARP_IGNORE_GLOBAL_LIBVIPS=1` workaround above to skip the native build.
2026-01-20 07:42:21 +00:00
Or:
```bash
pnpm add -g clawdbot@latest
```
Then:
```bash
clawdbot onboard --install-daemon
```
### 3) From source (contributors/dev)
```bash
git clone https://github.com/clawdbot/clawdbot.git
cd clawdbot
pnpm install
pnpm ui:build # auto-installs UI deps on first run
pnpm build
clawdbot onboard --install-daemon
```
Tip: if you don’ t have a global install yet, run repo commands via `pnpm clawdbot ...` .
### 4) Other install options
- Docker: [Docker ](/install/docker )
- Nix: [Nix ](/install/nix )
- Ansible: [Ansible ](/install/ansible )
- Bun (CLI only): [Bun ](/install/bun )
## After install
- Run onboarding: `clawdbot onboard --install-daemon`
- Quick check: `clawdbot doctor`
- Check gateway health: `clawdbot status` + `clawdbot health`
- Open the dashboard: `clawdbot dashboard`
## Install method: npm vs git (installer)
2026-01-12 01:08:00 +00:00
The installer supports two methods:
- `npm` (default): `npm install -g clawdbot@latest`
- `git` : clone/build from GitHub and run from a source checkout
### CLI flags
```bash
# Explicit npm
curl -fsSL https://clawd.bot/install.sh | bash -s -- --install-method npm
# Install from GitHub (source checkout)
curl -fsSL https://clawd.bot/install.sh | bash -s -- --install-method git
```
Common flags:
- `--install-method npm|git`
- `--git-dir <path>` (default: `~/clawdbot` )
- `--no-git-update` (skip `git pull` when using an existing checkout)
- `--no-prompt` (disable prompts; required in CI/automation)
- `--dry-run` (print what would happen; make no changes)
- `--no-onboard` (skip onboarding)
### Environment variables
Equivalent env vars (useful for automation):
- `CLAWDBOT_INSTALL_METHOD=git|npm`
- `CLAWDBOT_GIT_DIR=...`
- `CLAWDBOT_GIT_UPDATE=0|1`
- `CLAWDBOT_NO_PROMPT=1`
- `CLAWDBOT_DRY_RUN=1`
- `CLAWDBOT_NO_ONBOARD=1`
2026-01-12 04:24:46 +00:00
- `SHARP_IGNORE_GLOBAL_LIBVIPS=0|1` (default: `1` ; avoids `sharp` building against system libvips)
2026-01-12 01:08:00 +00:00
2026-01-20 07:42:21 +00:00
## Troubleshooting: `clawdbot` not found (PATH)
2026-01-12 01:08:00 +00:00
2026-01-20 07:42:21 +00:00
Quick diagnosis:
2026-01-12 01:08:00 +00:00
```bash
2026-01-20 07:42:21 +00:00
node -v
npm -v
2026-01-22 04:26:18 +00:00
npm prefix -g
2026-01-20 07:42:21 +00:00
echo "$PATH"
2026-01-12 01:08:00 +00:00
```
2026-01-22 04:26:18 +00:00
If `$(npm prefix -g)/bin` (macOS/Linux) or `$(npm prefix -g)` (Windows) is **not** present inside `echo "$PATH"` , your shell can’ t find global npm binaries (including `clawdbot` ).
2026-01-12 04:24:46 +00:00
2026-01-20 07:42:21 +00:00
Fix: add it to your shell startup file (zsh: `~/.zshrc` , bash: `~/.bashrc` ):
2026-01-12 01:08:00 +00:00
```bash
2026-01-22 04:26:18 +00:00
# macOS / Linux
export PATH="$(npm prefix -g)/bin:$PATH"
2026-01-12 01:08:00 +00:00
```
2026-01-22 04:26:18 +00:00
On Windows, add the output of `npm prefix -g` to your PATH.
2026-01-20 07:42:21 +00:00
Then open a new terminal (or `rehash` in zsh / `hash -r` in bash).
2026-01-12 01:08:00 +00:00
2026-01-20 07:42:21 +00:00
## Update / uninstall
- Updates: [Updating ](/install/updating )
- Uninstall: [Uninstall ](/install/uninstall )