Your Mac stays up
while your agents work
Dozex keeps your Mac awake while Claude Code, Codex or any terminal command is running, then lets it sleep the moment the work is done. No timers to set.
Free and open source · macOS 14+ · Apple Silicon & Intel
Awake only while it matters
Holds off sleep while work is running and gives it back the second it stops.
Any agent, any terminal
Claude Code hooks, plus every terminal tab in Terminal, iTerm, Ghostty, Warp and VS Code.
Local and open source
Runs entirely on your Mac. No account, no analytics, MIT licensed.
Awake while it works.
Asleep when it's done.
Long runs shouldn't stall because your Mac dozed off, and your Mac shouldn't stay up all night because you forgot to switch off a keep-awake app.
❯ claude > refactor the auth module ● Editing 9 files… ❯ cargo build --release Compiling server v0.4.2
You start the work
Prompt Claude, kick off a build, or run Codex or Gemini in any terminal. Dozex picks it up within seconds.
The eye opens
The menu bar eye opens while anything is running. Your Mac won't idle-sleep, even if you walk away for hours.
It dozes off
When the last task ends, Dozex lets go. Your normal energy settings take over, and you can get a notification to say so.
Works with every agent you use
Claude Code connects through hooks for exact start and stop. Everything else is picked up from your terminal. Agents count only while they're working, so a session left open at the prompt never keeps your Mac up.
Smarter than
a timer
Keep-awake apps make you guess how long the work will take. Dozex watches the work itself, so you never have to guess.
| Capability | Dozex | Keep-awake timers |
|---|---|---|
| Stays awake exactly as long as the work runs | You guess | |
| Lets your Mac sleep the moment work ends | When the timer runs out | |
| Knows when Claude Code starts and stops | — | |
| Watches every terminal tab and CLI agent | — | |
| Ignores idle agents, editors and ssh sessions | — | |
| Notifies you when everything's done | — | |
| Menu bar and Control Center toggle | Varies | |
| Updates itself in one click | Varies | |
| Free and open source under MIT | Varies |
Set up in a minute
A small download for Apple Silicon and Intel Macs on macOS 14 or later. Updates install themselves from the menu bar.
Download and drag
Open Dozex.dmg and drag Dozex into Applications.
Allow it to open
Dozex isn't notarized yet. The first time, click Open Anyway in System Settings → Privacy & Security, or run:
xattr -dr com.apple.quarantine /Applications/Dozex.appConnect Claude Code
Click Connect Claude Code on the setup page. Terminal watching is already on. Look for the eye in your menu bar.
Questions
Which agents and terminals does it work with?
Claude Code connects through hooks, in both the CLI and the Code tab of the Claude desktop app. Every other agent, including Codex, Gemini CLI, Aider and OpenCode, is detected in any terminal: Terminal, iTerm, Ghostty, Warp, VS Code and tmux panes.
Will an idle agent keep my Mac awake all night?
No. Agents, editors, ssh, tmux and REPLs only count while they're actually using CPU. A session left open at the prompt lets your Mac sleep as usual. Regular commands like builds and tests count for as long as they run.
What happens if I close my MacBook's lid?
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.
What does it change on my Mac?
It adds a few hooks to ~/.claude/settings.json, after backing up the original, and removes them if you disconnect. To stay awake it uses a standard macOS power assertion, the same one video players use.
Is it free?
Yes. Dozex is free and open source under the MIT license.
Get Dozex
Let your agents finish the job. Then let your Mac rest.
macOS 14+ · Apple Silicon & Intel