@shun-shobon/opencode-caffeinate
v0.1.1
Published
OpenCode plugin that keeps macOS awake during active sessions.
Downloads
16
Readme
opencode-caffeinate
An OpenCode plugin that runs caffeinate -i while OpenCode is busy, keeping macOS awake during active sessions.
Requirements
- macOS (uses the built-in
caffeinatecommand) - OpenCode
Install
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.
Behavior
- Starts
caffeinatewhen a session becomes busy or retrying. - Stops
caffeinatewhen the session becomes idle.
OpenCode plugin notes
- Local plugins can be placed in
.opencode/plugin/or~/.config/opencode/plugin/. - npm plugins are cached in
~/.cache/opencode/node_modules/.
