How to play music with your MacBook lid closed

By Matyas Rathonyi. Updated November 14, 2026. Guides

A MacBook stops the music when you close the lid, because it goes to sleep. Clamshell for Mac keeps it awake, so Spotify, Apple Music, podcasts and AirPlay keep playing with the lid shut, no monitor needed.

Buy once$9.99 Download free trial

7 days free, then $9.99 once. Apple Silicon, macOS 14 or later.

An animated MacBook playing a playlist in a music player: album art, the song title and artist, a progress bar and a level meter moving to the music. The Option key is held and the lid closes: the display goes black, but the Mac stays awake, so a dimmed copy of the player keeps playing above the closed laptop while its front edge fills with light. When the playlist reaches its last song, a pointer shows how to lift the lid. Opening it wakes the Mac to its lock screen, which unlocks to the player, still playing. The lid can then be opened and closed freely.

Hold Option and close the lid

Start your music, hold Option and close the lid. The screen goes dark and the music keeps playing. Open the lid and your Mac locks and is back to normal, ready to sleep the next time you close it.

On a MacBook Air M1 or a 13-inch MacBook Pro, press both Option keys together, then close the lid. Or right-click the Clamshell icon in the menu bar to stay armed until you turn it off.

Output
Clamshell

Lid closed, Mac awake. Playing to the AirPlay speaker.

AirPods, Bluetooth and AirPlay all keep playing

The music never stopped because of the speaker. It stopped because the Mac fell asleep. Clamshell keeps the Mac awake and leaves your sound alone, so it keeps playing to whatever you picked: AirPods, headphones, a Bluetooth or AirPlay speaker, or the built-in speakers.

Clamshell does not change your audio output or routing. The Mac also stays on the network, which AirPlay and streaming apps need. Before you rely on it for a long session or at night, play a short track, hold Option, close the lid and listen for a minute. That one check covers your exact app, speaker and headphones.

Why does music stop when I close my MacBook?

Closing the lid is one of Apple's documented ways to put a Mac laptop to sleep. A sleeping Mac is still on, but its apps stop running. Spotify, Apple Music, a browser tab or a podcast app all go quiet at the same moment, whether the sound was going to the built-in speakers, headphones, a Bluetooth speaker or an AirPlay speaker.

Apple's one built-in exception is closed-display mode: a closed MacBook stays awake when it is connected to power, an external display, a keyboard and a mouse. That is a desk setup, not a way to fold the laptop away and keep listening. No setting in System Settings keeps a closed MacBook playing without that display.

Made for music in bed or across the room

Keep music playing with the lid closed, step by step

When the Mac itself is the player, for a local library, a DJ app, a browser stream or an AirPlay or Bluetooth speaker, it has to stay awake with the lid down. Clamshell for Mac does that on an Apple Silicon MacBook with macOS 14 or later: no external display, no sudo and no admin password.

  1. Install and open Clamshell It lives in the menu bar. The trial runs for 7 days.
  2. Start the music, pick the output Choose the speaker or headphones in the app or in Control Center while the lid is still open.
  3. Hold Option and close the lid The built-in display goes black and the Mac keeps playing. A monitor can stay connected or not.
  4. Open the lid when you are done The Mac locks, and the next time you close it, it sleeps as usual.

Free options that work with the lid open

Try these first. Each one fits a specific setup, and none of them costs anything.

Your setupLidWhat to doCost
Speaker supports Spotify ConnectAnyPlay from your phone; the Mac can sleepFree
Lid can stay open, plugged inOpenLet the screen turn off but stop the Mac sleepingFree, built in
Monitor, keyboard and mouse on a deskClosedApple's closed-display modeThe hardware

Lid open, display off, on power

In System Settings, Lock Screen, set Turn display off on power adapter when inactive to a short time. Then in Battery, Options, turn on Prevent automatic sleeping on power adapter when the display is off. Both are in Apple's sleep settings guide. The screen goes dark and the music keeps playing, as long as the lid stays up.

Lid open, on battery

Run caffeinate -i in Terminal. It holds off idle sleep until you press Control-C. It does not stop the sleep that starts when the lid closes: here is why.

