aiclean
Scan and safely clean local caches left behind by AI coding tools — Claude Code, Cursor, VSCode, Ollama, npm/pnpm/yarn, uv/pip, HuggingFace, PyTorch, Playwright, Hermes, and more.
AI dev tools are notorious for quietly eating disk space: Ollama models,
Claude Code project logs, HuggingFace model caches, browser binaries for
test automation... it adds up to tens of gigabytes without anyone noticing.
aiclean finds it, shows you exactly where it is, and only deletes what
you explicitly confirm.
Install
pip install aiclean
# or run without installing:
pipx run aiclean
Usage
# Scan only (read-only, safe to run anytime)
aiclean
# See all known cache locations this tool checks
aiclean --list
# Preview what would be deleted (no changes made)
aiclean --clean --dry-run
# Interactively confirm each cache before deleting
aiclean --clean
# Clean specific targets without prompts (careful!)
aiclean --clean --only ollama-models npm-cache --yes
Example output
SIZE NAME PATH
----------------------------------------------------------------------
12.4GB ollama-models /Users/you/.ollama/models
3.1GB claude-code-projects /Users/you/.claude/projects
1.8GB huggingface-cache /Users/you/.cache/huggingface
420.0MB npm-cache /Users/you/.npm
180.2MB uv-cache /Users/you/.cache/uv
----------------------------------------------------------------------
17.9GB TOTAL (5 caches found)
Run with --clean to interactively remove caches (add --dry-run to preview safely).
Safety
- Scan mode never touches the filesystem — it only computes sizes.
--cleanwithout--yesasks per-target before deleting anything.--dry-runcombined with--cleanshows exactly what would be removed, with zero deletions.- Targets are well-known, documented cache directories only — aiclean never does a generic recursive delete of arbitrary paths.
What it scans for
Run aiclean --list for the full, current list. Broadly: editor/IDE
caches (Cursor, VSCode), AI coding agent caches (Claude Code, Hermes),
local model caches (Ollama, HuggingFace, PyTorch Hub), and package manager
caches (npm, pnpm, yarn, uv, pip) — since these are the biggest and most
overlooked space users of an AI-assisted dev setup.
Contributing
Issues and PRs welcome — especially "please add support for X cache location" requests, since that's exactly the kind of real-world signal this project is looking for.
License
MIT
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aiclean-0.1.0.tar.gz.
File metadata
- Download URL: aiclean-0.1.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32d04edea0df50b2588117f1a3fb2ad563d0ba228339fe7e2739cf6c88cc58bc
|
|
| MD5 |
ea77a224b578d7bd559a6d15fc6fcb3e
|
|
| BLAKE2b-256 |
e9559a1f2219b467a21bb6302eade287a00576a318615c4fced9e7a14b9a536e
|
File details
Details for the file aiclean-0.1.0-py3-none-any.whl.
File metadata
- Download URL: aiclean-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a381721d816455bbacb863755e140724d6d4135b922b5b1358b085905a2d868a
|
|
| MD5 |
291b435856117e2c18dfa7873cd3035c
|
|
| BLAKE2b-256 |
d1aaca7cfd5a7219595bd8aadbe0afcbfe8cfebe6d98817adf2498a451950540
|