Guides
Guides
Practical how-tos for keeping your Mac awake while your AI coding agents work — from lid-closed clamshell mode and the built-in caffeinate command to overnight runs, and working out what is holding your Mac awake in the first place.
Guide · Clamshell mode
Keep a MacBook awake, lid closed (clamshell mode)
Closing the lid sleeps a MacBook by default. What clamshell mode really needs, the risks of pmset and caffeinate, and how Perked keeps a Mac awake lid-closed.
Terminal guide
caffeinate: the macOS command to keep your Mac awake
A practical guide to the built-in macOS caffeinate command: every flag explained, copyable Terminal examples, and when a menu-bar app is the better tool.
Guide · Overnight agent runs
Run AI coding agents overnight on a Mac without sleep
A long Claude Code or Codex run before bed, and macOS sleep kills it. The power settings that matter, using tmux, and how Perked keeps your Mac awake overnight.
Guide
What is keeping your Mac awake?
Find out exactly what is stopping your Mac from sleeping — power assertions, pmset -g assertions, and the pmset log that answers what woke it at 3am.
Guide
A safer alternative to pmset disablesleep
What sudo pmset -a disablesleep 1 really does, why it is a bad default, how to undo it — and what a scoped, self-clearing version looks like instead.