AI tools · free up space

The hidden data AI tools leave on your Mac

More than most people expect, and almost none of it where Finder looks. The apps are small; their data is not. Claude Code's conversation history on the Mac this app was built on reached 6 GB in five weeks, and Cursor users have reported its local database at well over 100 GB. Caches, runtimes and build output can go. Chat history and downloaded models are a different decision.

At a glance: what each AI tool leaves behind

ToolWhat it leavesMeasuredComes back?
Claude CodeBuild trees from old sessions in /private/tmp9.1 GBWith every session
Claude (desktop)Web, code and GPU caches, updater downloads4.5 GB, then 0.99 GB againYes, within weeks
CodexDownloaded updates1.8–1.9 GBWith each update
CodexRuntimes in ~/.cache/codex-runtimes1.6 GBYes, in 10 days
CodexHistory in ~/.codex3.0 GB on 5 Nov, from 1.6 GBOnly grows
Claude CodeHistory and settings in ~/.claude, nearly all of it conversations6.0 GB on 5 Nov, from 1.73 GB on 1 OctOnly grows
Cursor*Local database state.vscdb, chat and agent history188 GB in a 231 GB Cursor folderOnly grows
Cursor*Snapshot .pack files72 over 1 GB eachKeeps adding
ChatGPTThe app itself, unused1.4 GBNo, once uninstalled

One MacBook, September to November 2026. *Cursor isn't installed on it: those two rows are its users' own reports on the Cursor forum (March and July 2026), below. Caches, updates and runtimes are safe to delete; history is a record, not a cache, and is a decision of its own.

Why it builds up so fast

A chat app looks small in Applications, but it is a web browser underneath, with a web cache, a code cache and a GPU cache of its own, plus every update it has downloaded. Coding agents go further: they compile and run code to check their work, in scratch folders outside your project, and nothing tidies those folders up when the session ends. Local models add the largest files of all.

Measured on the Mac this app was built on, in September 2026:

  • 9.1 GB of abandoned build trees from earlier Claude Code sessions, cleared on 11 September — the single largest item ever reclaimed on that machine.
  • 4.5 GB in the Claude desktop app's caches on 5 September, 3.7 GB of it simulator builds and 0.8 GB updater downloads.
  • 1.8–1.9 GB of downloaded Codex updates, cleared on 5 and 11 September.
  • 1.6 GB of Codex runtimes cleared on 5 September — and back to 1.6 GB by the 15th.
  • 1.4 GB for the ChatGPT app itself, flagged as not opened recently.

That last-but-one line is the pattern: this data regrows, so clearing it once is not the end of it.

Making things with these tools costs more again: what a narrated YouTube series and an audiobook made with Codex left on the same Mac, render by render.

Measured again, 1 October 2026

The same Mac, read again to see what had come back:

  • Codex runtimes: 1.56 GB — the size it was before the 5 September clear, as it was again on the 15th. Whatever is removed is downloaded again the next time the tool runs code.
  • Codex history: 2.94 GB, up from 1.6 GB on 5 September. Nearly double in under four weeks, and none of it is cache.
  • Claude Code history and settings: 1.73 GB in ~/.claude.
  • Claude desktop caches: 0.99 GB, regrowing after the 4.5 GB clear.

And on 5 November: Claude Code's ~/.claude had reached 6.0 GB, nearly all of it conversations in ~/.claude/projects, three and a half times the 1 October figure in five weeks. Codex's history was 3.0 GB.

So the caches refill within days and the histories grow without limit. The two need different handling: the first a regular clean, the second a decision about how much history you want to keep, and a copy elsewhere before you trim it.

Cursor: the biggest numbers belong to its users

Cursor isn't installed on the Mac these measurements come from, so these are its users' own reports on the Cursor community forum. In July 2026 one user ran OmniDiskSweeper and found~/Library/Application Support/Cursor at 231.3 GB, with 222.2 GB inUser/globalStorage and a single file, state.vscdb, at 188.3 GB. In September another reported about 125 GB on one long-running project. In March a third had 72 .pack files over 1 GB each, and 306 more between 500 MB and 1 GB.

state.vscdb is Cursor's local database, where it keeps chat and agent history, so it is a record rather than a cache: deleting it resets that history. Quit Cursor and copy it somewhere else before you trim anything, the way you would with ~/.codex or ~/.claude.

Where to look

These are the default locations. Size them before deciding anything:

