OpenSweep is a minimal, free and open source macOS cleaner for reclaiming space from user-owned caches, logs, Trash contents, browser caches, and common developer build artifacts.
- Preview-first scanning with per-item selection.
- User-home safety policy that blocks root, system, and broad Library deletion.
- Cache and log cleanup moves items to Trash where macOS supports it.
- Trash cleanup is opt-in and permanently deletes only selected Trash items.
- Optional browser-cache and developer-data categories.
- Start at login support from the Settings window.
- Native SwiftUI desktop UI with toolbar actions, search, settings, and menus.
- Download
OpenSweep-macOS.zipfrom the latest GitHub release. - Double-click the zip file.
- Drag
OpenSweep.appinto your Applications folder. - Open Launchpad or Spotlight, search for
OpenSweep, and press Return. - If macOS says the app cannot be opened because it was downloaded from the
internet, right-click
OpenSweep.appin Applications, choose Open, then choose Open again.
Install Xcode Command Line Tools, then run:
git clone https://github.com/yashrajnayak/OpenSweep.git
cd OpenSweep
swift run OpenSweepSelfTest
./script/package_release.sh
open dist/release/OpenSweep.appThe packaged zip is created at:
dist/OpenSweep-macOS.zip- Click Scan.
- Review the cleanup categories and deselect anything you want to keep.
- Click Clean.
- Confirm the cleanup prompt.
Caches, logs, and developer artifacts are moved to Trash. Trash items are not selected by default because they are deleted permanently when you choose them.
- Open OpenSweep.
- Choose OpenSweep > Settings.
- Turn on Start OpenSweep at login.
- If macOS asks for approval, click Open Login Items and allow OpenSweep in System Settings.
Start-at-login works best after OpenSweep.app has been moved into the
Applications folder.
- Open Launchpad or Spotlight, search for
OpenSweep, and press Return. - Or open Finder > Applications and double-click
OpenSweep.app. - To keep it available after restarts, turn on Start OpenSweep at login in OpenSweep > Settings.
flowchart LR
App["SwiftUI App"] --> Store["CleanerStore"]
Store --> Scanner["CleanerScanner"]
Store --> Cleaner["CleanerService"]
Scanner --> Policy["SafetyPolicy"]
Cleaner --> Policy
Scanner --> FS["User-owned filesystem"]
Cleaner --> FS
swift run OpenSweepSelfTest
./script/build_and_run.sh --verify
./script/package_release.shThe Codex Run action is wired to:
./script/build_and_run.shOpenSweep only scans paths under the current user's home directory. It refuses to
clean the home folder itself, broad Library roots, and category roots such as
~/Library/Caches, ~/Library/Logs, and ~/.Trash. Scans produce top-level
cleanup candidates, and every candidate remains user-selectable before cleaning.
MIT. See LICENSE.
