Coffee is a Raycast extension designed to manage the caffeination of your computer. Whether you want to keep your computer awake for a specific period, while a particular app is running, or on a schedule, Coffee has you covered.
To install the Coffee extension, follow these steps:
Once installed, simply trigger the Raycast command palette and search for the desired caffeination command.
Keep your computer awake indefinitely or cancel the caffeination.
Toggle between keeping your computer caffeinated and in a decaffeinated state.
Caffeinate your computer for a specified amount of time.
Keep your computer awake as long as a specific app is running.
Set up a custom caffeination schedule using natural language.
Examples:
⏳ Schedule for everyday except Tuesday from 13:00 to 20:00
⏳ Schedule for Monday and Thursday from 09:00 to 14:00
⏳ Schedule from 10:00 to 16:30 (adds schedule for all days)
⏳ Saturday and Sunday from 20:00 to 23:30
Supported Actions:
📋 Note: If you pause a schedule, you must manually resume it for it to work the next week or any future instances.
Get the current state of caffeination.
Get the status of current caffeination in your menu bar.
Optionally have Coffee start caffeinating your computer (indefinitely) automatically whenever Raycast launches. Enable the Start caffeination when Raycast starts toggle under the Launch section in the extension's preferences.
Requirements: Either the Caffeinate Status command (15 s background interval) or the Caffeinate Status Menu Bar command (1 m background interval) must be enabled in Raycast — the auto-start feature piggybacks on these background ticks.
How session detection works: Coffee tracks the Raycast process PID. A new PID means Raycast actually relaunched, so the computer is caffeinated automatically. Putting the computer to sleep and waking it does not trigger a re-caffeination, because the PID stays the same — your manual decaffeination is honoured until you truly restart Raycast.
Prevent your computer from sleeping
Turn off the caffeine
Prevent your computer from sleeping while a certain app is running
Get the status of the current caffeination in your menu bar
Toggle caffeination
Prevent your computer from sleeping for a certain time
Prevent your computer from sleeping until a certain time. Type one like 5pm, or leave the field empty to pick a date and time.
Schedule caffeination
Show the current caffeination status
decaffeinate while already decaffeinated.Caffeinate for ... / Caffeinate Until window as soon as caffeinate is spawned, instead of holding an empty view open while the menu bar and status commands refresh.Caffeinate for ... and Caffeinate Until showing the HUD without actually starting caffeinate — the work now runs before the HUD closes the view command.Caffeinate for ... and use an invisible view to reset command state after submission.Caffeinate for ... command from inline arguments back to a Form so its state isn't persisted between invocations.Caffeinate Status, showing 4 types, examples:Caffeinate Until: until 2:00 PMCaffeinate For ...: 42m leftCaffeinate While: while Slack is runningSchedule Caffeination: schedule: Mondays from 11:00 to 15:00Decaffeinate pauses running schedules preferenceCaffeinate While commandIndefinitely, each with a checkmark and live countdown when active.Until… to the menu bar dropdown, which opens a date/time picker form.Caffeinate Until command; the typed time argument is now optional (leave empty to use the picker).-u flag into the main caffeinate process, eliminating periodic caffeinate -u -t 1 spawningcaffeinate -u child processes in the status command.generateArgs().Caffeinate Until command.Caffeinate Status command was disabled.Caffeinate For command with arguments in the root search.Caffeinate Status command with Unicode characters for enhanced design consistency.Caffeinate Status Menu Bar.Caffeinate While command not working.Fixed a bug that caused the extension to crash if the menubar command was not enabled.