Let the speaker stream, not the Mac

Spotify says Spotify Connect lets you use one device to remotely control listening on another. If your speaker supports it, start playback on the speaker from your phone and the Mac can sleep. Playing from your iPhone over AirPlay leaves the Mac out too.

Closed-display mode at a desk

With an external display, keyboard, mouse and power connected, the closed MacBook stays awake and keeps playing. The best fit if you already work that way.

Battery and heat while the music plays

Keep the closed Mac on a hard surface with air around it, never in a bag: see is it safe to keep a MacBook running in a bag. More in keeping a MacBook awake with the lid closed on battery.

Calls and the microphone with the lid closed

One thing does change with the lid down: Apple disconnects the built-in microphone in hardware whenever the lid of an Apple silicon MacBook is closed. Listening is fine. For calls, use AirPods, a headset or an external microphone.

What about caffeinate and other keep-awake apps?

Most keep-awake apps and the built-in caffeinate command prevent idle sleep, the timer that sleeps a Mac nobody is touching. Closing the lid is a separate trigger that they do not cover, so the music still stops. See does caffeinate work with a MacBook lid closed and the best apps to keep a MacBook awake.

Close the lid, keep the music

Free for 7 days, then $9.99 once for one Mac. 14-day money-back guarantee.

Frequently asked questions

Can a MacBook play music with the lid closed?

Not by default. Closing the lid puts a MacBook to sleep and the music stops. Apple's exception needs an external display, keyboard, mouse and power. With Clamshell for Mac, the music keeps playing with only the lid shut.

Does Spotify keep playing when I close my MacBook?

Not on its own, because the Mac goes to sleep. With Clamshell, hold Option as you close the lid and Spotify keeps playing. If your speaker supports Spotify Connect, you can also play from your phone and let the Mac sleep.

Will AirPlay keep working with the MacBook lid closed?

Yes, with Clamshell. The Mac stays awake and online, so the music keeps going to your AirPlay speaker. Play a short track once to check your setup before you rely on it. For video on a TV, see a MacBook lid closed with a TV or projector.

Can I keep music playing on battery with the lid closed?

Yes. Clamshell works on battery and keeps working when you plug in or unplug. A setting, on by default, lets the Mac sleep when the battery reaches 20 percent.

Can I take a call with the MacBook lid closed?

Use AirPods, a headset or an external microphone. Apple turns off the built-in microphone whenever the lid of an Apple silicon MacBook is closed. Sound keeps playing as long as the Mac stays awake.

Why does my MacBook stop playing music when I close the lid?

Because closing the lid puts the Mac to sleep, and a sleeping Mac stops every app, including the one playing your music. The speaker or headphones are not the cause.

Does Apple Music keep playing with the MacBook lid closed?

Not on its own, because the Mac goes to sleep. With Clamshell, hold Option as you close the lid and Apple Music keeps playing to the output you chose.

Can I play music through a Bluetooth speaker with the MacBook lid closed?

Yes, with Clamshell. A Bluetooth speaker or headphones only play while the Mac is awake. Clamshell keeps it awake with the lid shut, so the sound keeps going to the device that was already connected.

Can I listen with AirPods while my MacBook is closed?

Yes, with Clamshell. Connect your AirPods and start the music with the lid open, then hold Option and close the lid. The Mac stays awake and keeps playing to them.

Does YouTube or a browser tab keep playing with the lid closed?

With Clamshell the Mac stays awake, so a browser tab that is playing sound keeps playing. Without it the Mac sleeps and the tab stops. Play a short clip once to check your browser before you rely on it.

Do I need an external monitor to play music with the lid closed?

No. Apple's closed-display mode needs a monitor, keyboard, mouse and power. Clamshell keeps the Mac awake with only the lid shut, on power or on battery.

Sources checked November 13, 2026: Apple's guides on putting a Mac to sleep, sleep and wake settings, closed-display mode and the hardware microphone disconnect, and Spotify's Spotify Connect page. Clamshell is an independent app, not affiliated with or endorsed by Apple or Spotify. Spotify and AirPlay are trademarks of their owners.