---
title: "Keep Mac Awake (@keepmacawake) | Hashnode"
description: "Guides to keeping a MacBook awake with the lid closed: pmset, sleep, agents and long jobs. Read the latest articles by Keep Mac Awake on Hashnode."
url: "https://hashnode.com/@keepmacawake"
---

@keepmacawake

# Keep Mac Awake

@keepmacawake · Joined October 2026

Guides to keeping a MacBook awake with the lid closed: pmset, sleep, agents and long jobs.

[Website](https://keepmacawake.com/?utm_source=hashnode&utm_medium=referral&utm_campaign=profile&utm_content=author)

### [Can I use Codex from my phone with the MacBook lid closed?](https://keepmacawake.hashnode.dev/codex-from-phone-macbook-lid-closed?utm_source=hashnode&utm_medium=feed)

Codex remote access needs an awake Mac, and a closed lid sleeps it. Why Codex's own prevent-sleep options are not documented to cover the lid, and what does.

3 min read · [keepmacawake.hashnode.dev](https://keepmacawake.hashnode.dev/codex-from-phone-macbook-lid-closed?utm_source=hashnode&utm_medium=feed)

[3](https://hashnode.com/posts/codex-from-phone-macbook-lid-closed/6afe931f2b0da381d8e3abae) [2d ago](https://hashnode.com/posts/codex-from-phone-macbook-lid-closed/6afe931f2b0da381d8e3abae)

### [Why does my Mac sleep when the lid is closed? Read the reason with pmset](https://keepmacawake.hashnode.dev/mac-sleeps-lid-closed-why?utm_source=hashnode&utm_medium=feed)

It usually did not shut down, it slept. How to read the reason in pmset -g log and fix the usual causes.

3 min read · [keepmacawake.hashnode.dev](https://keepmacawake.hashnode.dev/mac-sleeps-lid-closed-why?utm_source=hashnode&utm_medium=feed)

[3d ago](https://hashnode.com/posts/mac-sleeps-lid-closed-why/6afd432d75b058ba59b099eb)

### [Clamshell mode without a monitor: can a MacBook stay awake?](https://keepmacawake.hashnode.dev/clamshell-mode-without-monitor?utm_source=hashnode&utm_medium=feed)

Yes. What Apple's closed-display mode needs, why the lid forces sleep, and what gets past it with no display.

3 min read · [keepmacawake.hashnode.dev](https://keepmacawake.hashnode.dev/clamshell-mode-without-monitor?utm_source=hashnode&utm_medium=feed)

[4d ago](https://hashnode.com/posts/clamshell-mode-without-monitor/6afbf42406860358ec20448b)

### [Is it safe to run a MacBook with the lid closed?](https://keepmacawake.hashnode.dev/macbook-lid-closed-safe?utm_source=hashnode&utm_medium=feed)

Yes with air around it. What Apple says about heat, the real risks, and how to run a closed MacBook unattended.

3 min read · [keepmacawake.hashnode.dev](https://keepmacawake.hashnode.dev/macbook-lid-closed-safe?utm_source=hashnode&utm_medium=feed)

[4d ago](https://hashnode.com/posts/macbook-lid-closed-safe/6afb2ae76cfb9f86410fbafa)

### [Can you close a MacBook without it going to sleep?](https://keepmacawake.hashnode.dev/close-macbook-without-sleep?utm_source=hashnode&utm_medium=feed)

Yes, even with no display attached. Why the lid is forced sleep, what gets past it, and what only stops idle sleep.

3 min read · [keepmacawake.hashnode.dev](https://keepmacawake.hashnode.dev/close-macbook-without-sleep?utm_source=hashnode&utm_medium=feed)

[5d ago](https://hashnode.com/posts/close-macbook-without-sleep/6af9de718232f65b2ebbd87e)
