Guides › How to Install Whisper.cpp for OpenCode
Whisper.cpp provides fast, local speech-to-text transcription. The interrupt plugin uses it to transcribe walkie-talkie recordings. Everything runs offline on your machine.
git clone --depth 1 https://github.com/ggerganov/whisper.cpp /tmp/whisper-cpp && cmake -S /tmp/whisper-cpp -B /tmp/whisper-cpp/build && cmake --build /tmp/whisper-cpp/build --config Release -j$(nproc)cp /tmp/whisper-cpp/build/bin/whisper-cli ~/.local/bin/whispercurl -fSL https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-base.bin -o ~/.local/bin/ggml-base.binwhisper --help to confirm installation. The plugin auto-detects whisper on next restart.WHISPER_MODEL=~/.local/bin/ggml-small.bin opencodeOPENAI_API_KEY as an alternative — OpenAI API is used first when available and handles accents better.If whisper fails silently, check the model file exists at the expected path. The plugin looks for ~/.local/bin/ggml-base.bin by default. Set WHISPER_MODEL env var to override.
Ready to try it?
Get started free →