macOS Sleep Switch — Development skill for Claude Code
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
- Download and unzip
Sleep-Switch.zip. - Move Sleep Switch.app to
/Applications. - Right-click the app and choose Open the first time.
- 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. |
Related Skills
Caff
macOS menu bar app that keeps the Mac awake during long-running agent tasks (Swift + IOKit)
Koffeelid
Close the lid, the work goes on. A macOS menu-bar app that keeps a MacBook awake with the lid shut, on its own
Drem
A native macOS menu-bar companion that keeps your Mac awake while Codex and Claude Code work.
Omarchy Insomnia
Keeps the machine awake and on the network so long-running Claude Code and other agentic sessions survive. Oma
Goguma
Wakes your Mac for scheduled jobs, holds it awake while long work finishes, and lets it sleep otherwise. Finds
Agents Dont Sleep
Close the lid, let your agents cook. A tiny tray app that keeps your laptop awake (lid shut, in your bag) only
Related Agents
Apple UI Designer
Visual and theme redesigns in current Apple design language (macOS 27 / iOS 26+ Liquid Glass, vibrancy, system
Adapter Engineer
Implements and maintains Tacet agent adapters (Claude Code, Codex app-server, ACP, OpenCode, PTY fallback) beh
App Release Engineer
Get mobile builds to users predictably, with staged rollout and a kill switch that works. Invoke for mobile-te