SuperWhisper voice integration plugin for OpenCode.
Get voice notifications when your AI coding tasks complete, and respond with your voice. Your voice response is sent back to OpenCode as the next prompt, creating a hands-free coding loop.
- OpenCode v1.0+
- SuperWhisper app for macOS
opencode run "install https://raw.githubusercontent.com/superultrainc/opencode-superwhisper/main/install.txt"Or manually add to your ~/.config/opencode/opencode.json:
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@superwhisper/opencode"]
}OpenCode will resolve the plugin from npm automatically.
You speak → OpenCode works → Plugin notifies SuperWhisper → You speak back → loop
- Task completes → OpenCode fires
session.idle - Plugin extracts the response → fetches the last assistant message
- Plugin notifies SuperWhisper → writes message to temp file, opens deeplink
- SuperWhisper shows notification → displays summary with voice recording UI
- You speak your response → SuperWhisper transcribes and writes to response file
- Plugin reads response → polls the response file, sends back to OpenCode
- OpenCode continues → processes your voice input as the next instruction
| OpenCode Event | SuperWhisper Status | Description |
|---|---|---|
session.idle |
completed |
Task finished |
session.error |
error |
An error occurred |
permission.asked |
permission |
Tool needs approval |
question.asked |
question |
Agent is asking a question |
bun install
bun test
bun run typecheckBuild and install to your local OpenCode plugin folder:
bun run install-localOr watch for changes and auto-install on save:
bun run devBoth commands bundle the plugin into a single .js file and copy it to ~/.config/opencode/plugin/superwhisper.js. OpenCode picks it up on next session.
| Variable | Default | Description |
|---|---|---|
SUPERWHISPER_DEBUG |
unset | Set to 1 to enable debug logging (outputs to OpenCode's log) |
src/
index.ts # Plugin entry point and event handlers
types.ts # Types, interfaces, constants
deeplink.ts # Deeplink URL building
message.ts # Message extraction and summary
poll.ts # Response file polling
normalize.ts # Question/permission response normalization
index.test.ts # Tests
MIT