Open source · MIT · OC Desktop

opencode, at home on the desktop

OC Desktop is the desktop form of opencode: Windows, Linux and macOS run the upstream official release, while HarmonyOS (2in1 / tablet) ships as two third-party editions — HarmonyOS Edition (in-process Node + ArkWeb, no Electron) and Electron on HarmonyOS Edition (Electron runtime) — and Android ships as a third Android Edition (in-process Node + the system WebView). The opencode server lives inside the app itself and the official Web UI loads same-origin over a local port — zero upstream changes.

  • Windows
  • Linux
  • macOS
  • HarmonyOS
  • Android

Three mobile editions, one baseline opencode v2.2.5 · HarmonyOS Edition — in-process Node v24.2 + ArkWeb, no Electron · Electron on HarmonyOS Edition — Electron 37 · Android Edition — in-process Node v24.2 + system WebView
Windows / Linux / macOS are distributed by upstream opencode (BETA) · downloads and source point at the official channels

OC Desktop for HarmonyOS in light theme: the new-session screen with DeepSeek V4 Flash selected; the UI itself is Simplified Chinese OC Desktop for HarmonyOS in dark theme: the new-session screen with DeepSeek V4 Flash selected; the UI itself is Simplified Chinese

OC Desktop · Electron on HarmonyOS Edition (the UI itself is Simplified Chinese) — the shot follows the theme

why OC Desktop

Why OC Desktop

The complete opencode experience, folded into a real desktop app.

Upstream opencode, zero changes

The official Web UI and agent core run as-is — the project only applies idempotent patches. Whenever opencode ships, the new capabilities come along.

In-process, same-origin

The server starts inside the app and the UI loads same-origin over a local port. Everything stays on the machine — no CORS, no cloud relay, no account.

Gaps filled for mobile platforms

A terminal PTY and external processes are unavailable on HarmonyOS / Android, so plain-JS tools override shell / grep / glob and Git runs in-process — the capability lands in the app itself.

Restrained permissions, branded

Only the permissions it needs — network plus document directories. Window title, UI and icons are unified as OC Desktop instead of the upstream brand.

pick your desktop

Pick your desktop

One app, four desktop shapes — three mobile editions plus the upstream release. The one you need is right below.

OC Desktop · HarmonyOS Edition

in-process Node + ArkWeb · 2in1 / tablet · third-party port
  • Upstream baseline opencode v2.2.5 (branch v2)
  • No Electron, no Chromium: Node v24.2.0 runs inside the app process via @fellow99/node-bridge (dlopen + node::Start)
  • ArkWeb loads the official Web UI same-origin from 127.0.0.1:<random port>
  • SQLite sessions (node:sqlite) in the app sandbox · credentials never leave the device
  • Node v24.2 · 5 idempotent patches · jitless compat build by default · 5 rounds of real-device verification
  • Payload served read-only from resfile · /api/info + SPA + SSE green on device

OC Desktop · Electron on HarmonyOS Edition

Electron-on-HarmonyOS · 2in1 / tablet · third-party port
  • Upstream baseline opencode v2.2.5 (branch v2)
  • Electron-on-HarmonyOS runtime (Electron 37 / Node 22 / Chromium 138)
  • The official Web UI frontend is reused 100%, loaded same-origin, fully branded
  • On-device data directory mapping + SQLite session persistence (better-sqlite3)
  • Plain-JS HarmonyOS tools: shell, grep, glob
  • 8 idempotent patches · real-device verified on v2.0.26; v2.2.5 build complete (on-device pending)

OC Desktop · Android Edition

in-process Node + system WebView · tablet / foldable / desktop · third-party port
  • Upstream baseline opencode v2.2.5 (branch v2)
  • No bundled browser engine: Node v24.2 runs inside the app process via io.github.fellow99:node-bridge; the system WebView renders the UI
  • The official Web UI loads same-origin from 127.0.0.1:<random port>, fully branded (title, icon, about page)
  • SQLite sessions (node:sqlite) in the app sandbox · cleartext allowed for loopback only · credentials never leave the device
  • Four in-process plugins: Git, search, workspace roots (SAF import) and pnpm
  • 7 idempotent patches · 16 KB-page-aligned runtime · CI releases an APK on v* tags

OC Desktop · Windows / Linux / macOS

upstream official opencode release · BETA
  • Built and distributed by the upstream opencode team
  • Windows: x64 installer (also available via Scoop)
  • macOS: DMG — one for Apple Silicon, one for Intel
  • Linux: .deb / .rpm / .AppImage
  • Or install with brew install --cask opencode-desktop
  • Status: BETA · version tracks upstream releases

OC Desktop is a desktop form built on the open-source project opencode: the Windows / Linux / macOS edition is distributed upstream, while mobile ships as three independent third-party editions — HarmonyOS Edition (in-process Node + ArkWeb, no Electron), Electron on HarmonyOS Edition (Electron runtime) and Android Edition (in-process Node + system WebView). None is affiliated with the upstream team.

Known limits (all mobile editions): terminal PTY, local stdio MCP and tools that spawn external processes (LSP etc.) are unavailable; installing plugins online is off by default. HarmonyOS Edition additionally ships no Chromium at all.

capability matrix

Capability matrix

All three mobile editions share the opencode v2.2.5 core; they differ in runtime, renderer and platform gaps.

CapabilityAndroidHarmonyOSElectron on HOS
Streaming chat / SSE✅✅✅
Image attachment / vision✅✅⬜
File read / write / edit✅✅✅
Shell commands✅✅✅
grep / glob search✅🔶✅
Git (isomorphic-git plugin)✅✅✅
Workspace picker✅✅✅
pnpm in-process✅❌❌
SQLite sessions✅✅✅
Session persistence across restart✅✅🔶
MCP remote (HTTP/SSE)🔶🔶🔶
MCP local (stdio)❌❌❌
Terminal PTY❌❌❌
Web UI branding✅❌✅
Navigation fencing / external links✅⬜✅
Host notifications✅⬜⬜
Background keep-alive🔶❌🔶
JIT-less compatibility form⬜✅⬜
Online plugin installation❌❌❌
Renderersystem WebViewArkWebChromium
Real-device evidence🔶✅🔶

Legend: ✅ available & verified  ·  🔶 partial / limited / unverified  ·  ⬜ not shipped  ·  ❌ unavailable on the platform. Full per-item sourcing: docs/能力对照清单.md in the workspace repo.

how it works

One server, one origin, zero friction

  1. Start the server

    The app starts the opencode server on the device (random port + password).

  2. Load the UI same-origin

    The renderer (system WebView / ArkWeb / Chromium) loads the official Web UI embedded in the server.

  3. The shell takes over

    Credentials and headers, data directories and tool overrides are handled by the shell — the UI needs no changes.

Zero upstream changes · No CORS · No custom protocol · Data stays local