One question/Mac keep-awake apps

Can a MacBook keep working with the lid closed while Claude Code runs?

Published Nov 28, 2026Quotes checked Nov 28, 2026All quotes still match

Short answer

Apple's support pages describe using a Mac laptop with the lid closed together with an external display, keyboard and mouse, with the Mac connected to power.

If you want to close the lid and walk away while Claude Code, Codex or Cursor finishes a job, Night Crew keeps the MacBook awake only while an agent is working, then lets it sleep.

What Apple says

Apple's closed-lid setup is a desk setup

This is how Apple's own support pages describe using a Mac laptop with the lid closed.

Apple

Display, keyboard, mouse

Closed-lid use starts with connecting an external display, a mouse and a keyboard.

“First you need to allow an external display, a mouse, and a keyboard to connect to your Mac laptop.”support.apple.com, “Allow USB and other accessories to connect to your Mac”, read Nov 26, 2026

Apple, power

Plugged in

Apple's troubleshooting page asks for power and an external keyboard and mouse when the lid is closed.

“If the display is connected to a Mac laptop computer with a closed lid, make sure that the Mac is connected to power and using an external keyboard and mouse.”support.apple.com, “If your external display is dark or low resolution”, read Nov 26, 2026

Apple, at a desk

Works well docked

With that setup, or in a dock, the Mac runs closed with nothing extra to install.

“Then you can use your Mac with the lid closed (or with a docking station in which you place your Mac with the lid closed)”support.apple.com, “Allow USB and other accessories to connect to your Mac”, read Nov 26, 2026

Where it still hurts

An agent run does not wait for you to find a monitor

A coding agent can work for an hour or two on its own. If you close the lid to go to a meeting, the closed-lid setup Apple documents needs a display, a keyboard and a mouse that you do not carry with you.

The dark horse

Night Crew holds the Mac awake while the agent works

Night Crew is a product we back, with its own office in Tablif Town. Each line below is a quote from its own site.

♞ Night Crew

Dark horseLid closed, agent running

It keeps the MacBook awake while a coding agent works, even with the lid closed, and lets it sleep when the agent is done.

“Night Crew is a Mac menu bar app that keeps your MacBook awake while Claude Code , Codex , Cursor , Gemini CLI or Antigravity is working, even with the lid closed, and lets it sleep when they finish.”nightcrewapp.com

The hold is tied to the agent, not to an open app.

“Night Crew holds the Mac awake because an agent is working, not because an app is open .”nightcrewapp.com

On battery it only holds if you allow it, and stops at 30%.

“On battery only if you allow it, with a 30% floor.”nightcrewapp.com

It is a one-time purchase for up to two Macs.

“paid once, for up to 2 Macs”nightcrewapp.com

How it goes

  1. Try it freeFourteen days, with no account and no card.
  2. Approve the sleep helper onceLid mode uses a helper you approve one time.
  3. Start the agent and close the lidWhen the agent finishes, the Mac sleeps on its own.

Where Night Crew stops

  • It watches a set list of agents: Claude Code, Codex, Cursor, Gemini CLI and Antigravity.
  • If the Mac stays offline for 30 days, Night Crew pauses until it checks in.
  • On battery it holds only with your permission and lets go at 30%.

Questions people ask

Do I need an external monitor to use my MacBook closed?

Apple's support pages describe closed-lid use with an external display, keyboard and mouse, and power.

Is Night Crew a subscription?

No. It is paid once for up to 2 Macs, with future updates included.

What happens when the agent finishes?

Night Crew lets go and the Mac goes back to its normal sleep.

♞ This page's dark horse

Night Crew

A product we back, with its own office in Tablif Town. Owner verified on Tablif, Nov 10, 2026.

How we checked

We write a page like this only when the big product states the limit on its own site. If a site does not say, we do not write “it can't”. Every claim about Night Crew is a quote from its own site, and its founder verified ownership on Tablif. Before a page goes live, and again when we recheck it, every quote is searched for word for word on its source page.

SourceQuotesLast checked
support.apple.com3Nov 28, 2026
nightcrewapp.com7Nov 28, 2026

More about Night Crew

KeepingYouAwake vs Lungo vs Theine for keeping your Mac awake while AI coding agents workRace · Night Crew finished with 4 of 7 rounds