Awake with the lid closed
Turn it on from the menu bar. Your MacBook stays awake when you close it, so builds, downloads and remote sessions keep going. The icon shows the current state.
ondo / STAY AWAKE, STAY COOL
Keep builds and downloads running with your MacBook closed. ondo watches temperature and power, and when things get risky it stops keeping the Mac awake and puts it to sleep.
$ brew install --cask su-record/tap/ondo
v0.1.0 · Free · Open source (MIT) · Apple Silicon · macOS 13 or later
Turn it on from the menu bar. Your MacBook stays awake when you close it, so builds, downloads and remote sessions keep going. The icon shows the current state.
Set when to stop, such as in 1 h 30 min or at 07:30. When the time comes, ondo stops keeping the Mac awake and, if the lid is closed, puts it to sleep.
See CPU temperature in the menu. If a Mac’s sensors can’t be read, ondo says so and the other features keep working.
When the temperature stays above your limit (85°C by default), ondo alerts you and shows the three processes using the most CPU. If it doesn’t cool down, ondo stops keeping the Mac awake and puts it to sleep.
If the charger is unplugged or the battery drops below your limit (20% by default) while the Mac is kept awake, ondo puts it to sleep.
Turn off just the display from the menu while work continues.
The thermometer on the closed laptop in your menu bar shows CPU temperature. It is blue up to 40°C and moves through green, yellow and orange to red at the overheat limit (85°C by default). The mercury rises with it, so you can read it even if the colors are hard to tell apart. The temperature bar in the menu uses the same colors, and the laptop turns solid while ondo keeps the Mac awake.
After 60 seconds above the limit, ondo alerts you and shows which programs use the most CPU. If the Mac still doesn’t cool down, ondo stops keeping it awake and puts it to sleep.
After 60 seconds (by default) above the limit, ondo sends an alert and lists the three processes using the most CPU.
After another 60 seconds above the limit, ondo stops keeping the Mac awake. With the lid closed it sleeps right away; with the lid open you get an alert.
Quit, crash or restart: the sleep setting always returns to normal.
Beyond the menu, ondo takes requests three ways. Overheat and power protection apply to every one of them, and protection limits change only in the app’s settings.
Homebrew installs the ondo command with the app. For scripts it prints --json and returns exit codes: 0 ok, 2 app not reachable, 3 refused by protection.
$ ondo on --for 1h30m$ ondo status --json$ ondo wake --at 07:00
A built-in MCP server lets AI apps such as Claude Code, Claude desktop and Codex use ondo as a tool. Ask “keep the Mac awake until the build finishes” and the agent turns it on, then off.
$ claude mcp add ondo -- ondo mcpTools an AI can use: ondo_status, ondo_on, ondo_off, ondo_temperature, ondo_display_off, ondo_schedule_wake
ondo:// links turn it on and off from Shortcuts, Raycast or Alfred with one click.
ondo://on?for=2hondo://offondo://wake?in=30m
Keeping a closed MacBook awake means changing a system setting that requires administrator rights (pmset disablesleep). After you allow it once in System Settings, a small helper turns that one setting on and off and does nothing else. ondo doesn’t ask for your password each time or edit the sudoers file.
Temperature and battery readings stay on your Mac. ondo has no account and sends no usage data or sensor readings anywhere.
The source code is on GitHub under the MIT license.
v0.1.0 · Free · Open source (MIT) · Apple Silicon · macOS 13 or later