Skip to main content

disksage

Get back the disk space your Mac's Storage screen hides, without breaking anything.

disksage finds what fills a developer's Mac: the same model downloaded by Ollama, LM Studio and Hugging Face, virtualenvs and node_modules from projects you haven't opened in months, and Xcode and Docker leftovers. It explains every item, deletes only caches that rebuild themselves, and sends your files to the Trash.

Install

Needs macOS and Python 3.10 or newer.

pipx install disksage

Or run it once without installing anything: uvx disksage. To install the latest code from GitHub: pipx install git+https://github.com/Ekaansh-Jain/disksage.git.

Use

Run disksage. It scans, shows what you can free grouped by what it costs you, and asks whether to clean now:

Free up to ≈1.7 GB on this Mac · 13.5 GB free now

    430.0 MB  nothing lost           3 caches that rebuild themselves
   ≈600.0 MB  nothing deleted        1 model stored by more than one app · disksage dedupe
    400.0 MB  rebuild if needed      2 folders in 2 projects untouched for 30+ days
    300.0 MB  re-download if needed  the local models themselves · disksage models

Biggest items
    300.0 MB  Ollama models             ~/.ollama/models
    260.0 MB  Python virtualenv         ~/Projects/ml-experiments/.venv · 9 months ago
    140.0 MB  Node modules              ~/Projects/old-react-app/node_modules · 9 months ago
    …

Review and clean now? [Y/n]

Press Enter for a checklist with the same groups. Only the things that cost you nothing to rebuild start ticked, and nothing changes until you type yes.

disksage            # scan, see what can be freed, then choose what to clean
disksage scan       # the same report without cleaning (--details lists every item)
disksage clean      # straight to the checklist; reuses a scan from the last 10 minutes
disksage models     # every local model, and which ones are stored by more than one app
disksage dedupe     # store duplicate models once, as APFS clones; every app keeps its file
disksage downloads  # tidy ~/Downloads: copies, installers you've used, files you forgot

Add --dry-run to see what clean or dedupe would do without changing anything, --rescan to make clean scan again, and --json to scan or models for scripts and agents.

What's different about it

  • Duplicate models across apps. Ollama, LM Studio and Hugging Face each keep their own copy of the same weights. disksage matches them (Ollama and Hugging Face name files by SHA-256, so most matches need no hashing) and dedupe turns the extra copies into APFS clones. Every app keeps a working file at the same path, and the bytes are stored once.
  • Numbers you can trust. Sizes are bytes on disk. Hard links are counted once, sparse files count only what they use, and iCloud placeholders are skipped (they free nothing, and reading them would download them). After clean or dedupe, the last line is the measured change in free space.
  • It explains what it finds. A built-in list covers known caches. Anything else can go to an optional AI (a cloud provider, or a local model through Ollama or LM Studio) that sees only paths and sizes. The AI can explain an item but can never mark it safe to delete.
  • A safety floor the AI can't override. Only your home folder. Never keychains, app containers, Mail, Messages, Photos and other libraries, iCloud Drive, cloud-sync folders, iPhone backups, credentials, or anything inside a macOS package. Folders with git-tracked files or unpushed commits are flagged and never pre-ticked. Project folders inside iCloud Drive are deleted directly, because moving them to the Trash can stall on iCloud, and anything else there is marked: removing it removes it from all your devices.
  • Your tools' own cleanup commands. Docker's disk image is invisible to a file scan, so disksage asks Docker for its own numbers and puts docker system prune in the checklist (unticked). It also lists commands like brew cleanup, uv cache prune, hf cache prune and xcrun simctl delete unavailable that free space while keeping what you still use.

Downloads

disksage downloads lists the loose files in ~/Downloads, with where each came from and when you last opened it, both from what macOS records:

346 loose files in ~/Downloads, 833.0 MB
    44.0 MB    31  Exact copies
   178.1 MB     3  Installers
   610.8 MB   312  Everything else
  31 folder(s) left alone: they may be projects or apps you unzipped.

Exact copies (the contents match a file that stays), installers for apps you already have, and downloads that never finished start ticked. Everything else is listed least recently used first, unticked, for you to pick. It all goes to the Trash.

How it decides

scan  ->  built-in list  ->  optional AI labels for the rest  ->  safety floor  ->  you choose
Tier Meaning In clean
SAFE Rebuilds itself (built-in list only) Ticked; deleted directly
DUPLICATE Identical to another file Unticked; goes to the Trash
REVIEW Reclaimable, but you'd re-download or rebuild it Unticked; goes to the Trash
KEEP Your data Never offered

Project folders such as node_modules, .venv and build are only ticked when the project hasn't been touched for 30 days, and they go to the Trash. Model caches are REVIEW: re-downloading them costs gigabytes, so use disksage dedupe or each app's own remove command instead.

AI labels (optional)

Run disksage setup and pick a provider: Groq or Google Gemini (free cloud APIs, paste a key once), a local model server (Ollama, LM Studio, llama.cpp, Jan, … are detected automatically), or none. Without an AI, unrecognized folders simply stay REVIEW. disksage doctor shows which provider is active.

Privacy

  • Scanning happens on your Mac. Nothing is uploaded unless you set up a cloud AI provider.
  • With a cloud provider, only folder paths (your home folder shown as ~) and sizes are sent, to the provider you picked. With a local model, nothing leaves your Mac.
  • Choose "No AI" in disksage setup, or add --no-ai, and nothing is sent anywhere, not even to a local model.
  • No telemetry.

When to use something else

  • For an all-in-one Mac cleaner with an app uninstaller and system maintenance, use Mole.
  • To clear only node_modules, npx npkill is quick.
  • To turn duplicates of all your files (photos, documents) into clones, look at Hyperspace.

disksage focuses on developer and local-AI clutter, and on explaining what it finds.

Contributing

The most useful contribution is teaching disksage a folder it doesn't recognize, which takes about five minutes: see CONTRIBUTING.md. If it ever offers to delete something it shouldn't, please report it privately (SECURITY.md).

License

MIT

Metadata

Release files for disksage 0.3.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 disksage 0.3.0
File Size Uploaded Provenance Actions
disksage-0.3.0.tar.gz 80.6 kB With provenance Details for disksage-0.3.0.tar.gz

Built distribution (wheel)

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

Total release size: 145.7 kB

Release files / disksage-0.3.0.tar.gz

Download URL disksage-0.3.0.tar.gz
Size 80.6 kB
Tags Source
SHA-256 checksum
How to use checksums
2ea35291e629f05a59f109cc3e22ba01c20f6039d44b72940222936d76fcde5b
BLAKE2b-256 checksum
How to use checksums
b11f76d60a58443656c97305da31fc6ff415ab4ab4d6aa3b1a6f4c4dba4704d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.

Transparency log

Release files / disksage-0.3.0-py3-none-any.whl

Download URL disksage-0.3.0-py3-none-any.whl
Size 65.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f789b9cd400da28bf25b467580389459d4ebcd27ef44510d449fd2e353f5b1b0
BLAKE2b-256 checksum
How to use checksums
6e4da0e913497640683752682e3b571424decadc83999a554f1656915c829bc9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.

Transparency log

Security for disksage 0.3.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for disksage-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.

Transparency log

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.3.0 This release

2 release files Full 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