Free, open-source macOS cleaner, optimizer, and malware scanner built with Swift 6 and SwiftUI, positioned as an alternative to CleanMyMac.
momenbasel/PureMac
Free, open-source macOS cleaner with a native SwiftUI app, a CLI, and cleanup for caches, Xcode, Homebrew and Docker, with no telemetry.
Open-source alternative to:CleanMyMac
- Stars
- 7,667
- Forks
- 447
- Open issues
- 12
- Last commit
- yesterday
What is it?
PureMac is a macOS maintenance app that aims to replace paid cleaners such as CleanMyMac. It scans for system and user caches, logs, Trash, Xcode DerivedData and simulator data, Homebrew and npm/pnpm/yarn caches, and Docker images and containers, and it can run cleanup on a schedule once enabled. Its App Uninstaller uses a heuristic matcher to find related preferences, caches and containers left by an app, and an Orphan Finder surfaces leftovers from apps that are no longer installed.
The project also includes a Space Explorer for measuring folder sizes, a Duplicate Finder based on SHA-256 hashes, a Similar Photos tool that suggests visually similar images for manual review, and a Protection panel that reports the status of Gatekeeper, FileVault, the firewall and SIP. Homebrew cask updates can be checked from inside the app. Deletions by most tools go to the Trash, while dashboard cleanup, scheduled runs and CLI cleanup can remove data permanently.
PureMac is written in Swift for macOS 13 and later, is distributed as a signed and notarized DMG or through Homebrew, and is licensed under MIT. It requires Full Disk Access to read protected locations such as Mail downloads and Safari data.
Key features
- 01Cleans system, user, Xcode, Homebrew, npm/pnpm/yarn and Docker caches
- 02Uninstalls apps along with their related leftover files and finds orphaned files
- 03Runs scheduled cleanup with a configurable interval and threshold
- 04Finds duplicate files by content hash and similar photos for manual review
- 05Includes a command-line tool with dry-run and JSON output
- 06Shows status of Gatekeeper, FileVault, firewall and SIP without sending any data
Use cases
- Freeing disk space on a Mac with a small SSD by clearing Xcode and Docker build leftovers
- Removing leftover files after uninstalling macOS apps
- Finding large or duplicate files inside a folder before deciding what to delete
- Auditing basic macOS security settings without installing an antivirus tool
Quick start
- 1
Install the PureMac app with Homebrew
brew install --cask puremac - 2
Or download the signed .dmg from Releases and drag PureMac into /Applications
- 3
Install the command-line tool
brew install momenbasel/tap/puremac-cli - 4
Launch the command-line workspace
puremac
Things to know
- Requires macOS 13.0 or later.
- Some cleanup actions permanently delete data instead of moving it to the Trash.
- Uninstall and related-file matching is heuristic, so results need review before removal.
In collections
Topics
FAQ
- What is PureMac?
- Free, open-source macOS cleaner with a native SwiftUI app, a CLI, and cleanup for caches, Xcode, Homebrew and Docker, with no telemetry. PureMac is a macOS maintenance app that aims to replace paid cleaners such as CleanMyMac. It scans for system and user caches, logs, Trash, Xcode DerivedData and simulator data, Homebrew and npm/pnpm/yarn caches, and Docker images and containers, and it can run cleanup on a schedule once enabled. Its App Uninstaller uses a heuristic matcher to find related preferences, caches and containers left by an app, and an Orphan Finder surfaces leftovers from apps that are no longer installed.
- Is PureMac free to use? What license does it have?
- PureMac is open source under the MIT license. Check the license terms before using it in commercial products.
- Is PureMac still maintained?
- Actively maintained. The last commit to PureMac was on Nov 6, 2026.
- What can I use PureMac for?
- Freeing disk space on a Mac with a small SSD by clearing Xcode and Docker build leftovers Removing leftover files after uninstalling macOS apps Finding large or duplicate files inside a folder before deciding what to delete Auditing basic macOS security settings without installing an antivirus tool
- How do I install PureMac?
- Install the PureMac app with Homebrew: brew install --cask puremac Or download the signed .dmg from Releases and drag PureMac into /Applications Install the command-line tool: brew install momenbasel/tap/puremac-cli Launch the command-line workspace: puremac
- Where can I get PureMac?
- The source code and installation instructions are on GitHub: https://github.com/momenbasel/PureMac
Summary generated by AI from the project's README. GitHub stats refresh daily.
Related projects
A free, open source macOS uninstaller that removes an app along with every leftover file, showing why each belongs to it.
A free, open-source native Mac app that clears caches and junk, moving files to the Trash by default so they can be restored.
A macOS app and CLI that frees disk space by turning identical files into APFS clones that share storage, without deleting any file.
A native macOS app store for installing, updating and removing non-App Store apps, backed by Homebrew Cask and requiring no Terminal setup.
Pika is an open-source native colour picker for macOS that samples colours anywhere on screen and outputs them in multiple formats.