Every account starts with a 7-day trial. How to open it

Latte
Comparison

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

Short answer

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 assertions

That 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 ownLatte
Idle sleep while workingHeldHeld
Lock screenHeldHeld
Lid closed, on powerSleeps (unless clamshell mode)Held
Lid closed, on batterySleepsHeld if you turn it on, with guards
Codex and GrokNoYes
Sleeps when the work is doneYesYes
Battery floor and heat guardNoYes, hard limits at 7% and critical heat
Prompts on your phoneRemote Control, on some plansTelegram or ntfy
Defers update restarts during a runNoYes
PriceIncluded$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.
Close the lid. Keep shipping.

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.

Start your 7-day trialNo card needed · $2 a month after