Guides
Straight answers about Macs, sleep and AI agents.
Each one is tested on a real Mac or sourced from the vendor's own docs and issue trackers.
- 01
Can I close my MacBook while Claude Code or Codex is running?
What happens when you shut the lid mid-task, why caffeinate can't stop it, the free options that work, and what lid mode adds for running with the lid closed.
Updated 5 November 2026 - 02
What does “API Error: Your computer went to sleep mid-response” mean in Claude Code?
Claude Code's sleep errors explained, in their exact wording. What each one means, how to pick up where Claude stopped, and how to keep it from happening again.
Updated 5 November 2026 - 03
Does Claude Code stop your Mac from sleeping?
The terminal CLI, the VS Code extension and the desktop app each handle Mac sleep differently. What each one does, what we measured, and how to fill the gaps.
Updated 5 November 2026
Skip the workarounds.
Night Crew keeps your Mac awake exactly as long as your agents work.
macOS 14+ · Apple silicon · signed and notarized by Apple