Close the lid.

KeepGoing keeps a Mac awake and online for Claude Code and Codex — reachable from your phone with the lid shut.

Try it

MacBook with lid open, terminal running tests MacBook with lid closed, still running
Lid closed, on battery SleepDisabled 1 — still running

What it does

Watches your agents.

Override lid-closed sleep?

InstallCancel
Asks for your password once.
Rejoins Wi-Fi or your hotspot.
  1. Download, drag to Applications.
  2. Not notarised yet.
    xattr -d com.apple.quarantine /Applications/KeepGoing.app
  3. Click Keep awake with lid closed.
$ ioreg -r -k AppleClamshellState -d 4 | grep State
"AppleClamshellState" = Yes        # lid closed
$ pmset -g | grep SleepDisabled
SleepDisabled 1                    # still running, on battery

macOS 26, on battery — replied via Claude Code from a phone.

Hot in a bag?

Warm under load; keep it on a surface, plug in if you can.

Battery?

2–5 h awake; it re-enables sleep 5 min after agents stop.

My keys / code?

Never touched; it only watches process names, power, and network.

Why a password?

Only root can override lid sleep; the rule allows two pmset commands and nothing else.

Free, MIT. If it saved your trip, buy me a coffee.