Quick start
1. Install Cleanr
Choose one installation method.
npm
Requires Node.js 18 or later:
npm install --global cleanr-cli
The npm package installs a small launcher and the native binary for your operating system and CPU.
Cargo
Requires Rust 1.94 or later:
cargo install cleanr-cli
Prebuilt binary
Download the binary for your platform from
GitHub Releases. On macOS or
Linux, make the downloaded file executable and place it somewhere on your
PATH.
Build from source
git clone https://github.com/drl990114/cleanr.git
cd cleanr
cargo build --release
The binary is written to target/release/cleanr.
2. Launch the TUI
Run Cleanr in the directory you want to inspect:
cleanr
You can also choose one or more scan roots when launching:
cleanr ~/projects ~/Downloads
Cleanr opens on its home screen. It does not scan or clean anything until you start an action.
3. Complete your first cleanup
Inside the TUI:
- Press
sto scan the configured roots. - When the scan finishes, press
rto review cleanup candidates. - Move with
j/kor the arrow keys. - Press
spaceto select or deselect an item. - Press
cto review the selected total and open confirmation. - Choose Yes, then press
Enterto move the selected items to trash.
Press ? at any time to see the keyboard shortcuts. Press Esc or x during
a scan to cancel it.
:::tip Start conservatively
For a first run, scan one project rather than your whole home directory. Review each candidate's reason and risk note before confirming.
:::
Scan known system cleanup locations
Press /, type the following command, and press Enter:
/scan --global
This searches known user-level cleanup locations for the current platform, including developer caches, browser caches, app caches, temporary files, logs, and Downloads. It does not mean "scan the entire disk."
To narrow the global scan, add one or more categories:
/scan --global-kind browser-caches --global-kind logs
Give a local AI tool read-only evidence
Use analyze when another local agent should inspect Cleanr's deterministic
facts rather than drive the TUI:
cleanr analyze ~/projects > cleanr-analysis.json
The command only scans and prints a versioned JSON report. It does not create a
cleanup plan or move files. The output contains real local paths, so keep it on
your machine unless you have independently removed sensitive details. See
Evidence and privacy for the contract and boundary.
It shares the TUI, plan, and dry-run recommendation policy. Change the
default 90-day age gate in [recommendations].preselect_after_days in the
configuration file when needed.
Install the repository's cross-agent skill directly from GitHub:
npx skills add drl990114/cleanr@cleanr-review-disk-cleanup -g
It guides this local-only, read-only workflow and has no cleanup authority. Agent selection and invocation are covered in Evidence and privacy.
Use Simplified Chinese
Initialize the built-in Chinese language file:
cleanr init --locale zh-CN
You can later open /languages in the TUI, select a language, and press
Enter. The selection is saved to the default configuration file.
Next steps
- Learn all shortcuts and slash commands in Using Cleanr.
- Understand the rollback boundary in Safety and recovery.
- Exclude directories or change the theme in Configuration.