Guides › Using OpenCode Interrupt with Claude
Using OpenCode Interrupt with Claude
Claude works great with the interrupt plugin. The plugin hooks into OpenCode's harness layer, not model-specific APIs, so everything works transparently.
1
Configure OpenCode for Claude
Set up Claude in OpenCode normally (API key, model config). The interrupt plugin does not interfere with model configuration.
2
Add the interrupt plugin
Add "opencode-interrupt-plugin" to opencode.json alongside your Claude config.
3
Use walkie-talkie
Start a Claude session, type /ptt to record, speak your message, type /ptt again to send. Claude responds with full context of what was being discussed.
4
Voice interruption works
When Claude is responding with TTS, just speak. The plugin detects your voice and interrupts Claude mid-generation. The next response includes your correction.
Tips
• Claude's long-form responses benefit most from interruption — you can redirect mid-explanation without losing context.
• TTS streams Claude's responses sentence-by-sentence. If Claude writes code blocks, TTS skips them intelligently.
• The correction injection works with Claude's system prompt — the model sees both the partial response and your spoken correction.
Troubleshooting
Same as general setup. Ensure the plugin appears in opencode plugin list. Check ~/.local/share/opencode/log/ if features are not working.