How to uninstall OpenClaw on a Mac, including the gateway that keeps starting at login
OpenClaw leaves a 1.6 GB workspace, a browser profile and login agents. On our Mac its gateway was still loaded while the CLI itself refused to run.
How do I completely uninstall OpenClaw on a Mac?
- Stop and unload the gateway (and the menu bar helper if you installed it):
- Remove the package with npm, using the Node version you installed it with.
- Move the LaunchAgent files to the Trash.
- Move
~/.openclawto the Trash, after copying anything inworkspaceyou want to keep.
launchctl bootout gui/$(id -u) ~/Library/LaunchAgents/ai.openclaw.gateway.plist
launchctl bootout gui/$(id -u) ~/Library/LaunchAgents/com.openclaw.menubar.plist
npm uninstall -g openclaw
mv ~/Library/LaunchAgents/ai.openclaw.gateway.plist ~/Library/LaunchAgents/com.openclaw.menubar.plist ~/.Trash/What does OpenClaw keep on a Mac?
| Where | Size here | What it is |
|---|---|---|
~/.openclaw/workspace | 1.3 GB | Files your agents created and worked on |
~/.openclaw/browser | 125 MB | The browser profile agents use, with its sign ins |
~/.openclaw/logs | 76 MB | Gateway and agent logs |
~/.openclaw/agents, memory, skills, cron | 52 MB | Agent definitions, memory, skills and schedules |
~/.openclaw/credentials | 34 MB | Stored keys and tokens for the services you connected |
~/Library/LaunchAgents | 2 or more files | ai.openclaw.gateway, com.openclaw.menubar, and any job you scheduled |
~/Library/Application Support/openclaw-menubar | 2.1 MB | The menu bar helper |
Why does the gateway still run after an update broke OpenClaw?
On our Mac launchctl list showed ai.openclaw.gateway loaded, while running openclaw answered that it needs a newer Node.js than the one nvm had active. The LaunchAgent does not care whether the command works; launchd keeps trying it. That is why step one is launchctl bootout, not the npm command.
Should I revoke the keys it stored?
Yes, if you are done with it. Deleting ~/.openclaw/credentials removes the copies on this Mac but not the keys themselves. Revoke any API keys or tokens you gave OpenClaw at each provider.
Find what is left in one look
Free Mac shows ~/.openclaw with its workspace and browser profile to scale, and moves what you pick to the Trash. See AI coding tools taking up space for similar tools and global npm packages for the install itself.
Related: uninstall Devin and uninstall Oh My Zsh.
Common questions
Does npm uninstall stop the OpenClaw gateway?
No. The gateway is started by a LaunchAgent in ~/Library/LaunchAgents. Unload it with launchctl bootout and move the plist to the Trash, or it keeps starting at login.
How much space does OpenClaw use on a Mac?
On our Mac, 1.6 GB in ~/.openclaw, 1.3 GB of it the workspace your agents worked in, plus a 125 MB browser profile.
Is it safe to delete ~/.openclaw?
Yes, once the gateway is stopped. Copy anything in workspace you want first, and revoke the keys stored in credentials at each provider.