Capsomnia is a utility designed to keep your MacBook awake and prevent it from sleeping, even when the lid is closed. It repurposes the Caps Lock key, turning it into a physical switch that users can toggle to enable or disable the keep-awake functionality. This is particularly useful for users who need to run long-duration tasks in the background without interruption.
The problem Capsomnia addresses is the common frustration of a MacBook going to sleep mid-task. Whether it's a lengthy code compilation, a large file download, an AI model training session, or an active SSH connection, unexpected sleep can lead to lost progress and wasted time. Traditional methods of keeping a laptop awake often involve complex configurations or prevent the user from closing the lid, which is inconvenient. Capsomnia offers a simple, hardware-based solution to this issue.
One of the key features of Capsomnia is its innovative use of the Caps Lock key. By default, the Caps Lock key on MacBooks is often underutilized. Capsomnia leverages this key to act as a physical toggle for sleep prevention. When the keep-awake mode is activated, the Caps Lock indicator light on the keyboard visually confirms that the mode is active, providing a clear status signal without needing to check a menu bar icon. This hardware-based indicator is a clean and intuitive way to manage the feature.
For users who already utilize the Caps Lock key for its intended purpose or prefer a different shortcut, Capsomnia offers flexibility. The application allows users to choose an alternative key or shortcut to activate the keep-awake mode. This ensures that the core functionality of Caps Lock is not compromised, and users can customize the activation method to suit their workflow. The Caps Lock light still serves as the visual indicator for the keep-awake status, regardless of the chosen activation shortcut.
Capsomnia is built with a strong emphasis on privacy and security. The application is free, open-source, and has been signed and notarized for Apple silicon Macs running macOS 14 and later. It explicitly states that there are no accounts, network requests, or telemetry involved. This means users can be confident that their activity is not being tracked or shared, providing a secure and private experience.
The overall approach of Capsomnia is straightforward: it disables the system's sleep function when activated. This allows processes to continue running even when the MacBook lid is closed. When the user deactivates the keep-awake mode, normal sleep behavior is restored. The application is designed to be lightweight and unobtrusive, focusing solely on its primary function of preventing sleep.
The primary benefit for users is the ability to ensure that critical background tasks complete without interruption. This leads to increased productivity, reduced frustration, and the confidence that long-running processes will finish as intended. By keeping the Mac awake, users can avoid the need to constantly monitor their device or restart interrupted tasks.
Capsomnia can be used in various scenarios. Developers can keep code builds or AI agent tasks running overnight. Users can ensure large file downloads or uploads complete without being halted by sleep. Anyone performing long-running scripts or processes can benefit from the continuous operation provided by Capsomnia. It's also useful for maintaining SSH sessions or other remote connections that might be disrupted by system sleep.
The product is targeted towards Mac users, particularly developers and power users who frequently run background tasks. It is free and open-source. The application is signed and notarized for Apple silicon Macs running macOS 14+. While specific integrations are not detailed, it is designed to work with various background processes like AI agents (Claude Code, Codex), SSH sessions, builds, and downloads.
In summary, Capsomnia offers a clever and privacy-focused solution for Mac users who need to prevent their laptops from sleeping during critical background tasks, utilizing the Caps Lock key as an intuitive physical switch.