skills$openclaw/caffeine
bunsdev3.5k

by bunsdev

caffeine – OpenClaw Skill

caffeine is an OpenClaw Skills integration for design workflows. Prevent the computer screen and system from falling asleep on macOS or Windows. Use when the user wants to keep their display awake, disable sleep, or run a long task without interruption.

3.5k stars365 forksSecurity L1
Updated Feb 7, 2026Created Feb 7, 2026design

Skill Snapshot

namecaffeine
descriptionPrevent the computer screen and system from falling asleep on macOS or Windows. Use when the user wants to keep their display awake, disable sleep, or run a long task without interruption. OpenClaw Skills integration.
ownerbunsdev
repositorybunsdev/caffeine
languageMarkdown
licenseMIT
topics
securityL1
installopenclaw add @bunsdev/caffeine
last updatedFeb 7, 2026

Maintainer

bunsdev

bunsdev

Maintains caffeine in the OpenClaw Skills directory.

View GitHub profile
File Explorer
2 files
.
_meta.json
269 B
SKILL.md
2.5 KB
SKILL.md

name: caffeine description: Prevent the computer screen and system from falling asleep on macOS or Windows. Use when the user wants to keep their display awake, disable sleep, or run a long task without interruption.

Caffeine

Keeps your computer awake by preventing display and system sleep.

Quick Start

macOS

caffeinate -d

Windows (PowerShell)

# Keep display awake until Ctrl+C
while ($true) {
  $wsh = New-Object -ComObject WScript.Shell
  $wsh.SendKeys('{SCROLLLOCK}{SCROLLLOCK}')
  Start-Sleep -Seconds 60
}

macOS

Uses the built-in caffeinate command (no installation needed).

Options

CommandEffect
caffeinatePrevent sleep until terminated
caffeinate -dPrevent display from sleeping
caffeinate -iPrevent idle sleep
caffeinate -sPrevent system sleep (AC power only)
caffeinate -t 3600Prevent sleep for 1 hour (seconds)
caffeinate -d -t 1800Keep display on for 30 minutes

Examples

Keep display on for 2 hours:

caffeinate -d -t 7200

Keep awake while a command runs:

caffeinate -i -- long-running-command

Run in background:

caffeinate -d &
# To stop later:
pkill caffeinate

Check if running:

pgrep -l caffeinate

Windows

Option 1: PowerShell (no install)

Prevent sleep by simulating activity (Ctrl+C to stop):

while ($true) {
  $wsh = New-Object -ComObject WScript.Shell
  $wsh.SendKeys('{SCROLLLOCK}{SCROLLLOCK}')
  Start-Sleep -Seconds 60
}

Option 2: powercfg (change power settings)

Disable sleep temporarily:

# Disable sleep on AC power
powercfg /change standby-timeout-ac 0
powercfg /change monitor-timeout-ac 0

# Re-enable later (e.g., 30 minutes)
powercfg /change standby-timeout-ac 30
powercfg /change monitor-timeout-ac 15

Option 3: Presentation mode

# Enable presentation mode (disables sleep + notifications)
presentationsettings /start

# Disable when done
presentationsettings /stop

Option 4: One-liner with .NET

# Prevent sleep for duration of script
Add-Type -AssemblyName System.Windows.Forms
while ($true) {
  [System.Windows.Forms.Cursor]::Position = [System.Windows.Forms.Cursor]::Position
  Start-Sleep -Seconds 60
}

Notes

  • macOS: caffeinate is built-in; process must stay running
  • Windows: PowerShell methods simulate activity; powercfg changes system settings
  • Press Ctrl+C to stop any running script
README.md

No README available.

Permissions & Security

Security level L1: Low-risk skills with minimal permissions. Review inputs and outputs before running in production.

Requirements

  • OpenClaw CLI installed and configured.
  • Language: Markdown
  • License: MIT
  • Topics:

FAQ

How do I install caffeine?

Run openclaw add @bunsdev/caffeine in your terminal. This installs caffeine into your OpenClaw Skills catalog.

Does this skill run locally or in the cloud?

OpenClaw Skills execute locally by default. Review the SKILL.md and permissions before running any skill.

Where can I verify the source code?

The source repository is available at https://github.com/openclaw/skills/tree/main/skills/bunsdev/caffeine. Review commits and README documentation before installing.