---
title: "Discussion on \"Can I use Codex from my phone with the MacBook lid closed?\" | Hashnode"
description: "Discussion on \"Can I use Codex from my phone with the MacBook lid closed?\". 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."
url: "https://hashnode.com/posts/codex-from-phone-macbook-lid-closed/6afe931f2b0da381d8e3abae"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [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.

3h ago · 3 min read · keepmacawake.hashnode.dev  
Read the article

-   [#codex](https://hashnode.com/tag/codex)
-   [#ai-agents](https://hashnode.com/tag/ai-agents)
-   [#macos](https://hashnode.com/tag/macos)
-   [#macbook](https://hashnode.com/tag/macbook)

## Written by

[Keep Mac Awake](https://hashnode.com/@keepmacawake)

@keepmacawake

  
[View profile](https://hashnode.com/@keepmacawake)

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

Keep Mac Awake is a Mac menu bar app and command line tool that keeps a MacBook awake with the lid closed for a session you start. These guides explain Mac sleep, pmset and long jobs with the lid closed, and first appear on keepmacawake.com.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
