Blog · December 4, 2026
How to hide your Mac screen and keep it running
Turn the display off, but keep the Mac itself from sleeping. On macOS, screen sleep and system sleep are two different things: a dark screen doesn’t stop Claude Code, a build or a download. Only system sleep does. So the trick is to make the screen look off while you keep system sleep away.
Below are three ways to do that, from free and built in to a small app. Pick the one that matches how often you step away.
Why does my agent stop when I walk away?
When you stop touching the Mac, macOS first dims and turns off the display, then, after a while longer, puts the whole Mac to sleep. The second step is the one that pauses everything: terminal sessions freeze, network connections drop, and a long agent run or build just waits until you come back.
On a MacBook, closing the lid sends it to sleep right away, unless it is on power with an external display attached. If you want the work to continue, leave the lid open.
1. Terminal: turn the display off and block sleep
macOS ships with two commands that do exactly this. In one Terminal tab, keep the Mac from idle sleep:
caffeinate -i
In another tab, turn the display off right now:
pmset displaysleepnow
The screen goes dark and the Mac keeps working until you press Ctrl+C in the first tab. It costs nothing. The catch: depending on your Lock Screen settings, waking the display may ask for your login password, and anyone who touches the mouse gets the screen (or the login prompt) back. You also have to remember the commands each time.
2. A hot corner plus a keep-awake setting
In System Settings › Desktop & Dock › Hot Corners, set a corner to Put Display to Sleep or Start Screen Saver. Throwing the pointer into that corner hides the screen in a second.
That only covers the screen part. The Mac can still go to sleep later, so pair it with something that keeps it awake: caffeinate -i from above, or a keep-awake menu bar app. On a desktop Mac, also look in System Settings › Energy for the option that stops the Mac from sleeping automatically when the display is off.
3. A fake screensaver that does both
This is the gap we built Possum for. It covers every display like a screensaver (black, a dimmed wallpaper or a picture you pick) and keeps the Mac awake while the cover is up. When you come back, you move the mouse, a PIN pad appears, and you type your 4-digit PIN.
- Cover now, or later. Cover the screen right away, in 1 to 30 minutes or an hour, or at the same time every weekday, say for lunch.
- Stays on top. The cover sits above the Dock, the menu bar and notification banners, and Cmd+Tab and Cmd+Q are blocked while it is up.
- Lid stays open. Closing the lid still puts the Mac to sleep, same as above.
It lives in the menu bar, runs on macOS 13 or later on Apple Silicon and Intel, and has a 7-day free trial with every feature, then $4.99 once.
Which one should I use?
- Once in a while: the two Terminal commands. They are already on your Mac.
- Every day, at home: a hot corner plus a keep-awake setting.
- At the office or a café, with an agent running: a fake screensaver, so the screen looks asleep to people walking past and the Mac doesn’t actually sleep.
Questions
Does turning the display off stop Claude Code or a build?
No. Display sleep only turns the screen off. Work stops when the whole Mac goes to sleep, so keep system sleep off while the work runs.
Does closing the lid keep it running?
Not on its own. A MacBook sleeps when you close the lid unless it is on power with an external display attached. Leave the lid open and cover the screen instead.
Is a fake screensaver as safe as the lock screen?
No. It hides the screen from people walking past, but it is not a lock. Use the macOS lock screen (Ctrl+Cmd+Q) when you need real security.
Try Possum
7-day free trial, no account and no card. Download the DMG or read more on the Possum home page.