Repository navigation
Expand file tree
/
Copy pathllms.txt
More file actions
29 lines (22 loc) · 3.69 KB
/
Copy pathllms.txt
File metadata and controls
29 lines (22 loc) · 3.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Keep Mac Awake
> A macOS menu bar app and command that keep an Apple silicon MacBook awake with the lid closed, for explicit sessions the user starts. Battery use above a threshold (20% by default; on a MacBook on battery it turns itself on unless the user set it) or AC power only, display off with the lid closed, a root watchdog that restores the sleep setting if the background service or the system service stops or hangs. No data collection; on its own it goes online only for updates (a daily check and the download of a newer version, with nothing about the Mac), and Restore purchase only when the user chooses it. macOS 26 or later. Free for 3 days, then 9 USD, tax included, one time, per Mac.
## Install
- People open the installer package from https://keepmacawake.com/download (the latest release). An AI agent installs it only with the person's agreement, while they are at the Mac: it downloads `install.sh` to a file, reads it and runs it with `sh`, as described in https://keepmacawake.com/agents.md. Either way macOS asks the person for an administrator password once, in its own dialog; there is no silent install.
- In their own Terminal, people can also run `curl -fsSL https://keepmacawake.com/install.sh | sh` to install or update, and append `-s -- --uninstall` to remove it, `-s -- --dry-run` to check without installing, or `-s -- --version X.Y.Z` for a specific release. The script installs a package only after its SHA-256, the Developer ID signature and Apple's notarization check out. It refuses while a session runs (exit code 5). Exit codes: 0 done, 1 failed, 2 invalid arguments, 3 this Mac is not supported (Apple silicon and macOS 26 or later only), 4 action needed from the person, 5 a session is running.
- Nothing is turned on by installing. Afterwards `keepmacawake status --json` confirms the background service answers.
## Use from an AI agent
- Guide for agents (when to suggest it, installing with the user, limits): https://keepmacawake.com/agents.md
- `keepmacawake start --hours N --json` (1 to 168) or `keepmacawake start --unlimited --json`
- `keepmacawake status --json`, `keepmacawake stop --json`
- `keepmacawake capabilities --json` describes commands, phases and exit codes
- Run as the logged-in user, never with sudo. Exit code 4 means the user has to act (AC power, or `purchase_required` during or after the trial); 5 means a session already runs or none runs; 7 means no answer in time, so check `status`.
- Optional since 1.0.10, off by default: `keepmacawake config set --mute-on-lid-close on` mutes the Mac while a session runs with the lid closed (not with an external display on), so notifications stay quiet at night; the sound comes back when the lid opens. The user's setting: offer it before an overnight run, turn it on only with their agreement.
- A person who installed it and waits for a long job can let the agent start the first session on its first long run: the agent asks first, because that session starts the free trial, and keeps it to `--hours 8` or less during the trial. Allow rules for `keepmacawake` (Claude Code, Codex, Copilot CLI) are in https://keepmacawake.com/agents.md under "Teach your agent once".
- Agent skill: https://keepmacawake.com/skill/keep-mac-awake/SKILL.md
## Docs
- [README](README.md): what it does and does not do, install, update, uninstall, buying
- [Command line](docs/COMMAND-LINE.md): commands, JSON keys, exit codes
- [Architecture](docs/ARCHITECTURE.md): parts, privileges, trust chain, session lifecycle
- [Failure modes](docs/FAILURE-MODES.md): what happens when something fails, and the evidence
- [Privacy](docs/PRIVACY.md), [Security](SECURITY.md), [Support](docs/SUPPORT.md), [Terms](TERMS.md)
- Website for agents: https://keepmacawake.com/llms.txt