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

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.
  • 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.

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.2.1

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.2.1
File Size Uploaded Provenance Actions
disksage-0.2.1.tar.gz 70.5 kB With provenance Details for disksage-0.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 127.1 kB

Release files / disksage-0.2.1.tar.gz

Download URL disksage-0.2.1.tar.gz
Size 70.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2da32254179f784a8468bc6feda954aec91d66aa5e22a38291096cc6a931c5bd
BLAKE2b-256 checksum
How to use checksums
bba8602b79a22cfda9edbbd0d2357f70bce87e680311fd69816bfef6366ff7a1
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.2.1-py3-none-any.whl

Download URL disksage-0.2.1-py3-none-any.whl
Size 56.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d59ad0f243ac30e01496afd75ff52ecbcae7a8c93d874cf3a59c10bfea5770db
BLAKE2b-256 checksum
How to use checksums
3ef67c2826ada8f80379bb95f9ee34e0c844b412706ad307eab1c079dea6702d
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.2.1

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.2.1.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.2.1 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