[BUG] vm_bundles/claudevm.bundle consumes ~10 GB on macOS, destroying available disk space

Resolved 💬 1 comment Opened Apr 12, 2026 by jerstern Closed Apr 12, 2026

Summary

The Claude Code sandbox VM bundle (~/Library/Application Support/Claude/vm_bundles/claudevm.bundle) occupies 9.7 GB on disk. On a MacBook with limited SSD space this is catastrophic — it filled the drive to near-capacity and caused OS-level failures (ENOSPC errors in unrelated tools).

Environment

  • macOS Darwin 25.5.0
  • Claude Code (VSCode extension / desktop app)

Steps to reproduce

  1. Install Claude Code and use it for any session with sandboxed execution enabled
  2. Check ~/Library/Application Support/Claude/vm_bundles/

Observed

9.7G    /Users/.../Library/Application Support/Claude/vm_bundles/claudevm.bundle

Expected

A sandboxed VM image should not require ~10 GB. Comparable tools (Lima, OrbStack, Docker Desktop's base image) use 1–2 GB at most for a lightweight Linux VM.

Impact

  • Disk full — drove available space to near zero, causing unrelated tools to fail with ENOSPC
  • No warning — there is no UI indication that Claude Code is consuming this much space
  • No cleanup — the bundle persists even when sandbox is not actively in use

Suggestions

  1. Reduce the VM image size significantly
  2. Show a disk-usage warning during install or first run
  3. Provide a built-in cleanup command (claude sandbox purge or similar)
  4. Document the disk requirement prominently

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