Skip to main content

cc-cleaner

PyPI version Python 3.10+ License: MIT

English | 中文

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
  • s for safe items only, a for all, n for none
  • Enter to confirm, q to 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

Metadata

Release files for cc-cleaner 0.4.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 cc-cleaner 0.4.1
File Size Uploaded Provenance
cc_cleaner-0.4.1.tar.gz 22.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for cc-cleaner 0.4.1
File Interpreter ABI Platform
cc_cleaner-0.4.1-py3-none-any.whl Python 3 none any Details

Total release size: 61.4 kB

Release files / cc_cleaner-0.4.1.tar.gz

Download URL cc_cleaner-0.4.1.tar.gz
Size 22.4 kB
Tags Source
SHA-256 checksum
How to use checksums
8ac8cef3030ed9e0238f34264ef0ead814183b5b487c46d3780be1942f979f4b
BLAKE2b-256 checksum
How to use checksums
79247d6f5b7e00b47880612d2dad330e7de40769ff76ac8aee0f6d51d9c4561b
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / cc_cleaner-0.4.1-py3-none-any.whl

Download URL cc_cleaner-0.4.1-py3-none-any.whl
Size 38.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
31d5f307f911b19f4de2e9bdcf2294142e1ae7ef4023b027f84d2100c058414c
BLAKE2b-256 checksum
How to use checksums
234182d1eaebc1ea6d862268882c62755af6521c537bfdcbc41d45ec3af79f9c
Upload date
Uploaded using Trusted Publishing?
What is 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}

Security for cc-cleaner 0.4.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.

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.

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