Skip to main content

bloatr

Kill your Mac's bloat. Select. Delete. Done.

PyPI Python License: MIT Platform

A macOS CLI for developers who've run out of disk space one too many times.
Finds Docker leftovers, dev caches, app caches and build artifacts, lets you explore and delete them safely — with a live progress bar.

bloatr screenshot


Install

pipx install bloatr
Or with pip
pip install bloatr

Usage

# Launch interactive TUI — scans known bloat locations + Docker
bloatr

# Scan any directory, like `du` but interactive
bloatr ~/
bloatr ~/Library/Caches
bloatr ~/Documents

# Safe preview — see what would be deleted without touching anything
bloatr --dry-run

# Leave Docker alone
bloatr --no-docker

# Only show items larger than a threshold
bloatr --min-size 1G

# JSON output — pipe-friendly
bloatr --json
bloatr --json | jq '.[].size_human'

How it works

  1. Scan — measures ~60 known bloat locations plus Docker in parallel (a few seconds)
  2. Read — every row says what it is, whether it's safe or caution, and warns you if the owning app is running
  3. Select — Space on items, or A to grab everything marked safe in one go
  4. Delete — D, confirm, watch the progress bar. bloatr reports the real change in free disk space when it's done

Where a tool has its own cleanup command, bloatr uses it instead of deleting files — docker … prune, uv cache clean, npm cache clean, go clean -modcache — but only after checking the tool really stores its cache at the path you selected.


What it finds

Category Examples
Docker Build cache, unused images, unused volumes, stopped containers — via docker system df, cleaned with docker … prune (never by touching Docker.raw)
Xcode DerivedData, Archives, iOS/watchOS DeviceSupport, simulator caches, devices and runtimes
Dev caches uv, pip, Poetry, pre-commit, npm, pnpm, Yarn, Bun, Gradle, Maven, CocoaPods, Cargo, Go, Flutter/Dart, Expo, Playwright, Puppeteer, JetBrains, Android SDK & emulators, Homebrew
AI models Hugging Face, Ollama, Claude desktop's VM image, Chrome's on-device Gemini Nano
App caches Claude, Cursor, VS Code, Slack, Chrome (every profile), Discord, Spotify, ~/Library/Caches
Messages WhatsApp media, Mail attachments
System Trash, ~/Library/Logs

Empty and missing locations are hidden. caution means re-downloading or your own data (WhatsApp media, Docker volumes, AI models) — A never selects those.

Tip: Don't see a location you care about? Run bloatr ~/ to scan your entire home directory.


Keyboard shortcuts

Key Action
j / ↓ Move down
k / ↑ Move up
space Toggle select
a Select / deselect everything marked safe
enter Drill into folder
esc / backspace Go back
d Delete selected items
r Rescan from scratch
q Quit

Safety

bloatr will never delete:

  • Anything outside your home directory (~)
  • Top-level protected directories — ~/Library, ~/Documents, ~/Desktop, ~/Pictures, ~/Downloads, and more
  • Anything inside those personal directories (Documents, Desktop, Downloads, etc.)
  • The home directory itself
  • Docker's disk image directly — Docker space is only ever freed through docker … prune

Cleanup commands are limited to an allow-list (docker, uv, npm, go) and come only from bloatr's built-in catalog.

Every deletion requires an explicit confirmation prompt. Use --dry-run to simulate a cleanup run without touching the filesystem.


Credits

Idea and direction by a developer who lost 100 GB to Xcode caches one afternoon.
Code written entirely by Claude Code.


License

MIT

Metadata

Release files for bloatr 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bloatr 0.2.0
File Size Uploaded Provenance Actions
bloatr-0.2.0.tar.gz 44.3 kB Without provenance Details for bloatr-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bloatr 0.2.0
File Interpreter ABI Platform Actions
bloatr-0.2.0-py3-none-any.whl Python 3 none any Details for bloatr-0.2.0-py3-none-any.whl

Total release size: 71.8 kB

Release files / bloatr-0.2.0.tar.gz

Download URL bloatr-0.2.0.tar.gz
Size 44.3 kB
Tags Source
SHA-256 checksum
How to use checksums
15427616c75c5a94bba6b8589b697c729885730a98643840f140208ea5bfb232
BLAKE2b-256 checksum
How to use checksums
3c9c2ac427381ce784c9f1c7affc7808bfec9daa336f59e41a3acfe844427afe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / bloatr-0.2.0-py3-none-any.whl

Download URL bloatr-0.2.0-py3-none-any.whl
Size 27.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cfa63dcc58f8f5c16ecfd5f0449470d7ec31143591a894de8c7e18d542a63900
BLAKE2b-256 checksum
How to use checksums
b9e51f31b2d74a2114ca5d34445f47f6cd5cbdb14c43d6cfb28daa1b783d4f1a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Security for bloatr 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page