GuidesRunning & maintaining

How to uninstall OpenClaw completely

Removing OpenClaw properly takes three steps: stop the background service, remove the package, and decide what happens to your agent's data. In order.

July 17, 2026The Everpod team
The short answer

Three steps, in this order: stop the background service so it can’t respawn (openclaw gateway stop --disable), remove the package (npm uninstall -g openclaw), and then decide deliberately about ~/.openclaw, the directory holding your agent’s memory, config, and credentials. Deleting the package without handling the service and the state directory is why “it’s still running” and “my keys are still on disk” are the two classic uninstall surprises.

Step 1: stop the Gateway, permanently

The install registered the Gateway as a supervised background service (launchd on macOS, a systemd user service on Linux, a Scheduled Task named “OpenClaw Gateway” on Windows), and supervised services are built to come back. A plain stop can be undone by the supervisor’s auto-restart or the next reboot (how stopping, restarting, and disabling actually differ); what you want is:

openclaw gateway stop --disable
Copied

That stops and disables respawn. This is the step people skip, and the reason an “uninstalled” agent greets them after the next reboot. Verify with openclaw gateway status before moving on (on Windows, Task Scheduler should no longer show the task as ready).

Step 2: remove the package

npm uninstall -g openclaw
Copied

The mirror image of the install. For Docker setups the equivalent is docker compose down plus removing the images, and the same warning applies double: the volumes ARE your agent; down alone leaves them, adding -v destroys them.

Step 3: the state directory is a decision, not a deletion

Uninstalling the package leaves ~/.openclaw untouched, and that’s the right default. That directory is your agent: its memory, identity, sessions, config, and stored credentials (model keys, channel tokens, linked-session secrets). Choose deliberately:

The checklist version

(If the reason you’re uninstalling is that operating it stopped being fun rather than the agent itself, that’s a hosting problem, not an OpenClaw problem, and it has gentler fixes than deletion.)

Give your AI agents a permanent cloud computer.

We set it up and secure it, so all you do is use them. Run Claude Code, Codex or any agent you use, more at once than your laptop can hold, and keep them working when it’s closed. Or have OpenClaw set up and run for you.

See the developer pod

From $24/mo · your own plan or API key

Get your OpenClaw agent

$29/mo, cancel anytime · model usage included