An OpenCode plugin that runs caffeinate -i while OpenCode is busy, keeping macOS awake during active sessions.
- macOS (uses the built-in
caffeinatecommand) - OpenCode
Add the plugin to your opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@shun-shobon/opencode-caffeinate"]
}OpenCode installs npm plugins automatically on startup using Bun.
- Starts
caffeinatewhen a session becomes busy or retrying. - Stops
caffeinatewhen the session becomes idle.