OpenClaw Prerequisites¶
This page covers what you need before running the OpenClaw installer. It applies to dedicated Ubuntu, dedicated macOS, and Ubuntu VMs.
You do not need Docker or OpenShell for the basic OpenClaw path.
1. Install curl¶
Ubuntu¶
macOS¶
curl is pre-installed on macOS.
Verify¶
Expected: a version number and supported protocols. For example:
2. Install Node.js and npm¶
The easiest cross-platform approach is nvm:
Reload the shell so nvm is available:
Install Node.js (npm is included):
Verify¶
Expected:
3. Install Git¶
You must install Git before Homebrew.
Ubuntu¶
macOS¶
Option 1 -- Xcode Command Line Tools (recommended, includes Git):
Option 2 -- via Homebrew (if you prefer Homebrew-managed Git):
Verify¶
Expected: a version number. For example:
4. Optional: Homebrew¶
Many skill dependencies are shipped via Homebrew, but it is not required for the initial install.
After install, follow the on-screen instructions to add Homebrew to your PATH.
Verify¶
Expected: a version number. For example:
5. Optional: Ollama¶
Install Ollama only if you want local models instead of a hosted provider.
Pull a lightweight model for local heartbeats:
Verify¶
Expected: a version number. For example:
Final check¶
Before continuing, run all of the following commands. Every one should succeed:
Expected results:
| Command | Expected |
|---|---|
curl --version |
Version number and protocols |
node -v |
v24.14.0 or later |
npm -v |
11.9.0 or later |
git --version |
Version number |
If any command fails, go back to the corresponding step above.
Troubleshooting¶
openclaw: command not found after installation¶
If you manage Node.js with nvm or fnm, the installer may not update the current shell's PATH immediately. Reload your shell:
If openclaw is still not found, check if the npm global bin directory is in your PATH:
Add the bin subdirectory to your PATH. For example:
nvm: command not found¶
If nvm is not found after installing it, reload your shell:
git: command not found¶
On Ubuntu, install with sudo apt install git. On macOS, install with xcode-select --install. Then verify with git --version.
Homebrew not found after installation¶
Homebrew prints instructions at the end of its install script telling you how to add it to your PATH. If you missed them, run:
On macOS Apple Silicon:
Next step¶
Continue to Install OpenClaw.