Faberon work

Mole

Free open source macOS CLI to clean, uninstall, optimize, analyze, and monitor your Mac.

A Faberon work designed, built, and maintained by Tw93.

system cleanerGPL-3.0macOS (macOS 12 or later; macOS 14 or later for the Homebrew path). A separate Windows CLI lives on the windows branch and installs with `scoop install mole`.

Overview

Mole is a macOS system maintenance tool that runs in the terminal. It clears caches, removes apps with their leftovers, runs maintenance tasks, maps disk usage, and shows live system status. Built with Shell and Go, licensed GPL-3.0. Mole for Mac (https://mole.fit) is a separate paid native app with its own code and licence, not a GUI wrapper around this CLI.

76,588 GitHub stars · 2,764 forks · latest release V1.75.0

Choose Mole when

Key features

Compared with

CleanMyMac, OnyX, AppCleaner, DaisyDisk.

Practical details

Requirements
macOS (macOS 12 or later; macOS 14 or later for the Homebrew path). A separate Windows CLI lives on the windows branch and installs with `scoop install mole`.
Install
brew install mole

Frequently asked questions

Is Mole free?

The Mole CLI is free and open source under GPL-3.0. Mole for Mac (https://mole.fit) and Mole for Windows (https://mole.fit/windows) are separate paid native apps, each a $19 one-time license.

Is Mole safe to use?

Mole scopes cleanup to known-safe caches, logs, temporary files, developer artifacts, and leftovers. Before a destructive action, users can review eligible paths with --dry-run and protect caches with --whitelist; maintenance tasks that are unnecessary, unsafe at the moment, or unavailable are skipped with a reason.

What does Mole clean?

Browser caches (Chrome, Arc, Brave, Safari), Xcode derived data, Homebrew cache, npm/pnpm/yarn cache, Docker unused images, system logs, old AI coding assistant versions (Copilot CLI, Claude Code, Cursor Agent), and app-specific temp files.

How do I install and update Mole?

Install with Homebrew: `brew install mole`. Or with the script: `curl -fsSL https://raw.githubusercontent.com/tw93/mole/main/install.sh | bash`. Update to stable: `mo update`. Update to the latest unreleased main build: `mo update --nightly` (script install only).

What are the main Mole commands?

`mo clean` (cache and leftover cleanup), `mo uninstall` (app removal with leftovers), `mo optimize` (system maintenance), `mo analyze` (disk explorer), `mo status` (live system dashboard), `mo purge` (project build artifacts), `mo installer` (stale installer sweep), and `mo history` (cleanup log). Each supports `--dry-run` to preview before acting.

Does Mole have a GUI?

Yes. Mole for Mac at https://mole.fit is the native SwiftUI app. It is a separate paid product ($19 one-time, lifetime updates, 2 Macs per license) and adds a disk treemap, a bento status dashboard, a menu bar HUD, fan controls, startup management, and in-app app updates. On Windows, the native app is Mole for Windows at https://mole.fit/windows, a separate paid product with its own license. The CLI stays free and open source for terminal workflows.

Does Mole work on Linux?

No. Mole is built for macOS and relies on macOS-specific APIs like mdfind, LaunchAgent/LaunchDaemon, and TCC for safe operations. A separate Windows CLI lives on the windows branch and installs with `scoop install mole`, but there is no Linux version.