Press Command + Space, type Terminal, and press Enter.
If the openclaw command still works, run:
openclaw uninstall --all --yesuninstall — tells the program you want to remove it.--all — removes everything: gateway service, local database, config files.--yes — auto-confirms all prompts.For fully non-interactive use (scripts, CI, npx):
openclaw uninstall --all --yes --non-interactive
npx -y openclaw uninstall --all --yes --non-interactiveAfter the uninstall command finishes, only the CLI shell remains. Remove it with whichever package manager you originally used:
npm rm -g openclaw
# or
pnpm remove -g openclaw
# or
bun remove -g openclawrm -rf /Applications/OpenClaw.appIf the openclaw command is missing but the gateway service is still running:
launchctl bootout gui/$UID/ai.openclaw.gateway
rm -f ~/Library/LaunchAgents/ai.openclaw.gateway.plistIf you used profiles (--profile), replace gateway with your profile name. Also remove any legacy com.openclaw.* plists if present:
ls ~/Library/LaunchAgents/ | grep -i openclawrm -rf "${OPENCLAW_STATE_DIR:-$HOME/.openclaw}"
rm -rf ~/.openclaw/workspaceIf you set OPENCLAW_CONFIG_PATH to a custom location outside the state directory, delete that file too. If you used profiles, repeat for each state dir (e.g. ~/.openclaw-<profile>).
| Category | Places to check |
|---|---|
| App support | ~/Library/Application Support/openclaw |
| Caches | ~/Library/Caches/openclaw |
| Logs | ~/Library/Logs/openclaw |
| Preferences | ~/Library/Preferences, ~/Library/Saved Application State |
| Hidden folders | ~/.config/openclaw, ~/.local |
If OpenClaw modified your terminal config, review and clean up:
~/.zshrc~/.zprofile~/.bash_profile~/.bashrcRemove any OPENCLAW_* environment variables, PATH entries, or source lines that reference OpenClaw.
which openclaw
ps aux | grep openclaw
launchctl list | grep -i openclawAll three should return empty results.