Dozex keeps your Mac from sleeping while Claude Code, another CLI agent or any terminal command is running, then lets it rest the moment the work is done. You don't need timers or to remember to turn it off.
Your energy settings still apply. Dozex only holds off sleep while Claude is actually doing something.
Prompt Claude, kick off a build, or run Codex or Gemini in your terminal. Dozex notices right away.
The menu bar eye opens while the work runs, so long builds and refactors finish without the Mac falling asleep.
When the last task finishes, Dozex steps aside and your Mac sleeps on its usual schedule.
No windows to manage and no settings to tune. It sits in your menu bar.
Lightweight Claude Code hooks tell Dozex exactly when a task starts and stops. Your existing settings are backed up first.
There's no fixed timer. When the work is done, so is Dozex, and you can get a notification to say so.
Turn it on or off with one click, or add the Dozex control to Control Center on macOS 26.
Builds, scripts and CLI agents like Codex, Gemini and Aider keep your Mac awake in any terminal app. Idle agents, editors and ssh sessions don't.
New versions install in place with one click from the menu bar. You don't need to download them again.
Everything runs on your Mac. No accounts and no analytics, and the code is on GitHub under the MIT license.
Dozex is a small download that works on Apple Silicon and Intel Macs running macOS 14 or later.
Download Dozex.dmgxattr -dr com.apple.quarantine /Applications/Dozex.appYes. Dozex works with the Claude Code CLI and with the Code tab in the Claude desktop app. Both use the same Claude Code hooks.
Yes. Dozex watches every terminal window and tab, including Terminal, iTerm, Ghostty, Warp, VS Code and tmux panes. A command that's running keeps your Mac awake. Agents such as Codex, Gemini CLI, Aider and OpenCode count only while they're working, so a session left open at the prompt won't stop your Mac from sleeping. You can turn this off with Watch Terminal in the menu.
macOS always sleeps when the lid closes without an external display, and no app can override that without admin changes. Keep the lid open for long runs, or use an external display.
It adds a few hooks to ~/.claude/settings.json, after backing up the original. Disconnecting from the setup page removes them again. To keep the Mac awake it uses a standard macOS power assertion, the same one apps use to stop the screen sleeping during video.
Dozex also treats any busy claude process as work, so sessions that are already running are covered until their next prompt picks up the hooks.
Yes. Dozex is free and open source under the MIT license.