Prevents your computer from sleeping while Claude Code works hard
This plugin is not yet in any themed marketplace. To install it, you'll need to add it from GitHub directly.
Choose your preferred installation method below
A marketplace is a collection of plugins. Every plugin gets an auto-generated marketplace JSON for individual installation, plus inclusion in category and themed collections. Add a marketplace once (step 1), then install any plugin from it (step 2).
One-time setup for access to all plugins
When to use: If you plan to install multiple plugins now or later
Step 1: Add the marketplace (one-time)
/plugin marketplace add https://claudepluginhub.com/marketplaces/all.json
Run this once to access all plugins
Step 2: Install this plugin
/plugin install cc-caffeine@all
Use this plugin's auto-generated marketplace JSON for individual installation
When to use: If you only want to try this specific plugin
Step 1: Add this plugin's marketplace
/plugin marketplace add https://claudepluginhub.com/marketplaces/plugins/cc-caffeine.json
Step 2: Install the plugin
/plugin install cc-caffeine@cc-caffeine
Transform your 9-to-5 into 9:30-to-4:30. Arrive 30min later, leave 30min earlier, while getting the same work done because Claude Code stays powered in your backpack while commuting.
Work smarter, not longer.
Tired of your laptop going to sleep during that perfect coding session because you left your desk 10 minutes? Frustrated when Claude Code disconnects mid-commute because your computer decided it was "idle"?
cc-caffeine is your personal rebellion against screen timeout. It keeps your machine awake so you can:
/plugin marketplace add samber/cc
/plugin install cc-caffeine@samber
cc-caffine status:
- Claude Code is idle
- Claude Code is working hard
"I'll never choose between coding and traveling again. With cc-caffeine, I can do both. My laptop will never sleep while I traverse cities in 5G, my Claude Code will stay connected in my backpack, and my productivity will soar. The future of mobile development is here, and it smells like coffee."
Automatic Intelligence: cc-caffeine knows when Claude Code is working and prevents your computer from sleeping. Period.
System Tray Chic: A tiny โ๏ธ icon in your status bar to know instantly if you're protected.
Perfect Sessions: Multiple simultaneous Claude Code sessions? No problem.
Zero Configuration: Install, run, forget. It's like coffee, but for your computer.
Hooks will be configured automatically if you import the project as a Claude Code plugin.
Otherwise, configure your Claude Code hooks for a seamless experience:
{
"UserPromptSubmit": [
{
"hooks": [
{
"type": "command",
"command": "npx cc-caffeine caffeinate"
}
]
}
],
"PreToolUse": [
{
"hooks": [
{
"type": "command",
"command": "npx cc-caffeine caffeinate"
}
]
}
],
"PostToolUse": [
{
"hooks": [
{
"type": "command",
"command": "npx cc-caffeine caffeinate"
}
]
}
],
"Notification": [
{
"hooks": [
{
"type": "command",
"command": "npx cc-caffeine uncaffeinate"
}
]
}
],
"Stop": [
{
"hooks": [
{
"type": "command",
"command": "npx cc-caffeine uncaffeinate"
}
]
}
],
"SessionEnd": [
{
"hooks": [
{
"type": "command",
"command": "npx cc-caffeine uncaffeinate"
}
]
}
]
}
cc-caffeine uses an intelligent client-server approach:
caffeinate
/uncaffeinate
) - No Electron loading, just fast JSON writesserver
) - Headless Electron app that monitors sessions and manages power# Start server + system tray
# (optional - will be started automatically)
npx cc-caffeine server
claude -p 'Write 10 pages of "lorem ipsum"'
npx cc-caffeine status
Manual switch:
# Activate caffeine for your coding session
echo '{"session_id": "session-abcd"}' | npx cc-caffeine caffeinate
# Your session is now protected!
# Claude can keep working while you sip coffee
# When you're done (or after 15 minutes of auto-cleanup)
echo '{"session_id": "session-abcd"}' | npx cc-caffeine uncaffeinate
Every sponsor gets a virtual high-five and the knowledge that somewhere, a developer is "coding" from a ski track because of you. โจ
PS: If you encounter bugs, remember that even the best coffee has some grounds sometimes. But most of the time, it works like thunder. โกโ
MIT - Use it, modify it, share it. Like good coffee, it's meant to be shared.
0.2.0