The cache cleaner for the AI Coding era. Clean up Claude Code, Cursor, npm, pip, cargo caches and more.
Project description
cc-cleaner
The cache cleaner for the AI Coding era.
cc = Claude Code / Cursor / Copilot / Coding Cache
In the AI Coding era, your disk fills up 10x faster—rapid project iteration, massive conversation logs, exploding package caches. cc-cleaner knows exactly what to clean.
Install
curl -sSL https://raw.githubusercontent.com/elexingyu/cc-cleaner/master/install.sh | bash
Other installation methods
pipx install cc-cleaner # pipx
uv tool install cc-cleaner # uv
pip install cc-cleaner # pip
Usage
cc-cleaner status # See what's eating your disk
cc-cleaner clean # Interactive mode (select what to clean)
cc-cleaner clean all # Clean all safe caches
cc-cleaner clean claude # Clean specific tool
cc-cleaner clean all -n # Dry run (preview only)
Interactive mode (just run cc-cleaner clean):
- Use ↑/↓ to navigate
- Space to toggle selection
sfor safe items only,afor all,nfor none- Enter to confirm,
qto cancel
Example output:
$ cc-cleaner status
Development Cache Status
┏━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━┓
┃ Cleaner ┃ Description ┃ Size ┃ Risk ┃
┡━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━┩
│ uv │ uv Python package cache │ 5.9 GB │ Safe │
│ npm │ npm package cache │ 1.2 GB │ Safe │
│ claude │ Claude Code logs & telemetry │ 299.6 MB │ Safe │
│ cargo │ Cargo registry cache │ 102.5 MB │ Safe │
└───────────┴──────────────────────────────┴──────────┴──────────┘
Total cleanable: 7.5 GB
Supported Cleaners (22 total)
| Category | Tools |
|---|---|
| AI Coding | Claude Code |
| AI/ML Models | huggingface, pytorch, whisper, ollama |
| JavaScript | npm, yarn, pnpm, bun, nvm |
| Python | pip, uv, virtualenv |
| Browser | browser-cache (Chrome/Safari/Firefox), playwright, browser-tools (Puppeteer/Selenium) |
| Others | cargo, go, gradle, cocoapods, homebrew, docker |
Risk Levels
| Level | Cleaned By Default | Examples |
|---|---|---|
| Safe | Yes | Download caches, logs, telemetry |
| Moderate | --force |
Conversation transcripts, shared stores |
| Dangerous | --force |
Docker system prune |
Contributing
PRs welcome for Cursor, GitHub Copilot, Windsurf, and other AI coding tools!
License
MIT
Project details
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 cc_cleaner-0.4.1.tar.gz.
File metadata
- Download URL: cc_cleaner-0.4.1.tar.gz
- Upload date:
- Size: 22.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.12 {"installer":{"name":"uv","version":"0.9.12"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ac8cef3030ed9e0238f34264ef0ead814183b5b487c46d3780be1942f979f4b
|
|
| MD5 |
7612fda5f890c58d9e2ef94226853354
|
|
| BLAKE2b-256 |
79247d6f5b7e00b47880612d2dad330e7de40769ff76ac8aee0f6d51d9c4561b
|
File details
Details for the file cc_cleaner-0.4.1-py3-none-any.whl.
File metadata
- Download URL: cc_cleaner-0.4.1-py3-none-any.whl
- Upload date:
- Size: 38.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.12 {"installer":{"name":"uv","version":"0.9.12"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31d5f307f911b19f4de2e9bdcf2294142e1ae7ef4023b027f84d2100c058414c
|
|
| MD5 |
14c17255e8dc9ce9cd489e877ab592b9
|
|
| BLAKE2b-256 |
234182d1eaebc1ea6d862268882c62755af6521c537bfdcbc41d45ec3af79f9c
|