{"slug": "how-much-disk-space-claude-code-codex-and-cursor-use-on-a-mac", "title": "How much disk space Claude Code, Codex and Cursor use on a Mac", "summary": "A developer measured the disk footprint of Claude Code, Codex and the Claude desktop app on a 256 GB MacBook and found they consumed about 18 GB, roughly 7% of the drive, with most of it invisible in macOS Storage settings. Claude Code conversation transcripts alone accounted for 6.9 GB across 683 files, while Codex sessions, cached updates and runtimes added another 6.7 GB, and the developer noted that Claude Code's default 30-day transcript cleanup skips sessions started in the desktop app unless a separate desktopSessionCleanupPeriodDays setting is configured. Cursor users on the company's forum separately reported its local state.vscdb database growing to 188 GB in one case.", "body_md": "I use Claude Code, Codex and the Claude desktop app every day on a 256 GB MacBook. On 12 November I measured what they keep on the disk. It came to about 18 GB, a little over 7% of the drive, and apart from the ChatGPT app, Storage settings shows none of it under the tools' names.\n\n| What | Where | Size | \n|---|---|---|\n| Claude Code conversations (683 transcripts) | `~/.claude/projects` | 6.9 GB | \n| Codex sessions, archived sessions, images it made, plugins | `~/.codex` | 3.1 GB | \n| Codex updates it had already downloaded | `~/Library/Caches/com.openai.codex` | 2.0 GB | \n| Codex runtimes for running code | `~/.cache/codex-runtimes` | 1.6 GB | \n| Claude Code scratch folders | `/private/tmp/claude-501` | 1.1 GB | \n| Claude app web, code and GPU caches | `~/Library/Application Support/Claude` | 1.1 GB | \n| The ChatGPT app itself | `/Applications` | 1.9 GB | \n\nThe caches, updates, runtimes and scratch folders come to about 6 GB, and they come back by themselves. I cleared the Codex runtimes on 5 September. Ten days later they were back to 1.6 GB, and they're 1.6 GB again now. The scratch folders can get much bigger than this: on 11 September I cleared 9.1 GB of build trees that earlier Claude Code sessions had left in `/private/tmp`.\n\nThe histories come to about 10 GB, and they only grow. `~/.claude` was 1.7 GB on 1 October, 6.0 GB on 5 November and 7.0 GB on 12 November.\n\nCursor isn't installed on my Mac, so these are its users' own reports on the Cursor forum. In July one user found `~/Library/Application Support/Cursor` at [231.3 GB](https://forum.cursor.com/t/cursor-is-using-231-gb-on-my-mac-i-guess-ive-been-building-an-operating-system-without-knowing-it/165602), with a single file, `state.vscdb`, at 188.3 GB. In September another reported [about 125 GB](https://forum.cursor.com/t/cursor-storage-has-grown-to-125gb-on-my-mac-how-can-i-safely-reduce-it-without-losing-history-context/172127) on one long-running project. In March a third had [72 `.pack` files](https://forum.cursor.com/t/pack-eating-up-disk-space/154137) over 1 GB each.\n\n`state.vscdb` is Cursor's local database, where it keeps chat and agent history. Deleting it resets that history, so treat it as a record rather than a cache.\n\nClaude Code is meant to tidy its own transcripts. Its `cleanupPeriodDays` setting deletes them after 30 days by default. But its settings documentation also says it keeps the transcripts of sessions started or continued in the Claude desktop app at any age, unless a second setting, `desktopSessionCleanupPeriodDays`, gives them a limit too. I run Claude Code from the desktop app, and the Mac had 132 transcripts older than 30 days, 1.2 GB in all.\n\nTo keep a limit on both kinds, add this to `~/.claude/settings.json`:\n\n```\n{\n  \"cleanupPeriodDays\": 30,\n  \"desktopSessionCleanupPeriodDays\": 60\n}\n```\n\nA transcript then goes once it is older than both numbers. It goes without a message, and you can't resume that conversation afterwards, so copy `~/.claude/projects` somewhere first if you want a record. The second setting needs Claude Code 2.1.248 or later.\n\nThese are the default locations:\n\n```\ndu -sh ~/Library/Application\\ Support/Claude/{Cache,Code\\ Cache,GPUCache} 2>/dev/null\ndu -sh ~/Library/Caches/com.openai.* ~/Library/Caches/com.anthropic.* 2>/dev/null\ndu -sh ~/.cache/* ~/.codex ~/.claude ~/.ollama 2>/dev/null\ndu -sh ~/Library/Application\\ Support/Cursor ~/.cursor 2>/dev/null\ndu -sh /private/tmp/claude-* 2>/dev/null\n```\n\n`~/.claude`, `~/.codex`, Cursor's `state.vscdb`): Only on purpose. Move it to the Trash rather than deleting it outright, so it can come back.`~/.ollama`: Only the ones you're finished with, and with the tool's own remove command where it has one.\nI make Atzuno Safe Data Cleaner (formerly RefreshYourMac), a Mac cleaner that rates everything on the disk by what cleaning it would cost. Its AI tools section rates Codex updates and runtimes safe to remove, sends Claude's desktop caches and Claude Code's scratch folders to review, and never touches the histories automatically. That section is in the download from [atzuno.com](https://www.atzuno.com/ai-tool-data-on-mac/). The Mac App Store edition is sandboxed and can't reach these folders. It's $14.99 a year with the first 7 days free, or $24.99 once. The full write-up, with 51 days of the app's own cleanup log, is [on atzuno.com](https://www.atzuno.com/blog/ai-tools-mac-storage-51-days/).", "url": "https://wpnews.pro/news/how-much-disk-space-claude-code-codex-and-cursor-use-on-a-mac", "canonical_source": "https://dev.to/mactifosi/how-much-disk-space-claude-code-codex-and-cursor-use-on-a-mac-gjj", "published_at": "2026-11-28 22:31:00+00:00", "updated_at": "2026-11-28 22:44:18.296166+00:00", "lang": "en", "topics": ["ai-tools", "developer-tools", "ai-agents", "ai-products"], "entities": ["Claude Code", "Codex", "Cursor", "Anthropic", "OpenAI", "Atzuno Safe Data Cleaner", "ChatGPT"], "also_reported_by": [], "takeaway": "Claude Code, Codex and the Claude desktop app kept about 18 GB on a 256 GB Mac, with 6.9 GB of Claude Code transcripts in ~/.claude/projects and roughly 6 GB of self-regenerating Codex caches, runtimes and scratch folders.", "recommendation": {"advice": "Audit ~/.claude, ~/.codex, ~/Library/Caches and /private/tmp/claude-* with du, and set both cleanupPeriodDays and desktopSessionCleanupPeriodDays in ~/.claude/settings.json to bound transcript growth.", "playbook": "production-ops", "playbook_url": "https://wpnews.pro/playbooks/production-ops"}, "alternates": {"html": "https://wpnews.pro/news/how-much-disk-space-claude-code-codex-and-cursor-use-on-a-mac", "markdown": "https://wpnews.pro/news/how-much-disk-space-claude-code-codex-and-cursor-use-on-a-mac.md", "text": "https://wpnews.pro/news/how-much-disk-space-claude-code-codex-and-cursor-use-on-a-mac.txt", "jsonld": "https://wpnews.pro/news/how-much-disk-space-claude-code-codex-and-cursor-use-on-a-mac.jsonld"}}