WilliamLabs
Back to work

Awake

Keeps the Mac awake through a closed lid, so Claude Desktop can finish what it started.

Year

2026

Type

Desktop app

Status

open source

Stack

Swift, AppKit, SwiftUI, IOKit

The Awake window, showing status, lid and display assertions, and whether Claude Desktop is running.

Closing the lid is a hardware sleep request macOS will not let an app veto, so Awake works with the one lever that exists: it asks for the admin password once, through Apple's own authorisation dialog, and sets the SleepDisabled flag that keeps the machine running with the lid shut.

An optional mode installs a narrowly scoped sudoers entry, limited to two fixed pmset commands, so the password prompt does not have to happen again. There is no networking code in the binary at all, nothing is sent anywhere, and the whole thing compiles down to 403 KB.

It can follow Claude Desktop automatically, switching itself on when the app is running and off when it quits, and it puts the machine's normal sleep behaviour back the moment it is turned off.

Awake standing by in the menu bar, guard down.
The options panel, including the optional lid closed and follow Claude Desktop switches.
The Awake window in dark appearance.