Skip to main content

The cache cleaner for the AI Coding era. Clean up Claude Code, Cursor, npm, pip, cargo caches and more.

Project description

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

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

cc_cleaner-0.4.0.tar.gz (22.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cc_cleaner-0.4.0-py3-none-any.whl (38.9 kB view details)

Uploaded Python 3

File details

Details for the file cc_cleaner-0.4.0.tar.gz.

File metadata

  • Download URL: cc_cleaner-0.4.0.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

Hashes for cc_cleaner-0.4.0.tar.gz
Algorithm Hash digest
SHA256 396532f01c3b58bf7208ab54a19b13453f9fd370968973538ebb8900c0e851a2
MD5 be69cda218841ae03d675dc35ff7d068
BLAKE2b-256 d6f47e88c8e1e87f01fac79acfb1f00bcff79fcdd563df327681f9c5c33b4002

See more details on using hashes here.

File details

Details for the file cc_cleaner-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: cc_cleaner-0.4.0-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

Hashes for cc_cleaner-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0479b0167c2a5b1f17ff30e7385a49a819fa9ff8d38aeda05eea3e5eb633c69f
MD5 99dcfea446f7a1ed734b47e1ffb2af72
BLAKE2b-256 c24a9f9ef97933a00aded5164dd890069c88e49faf0b076e888d84a13bab200b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page