https://github.com/shun-shobon/opencode-caffeinate
OpenCode plugin that keeps macOS awake during active sessions.
https://github.com/shun-shobon/opencode-caffeinate
caffeinate opencode plugin
Last synced: 5 months ago
JSON representation
OpenCode plugin that keeps macOS awake during active sessions.
- Host: GitHub
- URL: https://github.com/shun-shobon/opencode-caffeinate
- Owner: shun-shobon
- License: mit
- Created: 2026-01-12T04:50:52.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2026-01-20T18:05:55.000Z (5 months ago)
- Last Synced: 2026-01-20T20:24:13.881Z (5 months ago)
- Topics: caffeinate, opencode, plugin
- Language: TypeScript
- Homepage:
- Size: 90.8 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
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 `caffeinate` command)
- OpenCode
## Install
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.
## Behavior
- Starts `caffeinate` when a session becomes busy or retrying.
- Stops `caffeinate` when the session becomes idle.