cc-caffeine prevents your computer from sleeping while Claude Code executes tasks. Ideal for developers and remote workers, it enables background processing during commutes or breaks. Connects to Claude Code for uninterrupted automation.
git clone https://github.com/samber/cc-caffeine.gitcc-caffeine prevents your computer from sleeping while Claude Code executes tasks. Ideal for developers and remote workers, it enables background processing during commutes or breaks. Connects to Claude Code for uninterrupted automation.
[{"step":"Install cc-caffeine via pip: `pip install cc-caffeine` or use the integrated command in your IDE.","tip":"Run `cc-caffeine --help` to verify installation and see available options like `--timeout` or `--verbose`."},{"step":"In your terminal or Claude Code workspace, prepend your command with cc-caffeine: `cc-caffeine npm run build:production` or `cc-caffeine --timeout 60 python train_model.py`.","tip":"Use `--timeout` to set a maximum duration (e.g., 30 for 30 minutes) to avoid forgetting to release the lock."},{"step":"Monitor the process in your terminal. cc-caffeine will automatically release the sleep lock when the task finishes or if you interrupt it (Ctrl+C).","tip":"For long-running tasks, pair with `nohup` or `screen` to handle terminal disconnections gracefully."},{"step":"Check system logs or cc-caffeine's output for confirmation that the caffeine was released. Verify your task completed as expected.","tip":"Use `cc-caffeine --status` to check active locks or `cc-caffeine --list` to see historical sessions."}]
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/samber/cc-caffeineCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Use cc-caffeine to prevent my computer from sleeping while [TASK] runs in Claude Code. Monitor the process and automatically release the caffeine lock when the task completes or fails.
``` 🚀 cc-caffeine activated (PID: 4207) 📊 System sleep prevention: ENABLED ⏳ Task duration: 00:00:04 (elapsed) 🔄 Monitoring process: `npm run build:production` ✅ Task completed successfully in 2m 15s 💤 Caffeine released - sleep protection disabled 📋 Summary: - Original sleep timer: 30 minutes - Actual sleep prevention: 2m 15s - Battery impact: Minimal (screen off during execution) 🎯 Next steps: 1. Review build artifacts in `/dist` 2. Deploy to staging if tests pass 3. Manually check battery status after long sessions ```
Agents that listen, think and act for you.
AI assistant built for thoughtful, nuanced conversation
Clinically-validated CBTI for chronic insomnia
A Full Sleep Clinic, From Home
Identity and access management for agents
Real-time code suggestions and automated reviews
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan