XNews

ClamDown Menu Bar App Keeps Coding Agents Running on MacBook With Lid Closed

ClamDown Menu Bar App Keeps Coding Agents Running on MacBook With Lid Closed

ClamDown, a free open-source macOS menu bar app, keeps coding agents, terminals and downloads running on a MacBook with the lid closed by preventing sleep and locking the screen. It controls fans by CPU temperature, running at minimum speed below 60°C and full speed at 85°C, and switches off to restore normal sleep when battery reaches 10%, the machine overheats or a timer ends. A background helper restores sleep, low-power mode and fan settings if the app crashes or exits, and the Apple-notarized installer supports macOS 13 and later.

Event version 1.

Key insights

Closed-lid operation

ClamDown keeps a MacBook awake with the lid shut so agents, terminals, browsers, SSH sessions and downloads continue running. It locks the screen the moment the lid closes.

Temperature-based fan control

The app watches CPU temperature and drives the fans along a curve while the lid is closed, where macOS would leave them near idle. By default it runs at minimum speed below 60°C and full speed at 85°C.

Automatic cut-offs

ClamDown turns itself off and lets the Mac sleep normally when battery drops to 10%, the machine overheats or a timer ends, sending a notification with the reason.

Crash recovery

If the app crashes or exits, a background helper that receives no heartbeat for about 90 seconds restores sleep, low-power mode and fan settings to their original state.

Availability and licensing

ClamDown is free and open source under the Apache-2.0 license, the installer is notarized by Apple, and it supports macOS 13 and above.

Source posts