Free CleanMyMac X alternative as a Claude Code plugin
npx claudepluginhub loevlie/clean-my-mac-pluginmacOS system cleanup that replicates CleanMyMac X via terminal. Cleans caches, logs, Xcode junk, package manager caches, iOS backups, mail attachments, and more. Safe by default with dry-run scan mode.
A free, open-source Claude Code plugin that replicates what CleanMyMac X does — entirely via terminal. No app to install, no subscription, no GUI.
Just type /clean-my-mac in Claude Code and it handles the rest.
| Command | What it does |
|---|---|
/clean-my-mac | Full cleanup with safe defaults |
/clean-my-mac scan | Dry run — shows reclaimable space, cleans nothing |
/clean-my-mac full | Aggressive cleanup (includes iOS backups, Docker, mail) |
/clean-my-mac caches | Clear caches only |
/clean-my-mac logs | Clear logs only |
/clean-my-mac xcode | Clear Xcode junk only |
/clean-my-mac dev | Clear dev tool caches only |
/clean-my-mac mail | Clear mail downloads only |
/clean-my-mac trash | Empty all trash bins |
/clean-my-mac ios | Remove old iOS backups |
/clean-my-mac maintenance | Run macOS maintenance scripts |
/clean-my-mac large-files | Find large files (>100MB) |
/clean-my-mac old-files | Find files untouched for 6+ months |
Add the marketplace and install:
/plugin marketplace add loevlie/clean-my-mac-plugin
/plugin install clean-my-mac@loevlie
Or manually clone and point Claude Code at it:
git clone https://github.com/loevlie/clean-my-mac-plugin.git
claude --plugin-dir ./clean-my-mac-plugin/plugins/clean-my-mac
MIT