

Capsomnia turns Caps Lock into a physical switch that keeps your MacBook awake. Keep Claude Code, Codex, other AI agents, SSH sessions, builds, downloads, and more running after you close the lid. If Caps Lock is already assigned, choose another shortcut. The Caps Lock light still shows whether Capsomnia is active. The app is free and open source, signed and notarized. No accounts or telemetry. We’ve already seen strong interest in Japan: 2.3M+ views and 6,000+ downloads.
Capsomnia is a free, open-source macOS utility that turns your Caps Lock key into a physical sleep-prevention switch. Flip it on, close the lid, and your MacBook stays awake — keeping AI agents, SSH sessions, builds, and downloads running uninterrupted. The app uses a lightweight, transparent approach: it runs pmset -a disablesleep 1 when Caps Lock is on and restores normal sleep when toggled off. The Caps Lock LED doubles as a clear status indicator. No accounts, no telemetry, and fully auditable source code under the MIT License.
Capsomnia keeps your MacBook working after the lid closes. It runs a single command (pmset -a disablesleep 1) to prevent sleep, so local jobs continue — and when remote login and networking are enabled, your Mac stays reachable over SSH.
The keyboard’s green Caps Lock light shows at a glance whether sleep prevention is active. No need to glance at the menu bar; the physical state is always visible on the key itself.
If Caps Lock is already assigned to another function, you can choose a different shortcut to toggle Capsomnia. While active, the Caps Lock light remains lit — so the indicator is still clear.

The entire app, helper, and system LaunchAgent are released under the MIT License. You can inspect the source, package install scripts, and security model before installing. The app never makes network requests, collects telemetry, or requires accounts.
Caps Lock becomes a physical switch — no menu-bar checking, no extra clicks, just a key you can feel.
Most keep-awake tools rely on a menu-bar icon or a keyboard shortcut you have to remember. Capsomnia turns a dedicated, physical key into the on/off mechanism. The green LED gives instant status. And because it’s open source with a minimal security model (a single root-owned helper that can only run three exact pmset commands), you know exactly what the app can and cannot do.
You use a MacBook for long-running background tasks — AI agent workflows, remote SSH sessions, overnight builds, or large downloads — and want a simple, tactile way to keep the machine awake after closing the lid. It’s also ideal if you prefer open-source software with no telemetry and want to verify every bit of code that runs on your system.
Loading comments…
Maker
calm_kit
Project Info
Product Keywords