whisper-anywhere-opencode
v1.3.0
Published
opencode plugin for whisper-anywhere voice dictation
Downloads
565
Maintainers
Readme
whisper-anywhere-opencode
opencode plugin for whisper-anywhere voice dictation.
Hold your configured hotkey, speak, release — text appears directly in the opencode TUI chat input.
Prerequisites
- whisper-anywhere must be installed and working
- opencode must be installed
Install
Via npm (recommended)
npm install -g whisper-anywhere-opencodeThen add to your opencode.json:
{
"plugin": ["whisper-anywhere-opencode"]
}Via file copy (no npm needed)
git clone https://github.com/misiekhardcore/whisper-anywhere-opencode
mkdir -p ~/.config/opencode/plugins
cp whisper-anywhere-opencode/whisper-anywhere.ts ~/.config/opencode/plugins/opencode auto-discovers plugins in ~/.config/opencode/plugins/ — no config changes needed.
Usage
- Start opencode — the plugin spawns
whisper-anywhere --stdoutautomatically - Press your configured whisper-anywhere hotkey, speak, release
- Transcribed text appears in the TUI chat input
- Type
/voiceto toggle dictation on/off
How it works
The plugin spawns whisper-anywhere --stdout as a child process. When you release the hotkey, whisper-anywhere writes {"text": "..."} as a JSON line to stdout. The plugin reads this line and injects the text into the opencode TUI via client.tui.appendPrompt().
When the plugin is not loaded (opencode not running), whisper-anywhere falls back to ydotool for global hotkey typing.
License
MIT
