Settings

awake needs no setup. Environment variables change how long it holds and what, in your shell or under env in Claude Code's settings.json.

Variables

VariableDefault
AWAKE_SECONDS900how long the computer stays awake after the last activity
AWAKEonoff turns it off
AWAKE_CAFFEINATE_FLAGS-dimsmacOS: what caffeinate holds; -ims lets the display sleep
AWAKE_INHIBIT_WHATidle:sleepLinux: what systemd-inhibit holds
AWAKE_DIRlocalix-awake-<user> in $XDG_RUNTIME_DIR or the temp folderthe shared state and awake.log

How it holds

One small process per user, the keeper, holds the computer awake while it runs:

SystemHold
macOScaffeinate -dims -w <keeper>
Linuxsystemd-inhibit --what=idle:sleep, around a wait for the keeper

All your agents share it, so ten sessions in three clients start one background process. The keeper sleeps on one timer until 15 minutes after the last activity. When it wakes, it checks the time again. If the agent did something meanwhile, it sleeps until the new end; if not, it exits and the hold ends with it. A killed keeper takes its hold along, and the next tool call starts a new one.