Copilot data is split across CLI home folders, native App Support, system caches, and IDE globalStorage extension IDs (including legacy Chat/Nightly IDs). Measure folders on your own Mac — sizes vary by workload and host editor.
Clear regenerable caches and logs only. Settings, MCP secrets, agents, skills, and session state should stay unless you are intentionally resetting Copilot.
Why Copilot cache grows
- SDK and CLI caches — downloaded artifacts under
~/Library/Caches. - Native app Electron caches — asset and code caches for the GitHub Copilot desktop shell.
- IDE extension caches —
cache,logs, andtmpundergithub.copilot*globalStorage (not the whole extension root). - CLI logs —
~/.copilot/logsthat rarely prune themselves.
GitHub Copilot path table (macOS)
| Path | Typical contents | Safe to clear? |
|---|---|---|
~/Library/Caches/copilot | CLI / runtime cache | Yes |
~/Library/Caches/github-copilot-sdk | SDK downloads | Yes |
~/.copilot/logs/ | CLI logs | Yes |
~/Library/Application Support/com.github.githubapp/ Electron caches | Native app cache | Yes |
…/globalStorage/github.copilot*/cache|logs|tmp | IDE extension regenerable data | Yes |
~/.copilot/settings.json / config.json | Preferences | Keep |
~/.copilot/session-state/, session-store.db | CLI sessions | Keep (confirm if removing) |
~/.copilot/mcp-*, agents/, skills/ | Auth / MCP / skills | Keep |
Quit Copilot and host editors before deleting. Prefer Trash over permanent erase. Layouts can change between Copilot CLI and extension versions.
Step-by-step: manual Copilot cache cleanup
- Quit Copilot and host IDEs — VS Code, Cursor, JetBrains hosts, and the GitHub Copilot app.
- Open Finder Go to Folder — paste
~/Library/Cachesand reviewcopilot/github-copilot-sdk. - Review
~/.copilot/logs— move log trees to Trash; leavesettings.jsonand MCP/session folders alone. - Optional: native App Support caches — under
com.github.githubapp, remove Electron-styleCache/Code Cachefolders only. - Relaunch Copilot — expect a short warm-up while caches rebuild.
FAQ
Is it safe to clear GitHub Copilot cache on Mac?
Yes for regenerable caches and logs. Keep settings, MCP secrets, agents, skills, and session-state unless you intend a full reset.
Where is GitHub Copilot cache stored on macOS?
Start with ~/Library/Caches/copilot, github-copilot-sdk, ~/.copilot/logs, native App Support caches, and IDE globalStorage/github.copilot* cache subfolders.
Will clearing Copilot cache delete my chat history?
Not if you only remove regenerable caches. CLI sessions under session-state stay protected by default in AI Agent Clean.
Automated cleanup with AI Agent Clean
As of v1.0.1, the AI Agent Cleaner module groups GitHub Copilot caches, logs, IDE extension caches, and sessions separately — regenerable items are selected by default; sessions need confirmation.
- Open AI Agent Clean (or Smart Scan).
- Expand the GitHub Copilot group and review sizes.
- Leave sessions and protected paths unchecked.
- Clean — selected items move to Trash by default.
Scanning stays free; cleanup after the 7-day trial needs a subscription. See pricing.
- Do not wipe all of
~/.copilotas “cache”. - Do not delete MCP oauth/secrets folders unless you plan to re-auth.
- Prefer Trash so you can restore if login or CLI state looks wrong.
Related guides and features
- AI Agent Cleaner — product page
- What’s New in 1.0.1
- Clear Windsurf cache on Mac
- Clear Gemini CLI cache on Mac
- Clear Cursor cache on Mac
- Pricing & trial
Preview Copilot cache sizes locally — no cloud upload.
Try free for 7 days