Keep your Mac awake from the menu bar

Free for 7 days, then $4.99 once. macOS 14 Sonoma or later.

How Keep Awake works

Keep Awake is a tile on the Switchy panel, and it's there by default. It has two click targets:

While a timed session runs, the tile shows the duration and when it ends, for example "3 hours · until 4:30 PM". When the time is up, Keep Awake turns itself off and your normal sleep settings take over again. You can also record a keyboard shortcut for it in Settings → Shortcuts and flip it from any app.

If you quit Switchy or restart your Mac with a session still running, Switchy remembers it. The next time it launches, it picks up where it left off, as long as the end time hasn't passed.

Display sleep, system sleep and the lid

Keep Awake uses a standard macOS power assertion that stops the display from sleeping when you're idle. With the screen kept on, your Mac also doesn't go to idle sleep, so downloads, builds, renders and remote sessions keep running. It needs no special permissions.

It only prevents idle sleep. Choosing Sleep from the Apple menu still works, and closing a MacBook's lid still puts it to sleep the way macOS normally does. If you need a laptop to keep running with the lid shut, Keep Awake won't do that.

You can check that it's working in Terminal: pmset -g assertions lists an assertion named "Switchy Keep Awake" while it's on.

Vibe coding away from your desk

When you vibe code, an AI agent like Claude Code or Codex does the typing on your Mac while you steer. A task can run for twenty minutes or two hours, and you don't have to sit and watch it. You start it at your desk, then check in from your phone, an iPad or another Mac.

That only works if the Mac you left behind stays online. When it drops into idle sleep, everything on it pauses: the agent stops mid-task, your dev server goes quiet and the network connection drops. From your phone, the Mac seems to have vanished. The SSH session hangs, Screen Sharing can't connect, and the remote session in your AI tool stops answering until someone walks over and wakes it up.

Turn on Keep Awake before you leave and your Mac stays reachable for as long as you pick: 3 or 6 hours for an afternoon out, or Indefinitely for an overnight run. A timed session switches itself off at the end, so your Mac goes back to sleeping normally.

Set up your Mac to be reached remotely

Keep Awake vs. caffeinate in Terminal

macOS ships with caffeinate, a command that does the same job. Keep Awake creates the same kind of assertion as caffeinate -d. The difference is how you use it.

WhatSwitchy Keep Awakecaffeinate
How you start itOne click in the menu bar, or a shortcutType a command in Terminal
Timed sessionsPick from a menu, with the end time shownPass seconds with -t
How long it lastsUntil the timer ends or you turn it off, and it comes back after a relaunchUntil the command exits or you close Terminal
Keep awake while a command runsNoYes, with caffeinate your-command
Choose which kind of sleep to blockNo, it always keeps the display onYes, with flags like -i, -d and -s
CostPart of Switchy, $4.99 onceFree, built into macOS

If you live in Terminal and want your Mac awake only while a script runs, caffeinate is the better tool. If you want a switch you can see and flip without opening a window, Keep Awake is quicker.

When another app suits you better

If keeping your Mac awake is the only thing you need, Amphetamine is free on the Mac App Store and is built for exactly that, with far more settings than Switchy's single tile. Switchy makes more sense if you'd also use the other switches it puts in the same panel.

The other switches in the panel

Keep Awake sits next to switches for Dark Mode, Night Shift, True Tone, Mute Microphone, Do Not Disturb, Hide Desktop Icons, Empty Trash and a Pomodoro timer, each one click away. The panel also shows your deploys and dev servers, 2FA codes and your Claude and Codex usage limits. See every switch.

More from Switchy

Every switch your Mac hides, one click from the clock.