For AI coding sessions
Keep your Mac awake for Claude Code & AI agents
Long agent runs stall when your Mac falls asleep. Perked is a macOS menu-bar app that automatically keeps your Mac awake the moment it detects a coding agent like Claude Code or Cursor — and lets it sleep again when the work is done. No manual toggling, no scripts, and it runs entirely on your Mac.
Why your Mac sleeps mid-run
macOS aggressively sleeps the display and system to save power. When you step away during a long Claude Code build, a Cursor refactor, or an overnight script, the Mac dozes — pausing network requests, killing the agent's momentum, and sometimes dropping the session entirely. The usual workarounds (the built-in caffeinate command, or a generic “keep awake” utility) work, but they're manual: you have to remember to switch them on before the run and off afterwards, and they keep the Mac awake whether an agent is working or not.
How Perked keeps it awake
- Auto-detects agents. Perked watches for coding agents and keeps your Mac awake only while they're running — then releases it.
- Power-aware. Stay awake only on AC power, or above a battery threshold you set, so you never drain the battery by accident.
- Clamshell mode. Optionally keep the Mac awake with the lid closed, so long runs continue on your desk.
- Timed sessions & Lock & Leave. Stay awake for a set duration, or lock the screen while the session keeps running.
- Private by design. No account, no servers — everything runs locally on your Mac.
Agents it detects out of the box
Perked recognizes the popular coding agents automatically, and you can add any other app — so it also covers builds, renders, and long-running scripts.
- Claude Code — lifecycle hooks
- Codex — lifecycle hooks
- Gemini CLI — lifecycle hooks
- Copilot CLI — lifecycle hooks
- Cursor Agent (CLI)
- Amazon Q
- Devin CLI
- Kimi Code
- Grok CLI
- Mistral Vibe
- Junie
- Trae Agent
- Rovo Dev
- Antigravity CLI
- Aider
- OpenCode — lifecycle hooks
- Cline
- Roo Code
- Goose
- Crush — lifecycle hooks
- Amp
- Qwen Code — lifecycle hooks
- Augment (Auggie)
- Continue
- Kilo Code
- Pi
- OpenHands
- Plandex
- Codebuff
- aichat
- Factory Droid — lifecycle hooks
- Open Interpreter
- gptme
- Letta Code
- Hermes
- OpenClaw
Marked agents connect through their own lifecycle hooks, so Perked knows when a turn starts and ends — an agent left open at its prompt lets the Mac sleep. The rest are detected by their process, which keeps the Mac awake for as long as the agent is running.
Why not just caffeinate or a free toggle?
Those keep the Mac awake — but indiscriminately, and only when you remember to turn them on. Perked ties keep-awake to what you're actually doing: it switches on when an agent starts, respects your power and battery rules, handles lid-closed runs, and gets out of the way when you're done. It's a one-time purchase from €1 with a 14-day money-back guarantee.
Weighing the alternatives? See how Perked compares to Amphetamine, caffeinate and every other keep-awake tool.
Keep your next agent run alive
One-time purchase, yours forever — €1 today, and your price is locked in for good.
Related guides
Leaving the lid down on your desk? Keep your MacBook awake with the lid closed →
Running agents overnight? Run AI coding agents overnight on a Mac →