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
| Variable | Default | |
|---|---|---|
AWAKE_SECONDS | 900 | how long the computer stays awake after the last activity |
AWAKE | on | off turns it off |
AWAKE_CAFFEINATE_FLAGS | -dims | macOS: what caffeinate holds; -ims lets the display sleep |
AWAKE_INHIBIT_WHAT | idle:sleep | Linux: what systemd-inhibit holds |
AWAKE_DIR | localix-awake-<user> in $XDG_RUNTIME_DIR or the temp folder | the shared state and awake.log |
How it holds
One small process per user, the keeper, holds the computer awake while it runs:
| System | Hold |
|---|---|
| macOS | caffeinate -dims -w <keeper> |
| Linux | systemd-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.