Skip to content
Caution

Remove old global package names before a clean install

Uninstalls older OpenClaw package names so they do not conflict with the current CLI.

npm uninstall -g clawdbot || true
npm uninstall -g moltbot || true
npm uninstall -g openclaw || true
Install and first runMacLinux

What it does

Uninstalls older OpenClaw package names so they do not conflict with the current CLI.

When to use it

Use it when reinstalling OpenClaw, when command names look mixed up, or when a guide tells you to clean older package aliases first.

What happens next

npm tries to remove each global package. Missing packages are ignored because of `|| true`.

Risk warning

Caution. It removes global CLI packages from this machine, so only run it if you are intentionally cleaning an old setup.

Related guides