mistermantas

macOS Sleep Switch — Development skill for Claude Code

Development community

Free macOS menu-bar app that keeps Codex, Claude Code, OpenCode, and other long-running work awake.

How to install macOS Sleep Switch

This entry records only its repository, not the path inside it, so there is no exact command to give. Open mistermantas/macos-sleep-switch and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What macOS Sleep Switch does

Free macOS menu-bar app that keeps Codex, Claude Code, OpenCode, and other long-running work awake.

Alternatives in Development

  • Quosparr — 🐦 Native menu bar & tray app for macOS, Windows and Linux: track Codex, Claude Code and Grok quotas, resets 288 ★
  • Cc Bar — Native macOS menu bar app: track quota, usage and cost for Codex (multi-account) and Claude Code, from your me 119 ★
  • CoderBar — Native macOS agent control for Codex and Claude — monitor, approve, ask, and jump back from the menu bar 100 ★

README

Sleep Switch

Keep long-running work awake, with or without the lid open.

[Download Sleep Switch](https://github.com/mistermantas/macos-sleep-switch/releases/latest/download/Sleep-Switch.zip)

Sleep Switch holds a temporary macOS power assertion while it is active. It automatically stays awake while a supported coding agent is running, then returns sleep control to macOS when the agent exits. It is free and open source.

Created and maintained by Mantas Vilčinskas for MB Uncascade.

Install

  1. Download and unzip Sleep-Switch.zip.
  2. Move Sleep Switch.app to /Applications.
  3. Right-click the app and choose Open the first time.
  4. Look for the coffee cup in the menu bar.

Sleep Switch starts at login by default. Uncheck **Launch at Login** in its menu whenever you want to disable that.

Menu guide

Click the menu-bar icon once to open Sleep Switch. A checkmark means that an option is enabled.

Menu item What it does
Status Shows whether the Mac can sleep, what is keeping it awake, and how much time remains.
Awake Mode Chooses how automatic and manual sessions prevent sleep.
Prevent Sleep Keeps the Mac and its display awake while a manual or detected-agent session is active. Closing the lid still follows normal macOS behavior.
Prevent Sleep Even With Lid Closed Keeps the Mac running after the lid closes. Available in the GitHub download and asks for administrator approval when it becomes active.
Cooling Chooses macOS fan control, early aggressive cooling, or maximum cooling on a specifically qualified Mac. Cooling is available only in a signed direct build.
Only Control Cooling While Agents Run Limits the selected cooling profile to periods when Sleep Switch detects an active coding agent. It is off by default, so cooling otherwise runs independently of awake sessions and agents.
Cooling Details… Shows verified helper, fan, temperature, and qualification state.