# Caffeine

Caffeine is a self-hosted tools & utilities app. A lightweight macOS menu-bar app that prevents your Mac from going to sleep.

Canonical page: https://ourlocalhost.com/app/5528/caffeine

## Description

A lightweight macOS menu-bar app that prevents your Mac from going to sleep. Toggle its menu-bar icon to keep the system awake while you're watching, presenting, or running long downloads and syncs.

## Platform availability

Available on 0 of 10 platforms.

## Health score

28/100 (Low), based on 4 of 5 factors.
- Maintained: 0 (last commit 2917 days ago)
- Popular: 44 (149 GitHub stars)
- Easy to install: 15 (0 install platforms, install notes)
- Security check: 75 (no serious findings)

## Links

- Official website: https://www.zhornsoftware.co.uk/caffeine
- GitHub: https://github.com/tomasf/caffeine

## Common questions

### How does Caffeine keep a PC awake?

It simulates a keypress once every 59 seconds by default, so Windows thinks the keyboard is still in use. This stops the screen lock and screensaver from activating.

### Can Caffeine be controlled from the command line?

Yes, -startoff starts it disabled, and switches such as -appon, -appoff, -apptoggle, and -replace control a running instance. The -noicon switch also hides the task tray icon.

### Can Caffeine prevent sleep while still allowing the screensaver?

Yes, -allowss prevents sleep but allows the screensaver to start. The -stes switch uses SetThreadExecutionState with ES_DISPLAY_REQUIRED instead of the F15 keypress.

### Have users reported that IT can detect Caffeine use?

Yes, a user reports that IT detected the use of Caffeine and asks for alternatives to keep a PC active.

## Alternatives

- Amphetamine: Amphetamine is a little app that lives in your menu bar which can effortlessly override your energy saver settings and keep your Mac awake.
- Caffeine for Linux: Inspired by the Mac OS X version, Caffeine for Linux is a status bar application able to temporarily prevent the activation of both the scr…
- Coffee (by OpenAppsLabs): Coffee is a modern, open-source Android utility built with Jetpack Compose and Material Design 3.
- PowerToys - Awake: PowerToys Awake is a tool for Windows designed to keep a computer awake without having to manage its power &amp; sleep settings.
- Stimulator: This is a simple app that prevents the desktop environment (DE) from sleeping while its on.

---
Source: Our Local Host (https://ourlocalhost.com/app/5528/caffeine), the self-hosted and open-source app directory.
