Skip to content
#

prevent-sleep

Here are 79 public repositories matching this topic...

Keep your MacBook awake with the lid closed, on battery, with no external display. A native menu-bar app that uses pmset disablesleep, with an auto-off timer and a battery-floor cutoff so it can't drain your Mac. The open-source, MIT alternative to Amphetamine.

  • Updated Jun 3, 2026
  • Swift

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.

  • Updated Jun 1, 2026
  • Swift

NoSleepJs is a lightweight JavaScript library that prevents devices from going to sleep during critical activities. It uses the Screen Wake Lock API or a fallback video playback method to keep the screen active, ensuring uninterrupted user experiences across modern and legacy devices.

  • Updated Feb 2, 2025
  • JavaScript
IdleTrigger

Portable Windows tray utility for stay-awake control, idle actions, task automation, day/night themes, and Explorer context menus | 便携 Windows 托盘工具:保持唤醒、空闲动作、自动任务、昼夜主题与右键增强

  • Updated Oct 11, 2026
  • Rust

Keep your MacBook awake with the lid closed while Claude Code, Codex, Gemini CLI & other AI coding agents work, with battery & heat protection. Native macOS Liquid Glass menu bar app + CLI. No external monitor needed.

  • Updated Sep 26, 2026
  • Shell

Add this topic to your repo

To associate your repository with the prevent-sleep topic, visit your repo's landing page and select "manage topics."

Learn more