nosleep

nosleep is a Claude Code mod by PhilRoli that /nosleep keeps the Mac awake with the lid closed (pmset disablesleep) until the session ends.

Updated 2026-10-25

What is nosleep?

nosleep is a Claude Code mod by PhilRoli that /nosleep keeps the Mac awake with the lid closed (pmset disablesleep) until the session ends. It is listed under Interface and has no public popularity data yet.

TypeClaude code mod
AuthorPhilRoli
RepositoryPhilRoli/claude-mods
Popularityno public popularity data yet
CategoryInterface
SecurityLow risk (84/100)
Rank#7,829 of 9,397 Claude Code mods; #3,299 in Interface
LicenseMIT
Last commit2026-10-25
Hooks3 events
Seesonly the events it hooks
Draws onnothing

Is nosleep safe to install?

nosleep scores 84/100 on the MCPMods security check: Low risk. Things to review: starts processes outside the sandbox. It passed 6 of 8 checks.

Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.

CheckResult
No network accessPass
Starts processes outside the sandboxReview
Writes no files or configPass
Doesn't read environment variablesPass
Only sees the events it hooksPass
Doesn't drive ClaudePass
Validator reported problemsNote
Has an open-source licensePass

API calls in its code

CallWhat it means
$.command.register
$.process.runruns processes
$.store.deletekeeps its own state
$.store.getkeeps its own state
$.store.setkeeps its own state
$.ui.statusdraws interface

How do I install nosleep?

  1. Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
    claude --version
  2. Read its footprint. This lists every event it hooks and every API call it makes, without running it.
    git clone https://github.com/PhilRoli/claude-mods
    claude plugin validate ./claude-mods/plugins/nosleep
  3. Install it. Run this in your terminal, then /reload-plugins in an open session.
    claude plugin marketplace add PhilRoli/claude-mods && claude plugin install nosleep@claude-mods

Or ask Claude to set it up

Paste this into Claude Code and it installs nosleep for you:

Install the "nosleep" Claude Code mod from https://github.com/PhilRoli/claude-mods/tree/main/plugins/nosleep. Run claude plugin validate on it first and show me what it can access before you enable it.

More from PhilRoli/claude-mods

This repository has 4 Claude Code mods on MCPMods.

  • session-label: After the first prompt, Haiku names the session and a color is picked, so ClaudePulse can show them. (Low risk)
  • session-limit-pause: Tells Claude to wrap up when the 5-hour or weekly usage window is nearly used. (Low risk)
  • train-pause: Tells every Claude Code session to finish up and pause shortly before your TrainTracker train arrives. (Review before installing)