Claude Code's built-in keep-awake vs Latte
Claude Code already holds off idle sleep while it works. Here's what that covers, what it doesn't, and when you don't need Latte.
By Harsh Soni, maker of Latte · Updated
If you keep your MacBook open on your desk and only use Claude Code, its built-in keep-awake is probably all you need. Latte is for when you close the lid and leave, run Codex or Grok too, or want prompts on your phone.
What Claude Code already does
On macOS, recent versions of Claude Code hold off idle sleep while they're working, then let go. You can see it while a task runs:
pmset -g assertionsThat covers the most common case: you walk away from an open Mac and the idle timer would otherwise put it to sleep.
What it doesn't cover
- A closed lid. macOS sleeps a MacBook when the lid closes, whatever an app asks. Getting past that needs a system-level helper, which is what Latte installs once, with your permission.
- Other agents. It's Claude Code looking after itself. Codex and Grok need their own solution.
- The hardware. Nothing watches the battery or heat, or notices a run stuck repeating the same command.
- Unanswered prompts. If Claude is waiting on a permission prompt, the run stops there until you answer. Remote Control can help on plans that include it; Latte sends the prompt to Telegram or ntfy.
- Update restarts. An overnight macOS update can still restart the Mac mid-run.
Side by side
| Claude Code on its own | Latte | |
|---|---|---|
| Idle sleep while working | Held | Held |
| Lock screen | Held | Held |
| Lid closed, on power | Sleeps (unless clamshell mode) | Held |
| Lid closed, on battery | Sleeps | Held if you turn it on, with guards |
| Codex and Grok | No | Yes |
| Sleeps when the work is done | Yes | Yes |
| Battery floor and heat guard | No | Yes, hard limits at 7% and critical heat |
| Prompts on your phone | Remote Control, on some plans | Telegram or ntfy |
| Defers update restarts during a run | No | Yes |
| Price | Included | $2 a month after a 7-day trial |
Can I use both?
Yes. They don't conflict: both simply ask macOS to stay awake while there's work. Latte also works alongside Remote Control, and keeps the Mac awake so Remote Control can still reach the session after you close the lid.
Still deciding? Every way to keep Claude Code running with the lid closed covers the options that don't involve Latte too.
Common questions
- Does Claude Code prevent my Mac from sleeping?
- On macOS, recent versions hold off idle sleep while Claude is working, so an open Mac stays awake during a task. It does not stop the Mac sleeping when you close the lid.
- Do I need Latte if Claude Code already keeps my Mac awake?
- Not if your lid stays open and you only use Claude Code. Latte adds lid-closed running, Codex and Grok support, phone approvals, and battery and heat guards.
- Can I use Latte and Claude Code's Remote Control together?
- Yes. Remote Control needs the Mac awake to reach the session, and Latte keeps it awake with the lid closed.
Latte keeps Claude Code, Codex and Grok working with your MacBook closed, sends approvals to your phone, and lets the Mac sleep the moment the work is done.