{"slug": "codex-released-prevent-sleep-while-running-under-experimental-features", "title": "Codex released \"Prevent sleep while running\" under /experimental features", "summary": "OpenAI's Codex now offers an experimental \"Prevent sleep while running\" toggle that keeps a Mac awake during Codex sessions, replacing the need for the built-in `caffeinate` command the author previously used. Users enable it by launching Codex in the terminal, typing `/experimental`, and using the arrow keys to navigate and the space bar to toggle the feature, which the author expects to persist across all sessions unless a future update removes it.", "body_md": "# Codex released \"Prevent sleep while running\" under /experimental features\n\nI previously used `caffeinate` to keep my Mac awake during Codex sessions. Codex now has an experimental “Prevent sleep while running” toggle you can enable directly from the terminal.\n\nIn my [earlier post](https://www.narendravardi.com/use-caffeinate-to-keep-claude-code-and-codex-running-on-mac/), I talked about how you can use mac laptop's in-built 'caffeinate' command to keep Claude Code and Codex sessions active.\n\nYou don't need this anymore in codex. This feature is introduced as part of experimental features. You can just toggle it.\n\n**Enabling is quite simple, just follow the below steps:**\n\n1. Launch **Codex in your terminal** .\n2. Type **`/experimental`** and press**enter** . You see a screen like below.\n3. Use **`Arrows to navigate`** and**` space bar to toggle`** the feature.\n\nIf you set it once, I think it should be good enough for the toggle to be active across all sessions (unless of-course they choose to neglect it during an update).", "url": "https://wpnews.pro/news/codex-released-prevent-sleep-while-running-under-experimental-features", "canonical_source": "https://www.narendravardi.com/codex-released-prevent-sleep-while-running-under-experimental-features/", "published_at": "2026-10-17 10:30:00+00:00", "updated_at": "2026-10-17 10:32:01.623297+00:00", "lang": "en", "topics": ["ai-tools", "developer-tools", "ai-agents"], "entities": ["Codex", "OpenAI", "Claude Code", "caffeinate"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/codex-released-prevent-sleep-while-running-under-experimental-features", "markdown": "https://wpnews.pro/news/codex-released-prevent-sleep-while-running-under-experimental-features.md", "text": "https://wpnews.pro/news/codex-released-prevent-sleep-while-running-under-experimental-features.txt", "jsonld": "https://wpnews.pro/news/codex-released-prevent-sleep-while-running-under-experimental-features.jsonld"}}