OpenDMG
StayAwake icon

StayAwake for Mac

Menu bar utility to keep your computer awake and continue running tasks with the lid closed.

By TY-teo. Free and open source, MIT licence.

Get it with OpenDMG View source on GitHub

StayAwake at a glance

Version
1.0.0
Released
31 May 2026
Download size
2.4 MB
Works on
Apple silicon and Intel
Licence
MIT
Category
Menu Bar and Notch
Developer
TY-teo
GitHub stars
67

About StayAwake

Native macOS menu bar app that keeps your MacBook awake for AI coding agents - Claude Code, OpenAI Codex, Cursor - even with the lid closed. Open source (MIT), IOPMAssertion + scoped sudoers rule for password-free pmset, timed auto-off, login item, crash-safe self-heal. Built for overnight agent runs and clamshell mode without an external display.

How to install StayAwake on a Mac

  1. Get OpenDMG. It is a free app store for open source Mac apps. Download OpenDMG.
  2. Search for StayAwake and press Get. OpenDMG downloads version 1.0.0 from TY-teo's own GitHub release.
  3. Open it. The download is checked against its SHA-256 fingerprint and its signature is checked on your Mac before it lands in Applications.

Updates to StayAwake show up in OpenDMG and install with one button. No account is needed.

Prefer to do it by hand? The developer's file is on GitHub: StayAwake-1.0.0.dmg (2.4 MB).

What is new in StayAwake 1.0.0

StayAwake 1.0.0 — macOS 菜单栏「保持唤醒 / 合盖继续运行」工具

 安装:下载 StayAwake-1.0.0.dmg,打开后把 StayAwake 拖进 Applications。

 首次打开(本版本未做 Apple 公证,会被门禁拦一次,二选一放行):
 - 系统设置 → 隐私与安全性 → 找到“已阻止 StayAwake”,点“仍要打开”;或
 - 终端执行:xattr -dr com.apple.quarantine /Applications/StayAwake.app

 功能:
 - 保持唤醒:系统空闲不休眠(插电/电池均可),可选屏幕常亮或息屏、定时自动关闭
 - 合盖继续运行:合盖也不休眠,支持一次性免密授权(写入精确限定的 sudoers 规则)
 - 原生 macOS 系统设置风格,常驻菜单栏,无 Dock 图标

 要求:macOS 26.0+。Apple Silicon 合盖建议插电 / 接外接显示器时最稳,请实测。

More Menu Bar and Notch apps

All Menu Bar and Notch apps