moshi-opencode-hooks
v1.0.19
Published
OpenCode plugin for Moshi live activity integration
Readme
moshi-opencode-hooks
OpenCode plugin that sends real-time events to the Moshi iOS app for live activity integration.
Motivation
Moshi is an iOS SSH app that provides live activity widgets on the lock screen and Dynamic Island. While it already supports Cloud Code, this plugin brings the same live activity experience to OpenCode users.
Track your coding session progress in real-time:
- See which tool is currently running
- Get notified when permissions are needed
- Know when your task completes
Setup
# 1. Install the plugin (pulls from npm)
bunx moshi-opencode-hooks setup
# 2. Add your Moshi token
bunx moshi-opencode-hooks token YOUR_TOKEN_HEREThat's it! OpenCode will now send events to Moshi whenever you start a session or run a tool.
Manual Setup
Add to ~/.config/opencode/opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["moshi-opencode-hooks"]
}Requirements
- OpenCode
- Moshi iOS app with Pro subscription
Moshi Token
Get your token from the Moshi iOS app:
- Open Moshi → Settings → Agent Hooks
- Copy the hook token
Uninstall
bunx moshi-opencode-hooks uninstallHow It Works
The plugin hooks into OpenCode's plugin system and subscribes to session and tool events. When events occur, they're normalized and POSTed to the Moshi API endpoint, which pushes updates to your live activity.
License
MIT
