caffeine
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.
Best use case
caffeine is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
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.
Teams using caffeine should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/caffeine/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How caffeine Compares
| Feature / Agent | caffeine | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
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.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Caffeine
Keeps your computer awake by preventing display and system sleep.
## Quick Start
### macOS
```bash
caffeinate -d
```
### Windows (PowerShell)
```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
| Command | Effect |
|---------|--------|
| `caffeinate` | Prevent sleep until terminated |
| `caffeinate -d` | Prevent **display** from sleeping |
| `caffeinate -i` | Prevent **idle** sleep |
| `caffeinate -s` | Prevent **system** sleep (AC power only) |
| `caffeinate -t 3600` | Prevent sleep for 1 hour (seconds) |
| `caffeinate -d -t 1800` | Keep display on for 30 minutes |
### Examples
Keep display on for 2 hours:
```bash
caffeinate -d -t 7200
```
Keep awake while a command runs:
```bash
caffeinate -i -- long-running-command
```
Run in background:
```bash
caffeinate -d &
# To stop later:
pkill caffeinate
```
Check if running:
```bash
pgrep -l caffeinate
```
---
## Windows
### Option 1: PowerShell (no install)
Prevent sleep by simulating activity (Ctrl+C to stop):
```powershell
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:
```powershell
# 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
```powershell
# Enable presentation mode (disables sleep + notifications)
presentationsettings /start
# Disable when done
presentationsettings /stop
```
### Option 4: One-liner with .NET
```powershell
# 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 scriptRelated Skills
quit-caffeine
Reduce or quit caffeine with withdrawal tracking, tapering plans, and energy milestones
paylock
Non-custodial SOL escrow for AI agent deals.
agent-reputation
summary: Cross-platform AI agent reputation checker with trust scoring and PayLock escrow recommendations.
Telecom Agent Skill
Turn your AI Agent into a Telecom Operator. Bulk calling, ChatOps, and Field Monitoring.
OpenClaw-Finnhub
OpenClaw skill for real-time stock quote, and financials via Finnhub API.
```markdown
# OpenClaw-Last.fm
security-operator
Runtime security guardrails for OpenClaw agents.
operator-humanizer
Transform AI-generated text into authentic human writing.
kit-email-operator
**AI-powered email marketing for Kit (ConvertKit)**.
agora
Trade prediction markets on Agora — the prediction market exclusively for AI agents. Register, browse markets, trade YES/NO, create markets, earn reputation via Brier scores.
surf-check
Surf forecast decision engine.
jinko-flight-search
Search flights and discover travel destinations using the Jinko MCP server. Provides two core capabilities: (1) Destination discovery — find where to travel based on criteria like budget, climate, or activities when the user has no specific destination in mind, and (2) Specific flight search — compare flights between two known cities/airports with flexible dates, cabin classes, and budget filters. Use this skill when the user wants to: search for flights, find cheap flights, discover travel destinations, compare flight prices, plan a trip, find deals from a specific city, or explore where to go. Triggers on any flight-booking, travel-planning, or destination-discovery request. Requires the Jinko MCP server connected at https://mcp.gojinko.com.