Why We Deleted Electron and Rewrote OpenCluely in Rust and Tauri
How we shrank a ~150 MB Electron bundle into a ~6 MB native Windows app, eliminated missing DLL errors, and tracked down a real AVX-512 crash on CI builds.
Moving OpenCluely from Electron to Tauri v2, Rust, and Svelte 5 cut the Windows installer down to ~6 MB, replaced clunky Python voice wrappers with built-in whisper.cpp and WASAPI capture, and removed external runtime dependencies.
Jump to a section +
OpenCluely v1 worked, and over 10,000 people downloaded it. Yet it carried all the classic baggage of an Electron app: a huge installer, bundled Chromium memory overhead, and fragile external setup scripts for Python and Whisper.
For V2, we decided to start fresh with Rust, Tauri v2, Win32 APIs, and Svelte 5.
What Actually Changed Under the Hood
Here is what throwing away the old wrapper bought us on Windows:
- Installer size dropped from ~150 MB to ~6 MB: Tauri uses the system WebView2 runtime already present on Windows 10 and 11 (with an automatic silent bootstrapper just in case).
- Static C++ runtime linking: Users on fresh Windows installs no longer hit missing
MSVCP140.dllpopups, because V2 compiles cleanly with static MSVC linking. - Real dual-channel Windows audio: Instead of shelling out to Python scripts, native Rust code captures both your microphone and system speaker loopback simultaneously via WASAPI, runs local Silero VAD speech boundary detection, and hands audio directly to embedded
whisper.cpp. - Seven AI providers with automatic backup: If Gemini hits a rate limit before the first token arrives, the router automatically fails over to your second enabled provider like Groq, OpenRouter, Claude, OpenAI, or Ollama.
A Real Bug Hunt From Our First CI Release (0xc000001d)
Rewriting in native Rust also brought one classic real-world lesson when we shipped our very first automated GitHub Actions build (v2.0.0).
Running voice transcription locally on our Intel Core i5-1340P laptop worked smoothly during testing. Yet as soon as we downloaded the exact .exe built by GitHub Actions and unmuted the mic, the app crashed within 2 seconds.
Windows Event Viewer gave away the clue right away: Exception code: 0xc000001d (STATUS_ILLEGAL_INSTRUCTION). Checking the exact byte offset in the executable showed an AVX-512 vmovups zmm0 instruction baked into ggml-cpu.
Here was why: whisper.cpp builds with GGML_NATIVE=ON by default. GitHub Actions Windows runners run on server CPUs that support AVX-512, so CMake detected the runner VM features and compiled AVX-512 instructions into the binary. Consumer Intel 12th, 13th, and 14th Gen laptops removed AVX-512, so the moment Silero VAD kicked in after unmuting, the CPU tripped on an illegal instruction.
Setting GGML_NATIVE=OFF, disabling all AVX-512 flags, and targeting portable AVX2 in both .cargo/config.toml and our GitHub release workflow fixed the crash immediately across consumer Windows PCs while keeping local Whisper transcription blazing fast.
Built Cleanly Open Source
Every line of the V2 codebase, tests, and automated Windows release workflow sits cleanly in our main branch on GitHub, while the older Electron codebase stays preserved safely on the v1 branch for Mac and Linux users.