cd /news/ai-tools/codex-released-prevent-sleep-while-r… · home › topics › ai-tools › article
[ARTICLE · art-151867] src=narendravardi.com ↗ pub= topic=ai-tools verified=true sentiment=↑ positive

Codex released "Prevent sleep while running" under /experimental features

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.

read1 min views2 publishedOct 17, 2026
Codex released "Prevent sleep while running" under /experimental features
Image: Narendravardi (auto-discovered)

I 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.

In my earlier post, I talked about how you can use mac laptop's in-built 'caffeinate' command to keep Claude Code and Codex sessions active.

You don't need this anymore in codex. This feature is introduced as part of experimental features. You can just toggle it.

Enabling is quite simple, just follow the below steps:

  1. Launch Codex in your terminal .
  2. Type /experimental and pressenter . You see a screen like below.
  3. Use Arrows to navigate and** space bar to toggle** the feature.

If 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).

── more in #ai-tools 4 stories · sorted by recency
── more on @codex 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/codex-released-preve…] indexed:0 read:1min 2026-10-17 · —