AI agents

Keep your Mac awake while AI agents work

Leave an AI agent working, and your Mac stays awake while its app runs.

The Automation tab, with a list of apps that keep the Mac awake while they run

Keep the work going

An AI coding agent can work for an hour while you are away from the keyboard. To macOS, that can look like an idle computer, and a Mac that goes to sleep takes the agent with it. Easy Caffeinate keeps your Mac awake so the job can finish.

For the full picture, read how to keep your Mac awake while AI agents work.

Set it up once

  1. Right-click the cup and choose Settings….
  2. Open the Automation tab.
  3. Under Stay awake while these apps are running, click Add App….
  4. Choose the app your agent runs in, such as Terminal, TerminalSpace or your code editor, and click Add.

Your Mac now stays awake whenever that app is open, and goes back to sleeping normally after it quits.

For one long job

Good to know

  • It follows the app, not the agent. If the agent finishes and its app stays open, your Mac stays awake until you quit the app or turn Easy Caffeinate off.
  • The screen can sleep. Turn off Keep the display on in Settings > While Awake to save power. Leave it on for an agent that needs to see or control your screen.
  • Stay plugged in for long runs. A battery rule can end the session, and your Mac can then go to sleep.
  • It works with any agent. Easy Caffeinate does not connect to your agent or read its work.

Closing the lid normally puts a MacBook to sleep, so leave it open for long runs. What stays awake covers the option for a Mac on power.

Get Easy Caffeinate

Keep your Mac awake while AI works.