This article provides a guide on how to keep AI applications like Claude Code and Codex running on a MacBook even when the lid is closed. While cloud-based sessions continue uninterrupted, local command-line and desktop sessions pause when the laptop enters sleep mode. The author discusses several methods to prevent this, ranging from system commands like `sudo pmset -a disablesleep 1` to third-party applications such as Clamshell, which is presented as a paid solution for newer MacBooks. AI
IMPACT Enables continuous local AI model execution on laptops, improving developer workflow.
RANK_REASON Article describes a utility/app for managing existing software.
Read on dev.to — Claude Code tag →
AI-generated summary · Google Gemini · from 1 sources. How we write summaries →