I recently built ClawRemove, a small CLI tool for inspecting and cleaning up environments where AI agents and local AI tools run.
First, just to be clear: I really like projects like OpenClaw and other AI agents. This tool isn’t meant to compete with them. In fact, it exists because these tools are becoming more popular and people are experimenting with many of them.
The problem
Some friends of mine tried tools like:
OpenClaw
Cursor
Windsurf
various Ollama-based setups
After a while they wanted to uninstall some tools or switch to others. What they found was that cleaning up AI tooling environments can be surprisingly messy:
configuration files scattered across the system
shell profiles modified
background processes still running
leftover caches and logs
Manual cleanup works, but it is tedious and easy to miss things.
Since most AI tools have predictable installation paths and artifacts, I thought it might make sense to automate inspection and cleanup.
What ClawRemove does
ClawRemove acts as an AI agent environment inspector.
Example commands:
# Inspect AI environment
claw-remove environment
# Check for exposed API keys
claw-remove security
# Analyze AI-related disk usage
claw-remove hygiene
# Generate a cleanup plan
claw-remove plan --product openclaw
tianrking•1h ago
I recently built ClawRemove, a small CLI tool for inspecting and cleaning up environments where AI agents and local AI tools run.
First, just to be clear: I really like projects like OpenClaw and other AI agents. This tool isn’t meant to compete with them. In fact, it exists because these tools are becoming more popular and people are experimenting with many of them.
The problem
Some friends of mine tried tools like:
OpenClaw
Cursor
Windsurf
various Ollama-based setups
After a while they wanted to uninstall some tools or switch to others. What they found was that cleaning up AI tooling environments can be surprisingly messy:
configuration files scattered across the system
shell profiles modified
background processes still running
leftover caches and logs
Manual cleanup works, but it is tedious and easy to miss things.
Since most AI tools have predictable installation paths and artifacts, I thought it might make sense to automate inspection and cleanup.
What ClawRemove does
ClawRemove acts as an AI agent environment inspector.
Example commands:
# Inspect AI environment claw-remove environment
# Check for exposed API keys claw-remove security
# Analyze AI-related disk usage claw-remove hygiene
# Generate a cleanup plan claw-remove plan --product openclaw
# Execute cleanup claw-remove apply --product openclaw
Currently supported categories:
Agents
OpenClaw
NanoBot
PicoClaw
Aider
IDEs
Cursor
Windsurf
Local runtimes
Ollama
LM Studio
GPT4All
LocalAI
Architecture
ClawRemove uses a provider architecture.
Each supported tool is implemented as an independent provider that defines:
discovery rules
cleanup logic
safety boundaries
This allows new tools to be added without modifying the core, and makes it easy for the community to contribute additional providers.
Safety design
Some principles I tried to follow:
plan before execution
explicit confirmation for risky actions
single binary, no background service
optional AI explanations (core functionality does not require LLMs)
Why this might matter
The AI agent ecosystem is growing quickly. People are constantly installing, testing, and removing different tools locally.
ClawRemove tries to be a small "janitor" utility for that ecosystem.
GitHub:
https://github.com/tianrking/ClawRemove
Feedback welcome
I'd love to hear:
what issues you have encountered when uninstalling AI tools
which agents or IDEs should be supported
any feature ideas
PRs for new providers are very welcome.
Thanks for reading!