du -sh ~/Library/Application\ Support/Claude/{Cache,Code\ Cache,GPUCache} 2>/dev/null
du -sh ~/Library/Caches/com.openai.* ~/Library/Caches/com.anthropic.* 2>/dev/null
du -sh ~/.cache/* ~/.codex ~/.claude ~/.ollama 2>/dev/null
du -sh ~/Library/Application\ Support/Cursor ~/.cursor 2>/dev/null
du -sh /private/tmp/claude-* 2>/dev/null
  • App caches — the Cache, Code Cache and GPUCache folders inside an AI app's Application Support folder, and its folder in ~/Library/Caches. Web cache and update downloads.
  • Coding agent scratch space — Claude Code works in /private/tmp/claude- followed by your user number. Mostly build output, but not always: an agent can leave a file there that exists nowhere else.
  • Runtimes — Codex keeps the runtimes it downloads to run code in ~/.cache/codex-runtimes.
  • History and settings — ~/.codex and ~/.claude hold sessions, transcripts and plugins. Cursor keeps its history in state.vscdb under ~/Library/Application Support/Cursor/User/globalStorage.
  • Local models — tools that run models on your Mac, such as Ollama, keep them in folders like ~/.ollama, and many tools cache downloaded models under ~/.cache.

What is safe to delete

  • Caches and update downloads: yes. Quit the app first. Conversations stored in your account are on the provider's servers, not in these folders.
  • Runtimes: yes, at the cost of a re-download the next time the tool needs one.
  • Old agent scratch folders: usually. Skip anything touched in the last hour, which may belong to a session still running, and glance inside before deleting the rest.
  • History: only on purpose. ~/.codex, ~/.claude and Cursor's state.vscdb are records, not caches. Move them to the Trash rather than deleting outright, so they can come back.
  • Models: only ones you are finished with. They are not corrupted by deleting, but they can be many gigabytes to download again. Use the tool's own remove command where it has one.
  • The app you stopped using: uninstall it. That takes its support folder with it, which dragging it to the Trash does not.

Where the app comes in

RefreshYourMac has a section for AI tools. Codex updates and runtimes are rated Safe for auto removal; Claude desktop caches and Claude Code scratch folders are rated Review, with any item that may not be regenerable marked and recently used folders left alone; Codex history is rated Backup recommended and goes to the Trash, not oblivion. Apps you have not opened for a while show up in Unused Applications, largest first. It is all measured before anything is offered, and the same scan covers caches and the rest of System Data.

What to do next: see these numbers for your own Mac. Download Atzu Safe Data Cleaner free, or get it on the Mac App Store.

What it costs to have an app do this

Atzu Safe Data CleanerCleanMyMacMacKeeper
Pay once$24.99€119.95 on MacPaw’s store; $89.99 for CleanMyMac X on the Mac App Storesubscription only
Yearly$14.99 a year, first 7 days free$39.99/yr on the Mac App Store; €39.95/yr on MacPaw’s store€71.40 for the first year, 1 Mac. Their page shows it against a €119.40 list price
Monthly$1.99 a month$9.99/mo€10.95/mo
Account neededNoYesYes

Both versions' yearly plans start with 7 days free. CleanMyMac and MacKeeper prices read from their own pages and the Mac App Store on 27 October 2026; the full comparison is at Atzu Safe Data Cleaner vs CleanMyMac and MacKeeper.

Frequently asked questions

Where does Claude Code keep its temporary files on a Mac?

Claude Code works in /private/tmp/claude- followed by your user number. It is mostly build output, but not always: an agent can leave a file there that exists nowhere else. Skip anything touched in the last hour, which may belong to a session still running, and glance inside the rest before deleting.

Is it safe to delete ChatGPT or Claude app caches on a Mac?

Caches and update downloads are safe to delete once the app is quit. Conversations stored in your account are on the provider’s servers, not in these folders, so clearing the Cache, Code Cache and GPUCache folders does not remove them.

Why do AI tool caches come back after I delete them?

This data regrows. On the Mac the guide was measured on, Codex runtimes cleared on 5 September were back to 1.6 GB by the 15th, because whatever is removed is downloaded again the next time the tool runs code. Caches refill within days, while histories grow without limit.

Should I delete ~/.codex and ~/.claude to free up space?

Only on purpose. Those folders hold sessions, transcripts and plugins: they are records, not caches. Decide how much history you want to keep, put a copy elsewhere first, and move them to the Trash rather than deleting outright, so they can come back.