Lidwake — Development skill for Claude Code
LidWake: keep a MacBook running with the lid closed and no external monitor until Claude finishes, the battery runs low or a timer ends.
How to install Lidwake
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open aaryanbindage/Lidwake and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Lidwake does
LidWake: keep a MacBook running with the lid closed and no external monitor until Claude finishes, the battery runs low or a timer ends. Control it from your phone.
Alternatives in Development
- Stop Review Gate — You are reviewing uncommitted changes before the author finishes their turn 664 ★
- Run Daily — Trigger the daily digest now (background via OS scheduler) and monitor until completion 355 ★
- Upload — Archive, upload, and submit to external TestFlight (full loop with monitor) 160 ★
README
LidWake
Keeps a MacBook running **with the lid closed and no external monitor**. It ends when the first of your chosen events happens: Claude finishes, the battery gets low, a process exits, a timer runs out, and so on. You can change a running session from the terminal, the menu bar, or **your phone**.
How it works
macOS always sleeps when you close the lid unless an external display is connected. `caffeinate` can't stop that. Only `pmset -a disablesleep 1` can, and it needs root. The installer adds a sudoers rule that lets LidWake run exactly that command (plus `disablesleep 0` and `shutdown -h now`) without a password. When the event happens, LidWake turns normal sleep back on and then sleeps, shuts down, or does nothing.
What gets installed:
| Part | What it is |
|---|---|
lidwake |
The engine and CLI (bash). The session re-reads its event list every 5 s, so you can add or remove events while it runs. |
lidwaked |
Remote control server (Swift, LaunchAgent). Serves the web page and a token-protected API, connects to the relay or tunnel, and ends the session if the Mac gets critically hot. |
relay/ |
End-to-end encrypted relay (Node) for a permanent link, plus optional accounts (Postgres). Deploy it to Render. |
LidWake.app |
Menu bar app: start, add or remove events, and a QR code for your phone. |
com.lidwake.recover |
Runs at login. Turns sleep back on if a session ever crashed. |
Install (on the Mac)
cd LidWake
bash install.sh # REMOTE=0 bash install.sh to skip the web server
lidwake claude-hook --install # optional: lets --claude work
The server and the app need `swiftc`; run `xcode-select --install` first if you don't have it. To remove everything, run `bash uninstall.sh`.
Use
lidwake start --claude -b # until Claude Code finishes its reply
lidwake start --process ffmpeg --then shutdown # until ffmpeg exits, then shut down
lidwake status
Related Skills
Keepmacawake
Keeps a MacBook with Apple silicon awake with the lid closed, no external display needed, for a session you st
Agent Mode
Keep a MacBook awake for coding agents, lid open or closed, with automatic safety pauses
Goguma
Wakes your Mac for scheduled jobs, holds it awake while long work finishes, and lets it sleep otherwise. Finds
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
Detach
Run Codex and Claude Code reliably in the background on macOS—with a native dashboard, persistent tmux session
Awake
Keep your Mac awake with the lid closed - safe by default, built for humans and agents
Related Agents
Cad Dimension Researcher
Finds the real, sourced dimensions of a physical object (phone, board, tool, battery, appliance, connector, st
9remote
Long-running AI coding sessions keep working after you leave the desk, but checking on them from a phone usual
Battery Low Codex Review Fixes
Battery Low Camera Actions - Codex Review Fixes