Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By jul-shv0.1.0MITIn 1 marketplace
Keeps your Mac awake while Claude Code works, even with the lid closed.
Claude loads one when your task matches it, or you run it by name.
1 critical · 2 cautions to review before installing
A hook runs before every tool call and can block or approve it
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
A Claude Code plugin that lets you close your MacBook lid while Claude works.
Claude Code already has built-in caffeinate -i support that prevents idle sleep during active work. But it doesn't prevent system sleep — so if you close your laptop lid, your Mac sleeps and Claude stops.
This plugin adds the -s flag, which prevents sleep even when the lid is closed (while on AC power). It's opt-in: run /caffeinate in your session when you want to walk away with the lid closed.
/caffeinate:caffeinate
That's it. Your Mac will stay awake — even with the lid closed — while Claude is actively working. The caffeinate process automatically expires 30 minutes after Claude's last tool use, so your Mac will sleep normally once Claude is done.
To disable mid-session:
rm /tmp/claude-caffeinate-enabled
/caffeinate creates a flag file at /tmp/claude-caffeinate-enabledPreToolUse hook checks for that flagcaffeinate -is -w <claude_pid> -t 1800/caffeinate-w <pid> — tied to the Claude Code process. If Claude crashes or is force-quit, caffeinate exits immediately. No orphans.-t 1800 — 30-minute deadman switch. If Claude stops calling tools, your Mac can sleep within 30 minutes.-is — prevents idle sleep + system sleep (lid close on AC power). Does not prevent sleep on battery.Add the marketplace, then install:
/plugin marketplace add jul-sh/claude-plugins
/plugin install caffeinate@jul-sh
Or add to your ~/.claude/settings.json:
{
"enabledPlugins": {
"caffeinate@jul-sh": true
},
"extraKnownMarketplaces": {
"jul-sh": {
"source": {
"source": "github",
"repo": "jul-sh/claude-plugins"
}
}
}
}
caffeinate command)-s flag only prevents lid-close sleep on AC)Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
caffeinate@jul-sh is listed by jul-sh/claude-plugins — review the source before installing
npx claudepluginhub jul-sh/claude-plugins --plugin caffeinatePlugins from other owners that cover similar ground