OpenCode plugin that keeps macOS awake during active sessions.
npm install @shun-shobon/opencode-caffeinateAn OpenCode plugin that runs caffeinate -i while OpenCode is busy, keeping macOS awake during active sessions.
- macOS (uses the built-in caffeinate command)
- OpenCode
Add the plugin to your opencode.json:
``json`
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@shun-shobon/opencode-caffeinate"]
}
OpenCode installs npm plugins automatically on startup using Bun.
- Starts caffeinate when a session becomes busy or retrying.caffeinate
- Stops when the session becomes idle.
- Local plugins can be placed in .opencode/plugin/ or ~/.config/opencode/plugin/.~/.cache/opencode/node_modules/`.
- npm plugins are cached in