Skip to main content
Back

OpenCode Rune Rebuilds Its Desktop Client in Rust for 100x Faster Performance

OpenCode ships an early dev build of its Rust-based desktop client, ditching Electron for native GPU rendering across Mac, Windows, Linux, and the browser.

Repo, Full Access
  • OpenCode released an early dev build of OpenCode Rune, a Rust rewrite of its desktop client.
  • No Electron, no Chromium at startup; claims 10 to 100x faster and lighter than the old app.
  • Runs natively on macOS, Windows, Linux, and in the browser via WebGPU.
  • Uses Ghostty-VT terminals, GPU vector text, and Vello-rendered Office previews.
  • Ships with hot-reloadable Luau plugins and embeddable crates like session-view.
  • Zero automated tests by policy; verification via snapshot rendering and scripted input replay.

OpenCode has published an early dev build of OpenCode Rune, a full rewrite of its desktop client in Rust using the team’s Rune framework. Rust handles the native shell, layout, and GPU rendering, while Chromium is confined to an optional browser process. The codebase targets macOS, Windows, Linux, and browsers through wasm32 and WebGPU.

The repository reports a 10-to-100-fold improvement in speed and resource use over the previous desktop app. Reproducible benchmark methodology would be needed to compare that range across Electron, Tauri, and native clients, but the architectural goal is clear: reduce cold-start cost, memory use, and input latency in an interface that continuously updates terminals, diffs, timelines, and streamed model output.

A thin client by design

Rune runs as a front end to a separate OpenCode service. Developers start the backend with opencode serve --service or through OpenCode Desktop, then launch Rune. The client discovers the service at http://127.0.0.1:4096 or through ~/.config/opencode/service.json; server startup and lifecycle remain outside the Rune process.

  1. Install and start the OpenCode service.
  2. Launch the Rune client.
  3. Rune locates the local service and connects to it.

The dev channel provides signed installers across the supported desktop platforms:

Platform Architectures Packages Background updates
macOS Apple Silicon, Intel DMG Yes
Windows x64, Arm64 Setup installer Yes
Linux x64, Arm64 AppImage, DEB, RPM Not listed
Web wasm32 WebGPU target Deployment-specific
OpenCode Rune showing an agent session, flowchart, and split diff review
OpenCode Rune combines agent sessions, diagrams, and code review in a GPU-rendered interface.

GPU rendering with isolated Chromium

The rendering stack contains several components that distinguish Rune from desktop clients built around a persistent web view:

  • Vector text rendering: Windfoil calculates each glyph’s coverage from its vector outline on the GPU. The approach is designed to preserve sharp text while zooming or moving through terminals and diffs.
  • On-demand browser process: Opening the browser pane downloads and starts an isolated Chromium Embedded Framework sidecar. Installations that never use the pane avoid that runtime cost.
  • Native developer surfaces: Terminal tabs use Ghostty-VT, while large code views and split diffs use virtualized, syntax-highlighted rendering.
  • GPU-backed content: The client supports generative UI, vector diagrams, and Vello-based previews for Word, Excel, and PowerPoint files.
  • Local state and input: Features include local Hex voice dictation, SQLite storage, and a memory-mapped draft journal intended to preserve edits after crashes.
  • Internationalization: The interface includes 63 locales and right-to-left layout support.
  • Live plugin development: Built-in plugins use strict Luau and reload in place with --plugin-hot, allowing UI and feature work without another rustc cycle.
OpenCode Rune showing side tabs, a session timeline, and a Ghostty terminal pane
The client integrates session navigation and terminal output within the same native rendering pipeline.

Verification runs through the binary

The repository’s stated policy excludes conventional automated test suites and mocks. Verification centers on executable inspection tools that render and exercise the application itself:

  • --snap renders any scene, including the 111 playground stories, offscreen to a PNG.
  • --tree dumps the live element tree for structural inspection.
  • --script replays scripted user input through the running application.
  • Pre-push checks enforce architectural layers, file-size limits, and directory structure.

These tools can expose rendering, layout, and interaction regressions when the relevant scenes and scripts exist. Coverage depends on maintaining those fixtures, and logic paths absent from them lack the protection usually provided by unit and integration tests. Teams considering the codebase will need to decide whether its application-level verification model matches their release requirements.

Four tiers keep features apart

The source tree uses four tiers to limit coupling and let contributors work at the highest practical layer:

Tier Contents Boundary
1 Built-in strict Luau plugins Hot-reloadable feature work without Rust compilation
2 Rust feature crates Feature crates avoid dependencies on one another
3 Shell kernel, UI foundation, headless runtime, and embeddable views Shared application and rendering infrastructure
4 Desktop and web hosts, installers, and packaging Platform-specific delivery

Embeddable crates such as session-view and opencode-code-view allow other Rune applications to reuse substantial interface components through Cargo dependencies. The same separation also gives the project distinct hosts for native desktop builds and the browser’s WebGPU runtime.

The current fit and the open questions

The early build is most relevant to existing OpenCode users evaluating startup time, resident memory, typing latency, terminal behavior, and large-diff performance. It also gives Rust UI teams a working reference for combining GPU rendering, an optional Chromium sidecar, embeddable feature crates, and hot-reloaded Luau plugins.

Production adoption carries several unresolved questions: the repository’s performance claim needs published benchmarks, the unconventional verification policy shifts coverage toward maintained scenes and scripts, and the dev channel may contain incomplete or changing behavior. Those constraints define the build’s current role as an implementation preview and an architecture developers can inspect, profile, and test against their own workloads.