Automatic
Codex, Claude Code, OpenCode, and twelve more agent harnesses are recognised locally. Quiet network waits stay covered.
Sleep Switch Sleep Switch keeps your Mac awake while Codex, Claude Code, OpenCode, and other coding agents run. When the last session ends, macOS takes sleep control back.
macOS 13 or newer · Apple silicon and Intel
Automatic tracking is on from the start. Sleep Switch checks local activity every ten seconds and holds a temporary native macOS power assertion only while work is running.
Codex, Claude Code, OpenCode, and twelve more agent harnesses are recognised locally. Quiet network waits stay covered.
Start a Caffeine-style session indefinitely or choose a duration. The display can sleep while the Mac keeps working.
Put the display to sleep now, or wake it once all running agent sessions have finished.
Sleep Switch has no accounts, analytics, network service, or privileged background helper. It is free and available under the MIT licence.