@artale/pi-caffeinate

Keep your machine awake during long Pi sessions. Prevents sleep/screen lock on macOS, Windows, Linux.

Package details

extension

Install @artale/pi-caffeinate from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@artale/pi-caffeinate
Package
@artale/pi-caffeinate
Version
1.0.0
Published
Mar 14, 2026
Downloads
33/mo · 3/wk
Author
artale
License
MIT
Types
extension
Size
5.4 KB
Dependencies
0 dependencies · 1 peer
Pi manifest JSON
{
  "extensions": [
    "src/extension.ts"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

pi-caffeinate

Keep your machine awake during long Pi sessions. Prevents sleep/screen lock on macOS, Windows, Linux.

Install

pi install npm:@artale/pi-caffeinate

How it works

Auto-activates when Pi starts. Your machine won't sleep until the session ends.

  • macOS: caffeinate -dims
  • Windows: PowerShell SetThreadExecutionState
  • Linux: systemd-inhibit or xdg-screensaver

Commands

/caffeinate         — show status
/caffeinate on      — start (auto-starts by default)
/caffeinate off     — allow machine to sleep again

Zero config

Just install it. It starts automatically and stops when Pi exits.

License

MIT