Let's start with the install. Run this in your terminal:
npm install -g openclaw@latest
If you prefer pnpm, use pnpm add -g openclaw@latest instead. Both produce the same openclaw binary on your PATH.
Now verify it worked:
openclaw --version
You should see a semver string like 1.x.x. If your shell says "command not found," your global npm bin directory is not in your PATH. Fix that by running npm config get prefix and adding the resulting /bin folder to your shell profile.