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.
| Type | Claude code mod |
|---|---|
| Author | PhilRoli |
| Repository | PhilRoli/claude-mods |
| Popularity | no public popularity data yet |
| Category | Interface |
| Security | Low risk (84/100) |
| Rank | #7,829 of 9,397 Claude Code mods; #3,299 in Interface |
| License | MIT |
| Last commit | 2026-10-25 |
| Hooks | 3 events |
| Sees | only the events it hooks |
| Draws on | nothing |
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.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts processes outside the sandbox | Review |
| Writes no files or config | Pass |
| Doesn't read environment variables | Pass |
| Only sees the events it hooks | Pass |
| Doesn't drive Claude | Pass |
| Validator reported problems | Note |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.command.register | |
$.process.run | runs processes |
$.store.delete | keeps its own state |
$.store.get | keeps its own state |
$.store.set | keeps its own state |
$.ui.status | draws interface |
How do I install nosleep?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- 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
- 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)