← sources

Close the lid and go: my MacBook keeps running Claude Code on 4.8 W or less

source: reddit (reddit:ClaudeAI)published 2026-10-19 22:34ingested 2026-10-20 02:36

retained text

I like to kick off Claude Code, shut the lid and head out. The catch is battery: with the lid open, my Mac draws 16.7 W just on idle, and the screen eats most of it.

So I built Pilot Light, an advanced caffeinate aimed at power savings. Close the lid and the screen goes dark, Low Power Mode switches on and Claude keeps working on 4.8 W, so a battery that would last about 6 hours lasts 20+. With Claude Code building the website and testing every feature through a headless Playwright browser, lid shut, it measured 2.3 W.

Claude helped me work out how to build the safety features and fallbacks, and which macOS flags to watch so the app can spot those situations and react. So it lets the Mac sleep if it gets seriously hot in a bag or the battery drops below your limit, and puts everything back when you open the lid.

It's free, with no tracking, no telemetry and no accounts. It's MIT licensed and in beta, and so far it's only been tested on my M5 Max.

Website: https://pilotlight.sudolabs.nz/

document fetched 2026-10-20 00:21 · canonical https://reddit.com/r/ClaudeAI/comments/1xabadh/close_the_lid_and_go_my_macbook_keeps_running