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

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

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.)

Your own cloud agent, set up for you.

Everpod runs OpenClaw on a private, always-on computer of its own: set up, secured and backed up, with model usage included. You name your agent, and say hello about fifteen minutes later.

Create your agent

First month half price, then $29/mo · model usage included · cancel anytime

Wondering what you’d do with one? See what a cloud agent can do