@duarteocarmo/pi-no-sleep

Prevent macOS display sleep from Pi.

Packages

Package details

extension

Install @duarteocarmo/pi-no-sleep from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@duarteocarmo/pi-no-sleep
Package
@duarteocarmo/pi-no-sleep
Version
0.1.8
Published
Aug 28, 2026
Downloads
1,338/mo · 1,338/wk
Author
duarteocarmo
License
Apache-2.0
Types
extension
Size
1,014 KB
Dependencies
0 dependencies · 2 peers
Pi manifest JSON
{
  "extensions": [
    "./index.ts"
  ],
  "video": "https://github.com/user-attachments/assets/4ade30ad-868f-4c5f-aa47-5310650d3b00",
  "image": "https://raw.githubusercontent.com/duarteocarmo/pi-tools/master/packages/pi-no-sleep/preview.png"
}

Security note

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

README

pi-no-sleep

npm package Pi package

Pi No Sleep keeps the macOS display awake while it is enabled. Use /no-sleep to turn it on or off from Pi.

The extension is based on Armin Ronacher's no-sleep.ts from mitsuhiko/agent-stuff.

Install

Install only Pi No Sleep from npm:

pi install npm:@duarteocarmo/pi-no-sleep

Install every Pi package in this repository from Git:

pi install git:github.com/duarteocarmo/pi-tools

Part of pi-tools.