OpenCode plugin that sends real-time events to the Moshi iOS app for live activity integration.
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
# 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.
Add to ~/.config/opencode/opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["moshi-opencode-hooks"]
}- OpenCode
- Moshi iOS app with Pro subscription
Get your token from the Moshi iOS app:
- Open Moshi → Settings → Agent Hooks
- Copy the hook token
bunx moshi-opencode-hooks uninstallThe 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.
MIT