Prevent your Mac from sleeping, even when the lid is closed
Stay Awake is a utility app which can be used to prevent your Mac from sleeping, even if you close the lid of your MacBook. Note: Sleep prevention while the lid is closed only works if your MacBook is connected to AC power.
✔ Prevent the display from sleeping.
✔ Prevent the system from sleeping, even if you close the lid of your MacBook.
✔ Prevent only if the Mac is running from AC power.