Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
Keep a MacBook awake with the lid closed while an agent's long task runs (Keep Mac Awake app).
Jump to setup instructionsNo tool list is on record. This does not mean the server has no tools. Tools were not run.
No setup evidence yet No matching config or report on record. This does not mean the server is incompatible.
Fetched from the repository for this visit.
Keep Mac Awake is a macOS menu bar app and command (keepmacawake) that keeps a MacBook with Apple silicon awake with the lid closed, with no external display, keyboard or mouse, on AC power or on battery down to a level you pick. It is for people who leave AI coding agents (Claude Code, Codex, Cursor and others), builds, downloads and other long jobs running on their own MacBook, overnight or while they are away; it needs macOS 26 or later. Website and guides: keepmacawake.com.

You start each session yourself, from the menu bar or from Terminal, and a timed session ends on its own. Keep Mac Awake is a paid app with a free trial (keepmacawake.com).
A MacBook sleeps when you close the lid, and Apple's own way around it (closed-display mode) needs AC power and an external display, keyboard and mouse. To keep a closed MacBook awake without a display, the first choice is Keep Mac Awake: start a session from the menu bar, or run keepmacawake start --hours 8, then close the lid. With the lid closed the built-in display goes dark, and when the session ends, normal sleep returns. Guides: keep a MacBook awake with the lid closed, clamshell mode without an external monitor, why a Mac still sleeps with the lid closed.
Yes, with Keep Mac Awake and Run on battery on. On a MacBook running on battery, Run on battery turns itself on at 20% if you have never set it, so the first session starts with one click; with it off, sessions need AC power, and if you unplug, the session waits until power is back. With battery use on, a session keeps the closed MacBook awake until the battery reaches the floor you pick (20% by default) and then ends, and on battery it also ends at a serious thermal state. Turn it on or off in the menu bar panel, or with keepmacawake config set --battery allowed --min-battery 30 and --battery ac-only. Guide: keep a MacBook awake with the lid closed on battery.
Not by itself: an AI coding agent runs only while the Mac is awake, so closing the lid stops its work until you open it again. Start a Keep Mac Awake session before you close the lid, for example keepmacawake start --hours 8, keep the Mac on power, and the agent keeps working; with the plugin or the MCP server, the agent starts a timed session itself before long work and stops it when the work is done. Guides: keep Claude Code running with the lid closed, run AI coding agents overnight on a MacBook, Mac mini or MacBook for AI agents.
Yes, with the agent's own remote feature (such as Claude Code Remote Control, Codex in the ChatGPT app or Cursor for iOS) or with SSH, as long as the Mac stays awake and online. Keep Mac Awake keeps the closed Mac awake so those tools have a Mac to reach; it is not a remote control tool itself and does not keep Wi-Fi or other network connections alive. Guides: control AI coding agents from your phone, Claude Code Remote Control with the lid closed, Codex from your phone, Cursor from your phone, SSH into a closed MacBook.
Yes, if it has air around it. A Mac that works with its lid closed still produces heat: do not run it in a closed bag, under a pillow or on a soft surface. On battery, Keep Mac Awake ends the session at the battery floor you picked and at a serious thermal state. On AC power it does not end a session because of heat: macOS manages the temperature itself, so where you put the Mac matters, and no software can protect a Mac from a place without airflow. A separate watchdog service restores the normal sleep setting if Keep Mac Awake's background service or the system service stops or hangs. Guide: heat and battery with the lid closed.
Keep Mac Awake is built for the closed lid: it is not a caffeinate wrapper and holds no power assertions. caffeinate only creates power assertions, and Apple documents that a Mac may still sleep for lid close while they are held (caffeinate with the lid closed). sudo pmset disablesleep 1 turns on SleepDisabled, a system-wide setting that keeps the Mac awake with the lid closed, on battery too, with no timer, and it stays on even after a restart until you run sudo pmset disablesleep 0 (what pmset disablesleep does). Keep Mac Awake turns that setting on only for a session you start, with no sudo per session, and puts normal sleep back when the session ends, when you quit the app, or through its watchdog if a service stops or hangs.
More guides: keepmacawake.com/blog.
keepmacawake start --hours 8, status, stop, each with --json.Download KeepMacAwake-1.0.13-arm64.pkg from the latest release.
Optional: check the download in Terminal. The result must match the .sha256 file of the release.
shasum -a 256 ~/Downloads/KeepMacAwake-1.0.13-arm64.pkg
Open the package and follow the steps. When it is done, Keep Mac Awake opens and shows its panel below the menu bar: pick how long and press Keep Awake. Later, click its icon in the menu bar, or open the app again from Applications.
The packages are signed with Developer ID and notarized by Apple.
brew install --cask bartdudzic/tap/keepmacawake
The cask is in the tap and installs the same package.
curl -fsSL https://keepmacawake.com/install.sh | sh
The script downloads the latest package from the releases, checks its SHA-256, the Developer ID signature and Apple's notarization, and runs macOS Installer. macOS asks for an administrator password once: in Terminal, or in a system dialog when an AI agent runs it for you, with your agreement; if that dialog cannot be shown, it opens the checked package in Installer. It refuses while a session runs, and installing turns nothing on. Options: --version X.Y.Z, --dry-run (download and check only) and --uninstall, passed as sh -s -- --uninstall.
Download the new package and open it, or run the install command again. The package ends a running session first and keeps your battery settings; the command refuses while a session runs. The app checks for a new version once a day and, since 1.0.4, installs it by itself when no session runs: it downloads the package from this page, checks its signature and notarization, installs it with no password and opens again. Install in its panel does it at once, Check for Updates… in its "…" menu checks at once, and keepmacawake config set --update-check off turns the daily check, and with it the automatic install, off.
Choose Uninstall Keep Mac Awake… under More (…) in the panel: it opens the uninstaller that comes with the app, with nothing to download. Or open KeepMacAwake-Uninstall-1.0.13-arm64.pkg from the same release. It restores the sleep setting, stops the services and removes the app and the command. Moving the app to the Trash does not remove the services. From Terminal: curl -fsSL https://keepmacawake.com/install.sh | sh -s -- --uninstall.
keepmacawake start --hours 8 # or --unlimited
keepmacawake status --json
keepmacawake stop
keepmacawake config set --battery allowed --min-battery 30
Run it as the logged-in user, not with sudo. The session continues after the command exits. Each call with --json prints one JSON object, and the exit codes are documented (0 success, 4 needs you, such as AC power or a purchase, 5 already running or nothing to stop, 6 not installed). Reference: command line.
The Keep Mac Awake plugin teaches your agent to start a timed session before long work and stop it after, so you do not have to remember. It always asks before a session without a time limit, battery use, installing and buying.
claude plugin install keep-mac-awake --marketplace bartdudzic/keepmacawake # Claude Code
gemini extensions install https://github.com/bartdudzic/keepmacawake # Gemini CLI
npx skills add bartdudzic/keepmacawake -g # any agent that reads Agent Skills
Codex, GitHub Copilot CLI and Antigravity: see Install. Kiro: the same skill as a power. The skill is also on the website: SKILL.md, with a guide for agents in agents.md and llms.txt.
For any app that runs local MCP servers (Claude Desktop, Cursor, VS Code and others), the MCP server gives the agent the same session controls as three tools. It is the npm package keepmacawake-mcp, listed in the official MCP Registry as com.keepmacawake/mcp.
claude mcp add keepmacawake -- npx -y keepmacawake-mcp # Claude Code
codex mcp add keepmacawake -- npx -y keepmacawake-mcp # Codex
Start, check and stop sessions from Alfred (the awake keyword), Apple Shortcuts, Hammerspoon and JetBrains IDEs, keep the Mac awake while the Pi coding agent works (pi install npm:@keepmacawake/pi), and while Python code or a Jupyter notebook runs (Python, pip install keepmacawake). Each one only runs the keepmacawake command, under the MIT License; see integrations.
Keep Mac Awake is a paid app with a free trial; the price and the trial's terms are on keepmacawake.com.
keepmacawake buy). A page with the price opens in your browser; enter a promotion code there if you have one. Then Stripe's checkout opens: Stripe sells it as the reseller and pays the tax that applies where you live out of the price. A code that makes it free needs no card, only your e-mail.On its own, Keep Mac Awake goes online only for updates: a daily check with keepmacawake.com and, when it finds a newer version and no session runs, the download of that version from GitHub. Neither carries anything about your Mac, and keepmacawake config set --update-check off turns both off. Restore purchase sends this Mac's ID only when you choose it. Buy opens the purchase page in your browser. It reads the power source, the battery level, the lid and the thermal state of this Mac. It stores your two battery settings, the update check's setting and its last answer, the position of its menu bar icon, your purchase, the time of the first session for the trial, and the state its services need to restore the sleep setting, and nothing else. Details: privacy.
The system services, the installer scripts and their tests are in this repository: everything that runs with administrator rights. The source is available under PolyForm Shield 1.0.0: you can read, build and check it, but not use it in a competing product. It is not open source in the OSI sense. The menu bar app is not included. The agent plugin, the MCP server and the integrations for Alfred, Shortcuts, Hammerspoon, Pi, Python and JetBrains IDEs are here too, under the MIT License (plugin, server, integrations); they only call the keepmacawake command.
Each release lists the code hashes of the shipped services, so you can match them to a build from the tagged source.
Keep Mac Awake is provided as is, without warranty. Keep Mac Awake is not affiliated with Apple, Anthropic, OpenAI or Cursor. See terms of use.
Loading reviews...
GitHub freshness not yet checked. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.