opencode/packages/desktop-electron
2026-03-16 02:33:48 +00:00
..
icons
resources
scripts feat(windows): add arm64 release targets for cli and desktop (#16696) 2026-03-12 00:25:09 +00:00
src desktop: multi-window support in electron (#17155) 2026-03-13 09:18:27 +08:00
.gitignore
AGENTS.md
electron-builder.config.ts
electron.vite.config.ts fix(desktop-electron): fix resource loading under file:// protocol (#17125) 2026-03-12 12:19:44 +08:00
package.json release: v1.2.27 2026-03-16 02:33:48 +00:00
README.md
sst-env.d.ts
tsconfig.json fix(desktop-electron): fix resource loading under file:// protocol (#17125) 2026-03-12 12:19:44 +08:00

OpenCode Desktop

Native OpenCode desktop app, built with Tauri v2.

Development

From the repo root:

bun install
bun run --cwd packages/desktop tauri dev

This starts the Vite dev server on http://localhost:1420 and opens the native window.

If you only want the web dev server (no native shell):

bun run --cwd packages/desktop dev

Build

To create a production dist/ and build the native app bundle:

bun run --cwd packages/desktop tauri build

Prerequisites

Running the desktop app requires additional Tauri dependencies (Rust toolchain, platform-specific libraries). See the Tauri prerequisites for setup instructions.