Sleep prevention for humans and AI agents.
~ latte
tap a command to begin
what is it
A friendlier caffeinate.
latte is a tiny macOS CLI that wraps caffeinate with a clean interface and a live TUI. Use it to keep your machine awake for long builds, agent runs, and lunch breaks. No flags to remember.
how it works
Stateless by design.
Under the hood, latte spawns caffeinate -imsu and lets the system handle everything else. There’s no daemon, no config file, and no PID file. Every command inspects the running process directly.
- -i
- Idle sleep
- -m
- Disk sleep
- -s
- System sleep (on AC power)
- -u
- Declares user activity
No config files. No PID files. Just a small wrapper that does one thing well.
That stateless design also makes it perfect for AI agents: every command is idempotent, scriptable, and exits with a clean status code. Built with Bun, Effect, and Ink.
install
One line.
curl -fsSL https://raw.githubusercontent.com/Junnyyy/latte/main/install.sh | bashpiping a script into bash is a leap of faith. read it first →
from source →
git clone https://github.com/Junnyyy/latte.git
cd latte
bun install
bun run install:global