CleanAI
Clean your code with AI
BETA — EXPECT BREAKAGE
CleanAI is still in beta — expect the extension to break.
Contact: team@beloyal.app
|
🌐 Website • 🚀 Get Started Free
🪄 What is CleanAI?
CleanAI finds and removes dead code from your projects — unused functions, stale imports, deprecated exports — so you can ship cleaner, faster code.
Works with: VS Code, Cursor, and any VS Code-based editor.
💀 The Problem
Every codebase accumulates dead weight:
- Functions nobody calls anymore
- Imports that do nothing
- Code that "might be needed later" (it won't)
- Legacy utils everyone's afraid to delete
This slows your builds, confuses your team, and makes refactoring terrifying.
✅ The Solution
CleanAI scans your entire workspace and tells you exactly what's safe to delete.
One click → Clean code.
✨ Features
| Feature |
Description |
| 🔍 Dead Code Detection |
Find unused functions, variables, imports, and exports |
| 🌍 Multi-Language |
TypeScript, JavaScript, Python, Swift |
| ⚡ Instant Scanning |
Analyze thousands of files in seconds |
| 🧰 Tool-backed |
Uses best-in-class analyzers per language (Periphery, Vulture, Pylint, ESLint, ts-prune, depcheck) |
| 🤖 AI Chat |
Ask questions about your workspace (proxied via cleanai.pro) |
| 🎯 Zero Config |
Works out of the box, no setup required |
| 🟣 Explorer Badges |
Purple U badges in the Explorer for files with unused-code findings |
| 🗂️ Clean AI Explorer |
A workspace file explorer inside the Clean AI sidebar, with the same purple U badges |
📥 Installation
VS Code / Cursor
- Open the Extensions panel (
Cmd+Shift+X)
- Search for
CleanAI
- Click Install


💡 Tip: If you don't see it right away, scroll down in the results — we're there!
Command Line
code --install-extension cleanai.cleanai
📊 How It Works

| Step |
Action |
| 1 |
Install CleanAI from the Extensions panel |
| 2 |
Click the CleanAI icon in the sidebar |
| 3 |
Sign in with GitHub |
| 4 |
Press Analyze Project or Cmd+Shift+A |
| 5 |
Review and delete the dead code |
💡 Tip: After you finish GitHub sign-in in your browser, return to VS Code / Cursor — you’ll see a “Signed in as …” notification.
That's it. No configuration, no complex setup.
💰 Pricing
|
Free |
Pro |
Enterprise |
| Scans/month |
5 |
Unlimited |
Unlimited |
| All languages |
✅ |
✅ |
✅ |
| AI analysis |
✅ |
✅ |
✅ |
| Priority support |
— |
✅ |
✅ |
| Team dashboard |
— |
— |
✅ |
| SSO/SAML |
— |
— |
✅ |
| Custom integrations |
— |
— |
✅ |
| Price |
Free |
$20/mo |
Contact us |
→ Start Free • → Go Pro • → Enterprise
⌨️ Keyboard Shortcuts
| Shortcut |
Action |
Cmd/Ctrl + Shift + A |
Analyze Workspace |
Cmd/Ctrl + Shift + C |
Open CleanAI Panel |
🎯 Perfect For
- Growing startups — Keep velocity high as code scales
- Legacy codebases — Finally clean up years of tech debt
- Pre-release audits — Ship smaller bundles
- Engineering teams — Maintain code quality standards
🔒 Privacy & Security
- All analysis happens locally (tool-backed)
- Your code does not get uploaded as part of analysis
- AI chat requests are proxied via
cleanai.pro (do not paste secrets)
- We only track scan counts, not code content
- SOC 2 compliance (Enterprise)
⚙️ Settings
cleanai.explorerDecorations.enabled (default: true): Toggle purple U badges in the Explorer for files with unused-code findings.
cleanai.cursorExplorer.gitUntrackedColorFix.enabled (default: true): Cursor-only: restore Git “untracked” Explorer color to green to avoid conflicting with CleanAI purple.
- VS Code / Cursor global settings that can hide all file badges/colors:
explorer.decorations.badges
explorer.decorations.colors
🧩 Swift / iOS notes (Periphery)
Periphery is the source of truth for Swift dead-code detection, but like any static analyzer it can report false positives for runtime / Interface Builder entrypoints (for example: AppDelegate, storyboard/XIB-instantiated view controllers).
If a file is intentionally kept:
- Ignore it in CleanAI: In the findings list, click Ignore (this writes to
.cleanaiignore).
- Or configure Periphery:
- Use Periphery comment commands (e.g.
// periphery:ignore:all)
- Or retain file declarations via
--retain-file <glob>
- Or prefer a
.periphery.yml/.periphery.yaml config if you already use Periphery in your project
If you selected the wrong Xcode scheme/workspace/project, run:
CleanAI: Reset Swift Periphery Configuration (then re-run Analyze to pick again)
🤝 Support
Stop maintaining dead code. Start shipping faster.
Get CleanAI →