Awake while your agents work.
Asleep when they're done.

A tiny menu bar app that keeps your Mac awake — even with the lid closed — while Claude Code, Codex, Ollama or any AI agent runs. Smart NoSleep notices when they finish and lets your Mac sleep again, saving battery and heat.

Drop your email to get the installer and occasional update news — no spam.
Free & open-source · Apple Silicon & Intel · Toggle with ⌃⌘S
Open source on GitHub →

Smart NoSleep in action

Pick your mode from the menu bar — Smart is the default.
Open the lid in the morning and see exactly when your run finished and what was working before your Mac went to sleep.

What it does

🤖
Smart NoSleep

Made for overnight AI coding runs: stays awake while your agents (Claude Code, Codex, Ollama…) are working, then lets the Mac sleep once they finish — saving battery and heat. You get a notification saying when it slept and what was running. Prefer always-on? Switch to Absolute NoSleep.

💤
Closed-lid keep-awake

Stays awake even with the lid shut — no external display needed.

⌨️
One shortcut

Press ⌃⌘S anywhere to flip keep-awake on or off, or click the menu bar icon.

⏱️
Timers

Keep awake for 15 minutes, 1 hour, or 2 hours, then auto-off.

🪶
Lightweight

Native Swift, no Electron. Negligible CPU and memory.

Installing

NoSleep is open-source and isn’t signed with a paid Apple certificate, so macOS shows a “can’t verify / malware” warning the first time. That’s normal. On macOS Sequoia the old right-click→Open trick no longer works, so use Terminal (once):

  1. Download the installer — it lands in your Downloads folder.
  2. Open Terminal (Applications → Utilities), then paste and run:
    xattr -d com.apple.quarantine ~/Downloads/NoSleep-Installer-1.1.11.pkg
  3. Double-click NoSleep-Installer-1.1.11.pkg — it now opens normally.
  4. Follow the installer — NoSleep launches automatically when done.
If step 2 says “No such xattr”, run xattr -c ~/Downloads/NoSleep-Installer-1.1.11.pkg instead.

Using it

🅢
Toggle

Press ⌃⌘S, or click the menu bar S icon. A line through the S means keep-awake is on.

🔐
One password prompt

The first time you keep the lid closed, macOS asks for your password once. After that it’s silent.

🗑️
Uninstall

Choose “Uninstall NoSleep…” from the menu — it cleans up everything and quits.