Loading articleโฆ
Loading 4weirdโฆ
Loading 4weirdโฆ
Loading articleโฆ
DocsOpenCode
Docs ยท desktop ยท opencode
The desktop app drives a user-installed OpenCode binary โ never a bundled copy. Pick cli mode (opencode run per fix) or server mode (long-lived opencode serve), then Export, Fix, or Heal from the desktop panel.
Requirements
The desktop app probes PATH for the binary and degrades gracefully when it is missing โ status line, Enable toggle, and Export/Fix/Heal all fall back to an install hint instead of crashing.
opencode binary for your OS (Windows: package manager or npm) and confirm opencode --version prints from a fresh shell.cli or server below. The status dot goes green when the bridge can reach the binary.Two modes
Both modes use your installed binary. CLI mode cold-boots per fix; server mode keeps one persistent process so fixes skip the cold boot.
cli (default)
opencode run per fix
Headless opencode run -f BUGFIX-<game>-<stamp>.md per fix. Simplest setup, nothing to keep alive โ best when you heal rarely.
server
opencode serve --port 4096
Long-lived sidecar (OPENCODE_MODE=server, OPENCODE_SERVER_URL=http://127.0.0.1:4096). Fixes skip the per-run boot โ best for tight Heal loops.
Next steps