PulseAugur
EN
LIVE 22:40:12

Keep AI code sessions running on MacBooks with lid closed

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 →

Keep AI code sessions running on MacBooks with lid closed

COVERAGE [1]

  1. dev.to — Claude Code tag TIER_1 English(EN) · Matyas Rathonyi ·

    How to keep Claude Code and Codex running when you close your MacBook lid

    <p>By default, closing a MacBook lid puts macOS to sleep and pauses local Claude Code and Codex sessions until you open it again. Cloud runs (Claude Code cloud, cloud Cowork tasks on Pro and Max plans, and Codex Cloud) execute on remote servers and keep going while your laptop sl…