dsh-caffeinate
Runs macOS caffeinate with -w bound to the DSH host process id, so the sleep-prevention process exits when the host exits, and exposes /keepawake to report status and switch sleep-prevention modes. macOS only and on by default: from startup it keeps the Mac from idle sleep (and from system sleep on AC power) until DSH exits, while the display may still sleep; /keepawake running or off narrows it.
Overview
Runs macOS caffeinate with -w bound to the DSH host process id, so the sleep-prevention process exits when the host exits, and exposes /keepawake to report status and switch sleep-prevention modes. macOS only and on by default: from startup it keeps the Mac from idle sleep (and from system sleep on AC power) until DSH exits, while the display may still sleep; /keepawake running or off narrows it.
Installation
Version compatibility
Compatibility is unconfirmed. Check the project documentation for supported versions.