Remote screen lock utility for macOS. Trigger your Mac's lock screen from any device on the same network.
macOS only.
curl -fsSL https://raw.githubusercontent.com/stevejkang/remote-mac-lock/main/install.sh | bashOnce installed, visit http://<your-local-ip>:61000/lock from any device on the same network.
Authentication is optional. To enable it, edit ~/.config/remote-mac-lock/.env:
BASIC_AUTH_USER=admin
BASIC_AUTH_PASS=your-password
Then restart the service to apply:
launchctl kickstart -k gui/$(id -u)/com.stevejkang.remote-mac-locklaunchctl kickstart -k gui/$(id -u)/com.stevejkang.remote-mac-lockcurl -fsSL https://raw.githubusercontent.com/stevejkang/remote-mac-lock/main/uninstall.sh | bash