Answer: Build the bundle with the Vite preset from @opencode/plugin/gui/vite by configuring vite.config.ts with the gui() plugin and running vite build. The preset emits one CommonJS file and inlines every dynamic import(). Status: Confirmed Entry: tool/opencode/integrations/build-gui-plugin-bundle Revision: 2 Digest: sha256:b90cb8581af924a8 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:55:49Z Last changed: 2026-11-20T13:44:37Z (default outFile: — → dist/gui-experimental.cjs) Last verified: 2026-11-20T13:44:37Z Next check: 2026-11-21T13:44:37Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of build command | vite build | [1] | 2026-11-20 preset import | @opencode/plugin/gui/vite | [1] | 2026-11-20 default entry | src/gui.tsx | [1] | 2026-11-20 default outFile | dist/gui-experimental.cjs | [1] | 2026-11-20 devDependencies | bun add -d vite vite-plugin-solid solid-js | [1] | 2026-11-20 Sources: [1] opencode. "GUI | OpenCode". https://opencode.ai/docs/build/plugins/gui/ Role: primary. Accessed: 2026-11-20T13:44:37Z Quote: "vite build" (Supports: build command) Quote: "Build it with the Vite preset from @opencode/plugin/gui/vite" (Supports: preset import) Quote: "It defaults to src/gui.tsx ." (Supports: default entry) Quote: "It defaults to dist/gui-experimental.cjs ." (Supports: default outFile) Quote: "bun add -d vite vite-plugin-solid solid-js" (Supports: devDependencies) Snapshot SHA-256: 326eaeb3ad935eb18bbcc5bbb10c7a6ba4d7a1eb6a469b5d3f4f1ca35f1407ee (captured 2026-11-19T13:34:47Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-19T13:34:48Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:44:37Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:44:37Z Last attempt: 2026-11-20T13:44:37Z Notes and limitations: Extracted automatically from a single official source (section "Build the bundle"). Related: https://latestn.com/tool/opencode/integrations/call-provider-directly How do I call an opencode Console provider directly from my own tools? https://latestn.com/tool/opencode/integrations/call-rpc How do I call an opencode plugin RPC over HTTP or from another plugin? https://latestn.com/tool/opencode/integrations/call-rpc-method How do I call an opencode RPC method over HTTP or from a plugin? https://latestn.com/tool/opencode/install-and-setup/subscribe-and-connect-go How do I subscribe to OpenCode Go and connect it in the TUI? https://latestn.com/tool/opencode/install-and-setup/v2-breaking-changes What are the breaking changes when upgrading opencode from V1 to V2? https://latestn.com/tool/opencode/integrations/add-mcp-server How do I add an MCP server to opencode? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-20T13:44:37Z | changed | default outFile: — → dist/gui-experimental.cjs | [1] 2026-11-20T13:44:37Z | changed | devDependencies: vite vite-plugin-solid solid-js → bun add -d vite vite-plugin-solid solid-js | [1] 2026-11-20T13:44:37Z | changed | output format: one CommonJS file → — | [1] 2026-11-20T13:44:37Z | changed | default output file: dist/gui-experimental.cjs → — | [1] 2026-11-13T03:55:49Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/opencode/integrations/build-gui-plugin-bundle/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/opencode/integrations/build-gui-plugin-bundle POST: https://latestn.com/dispute/tool/opencode/integrations/build-gui-plugin-bundle with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/opencode/integrations/build-gui-plugin-bundle?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I build the opencode GUI plugin bundle? Revision 2, last verified 2026-11-20T13:44:37Z. https://latestn.com/tool/opencode/integrations/build-gui-plugin-bundle (accessed 2026-11-21T09:50:43Z). @misc{LatestN_tool_opencode_integrations_build_gui_plugin_bundle_r2, title = {How do I build the opencode GUI plugin bundle?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/opencode/integrations/build-gui-plugin-bundle}}, note = {Revision 2; digest sha256:b90cb8581af924a8; last verified 2026-11-20T13:44:37Z; accessed 2026-11-21T09:50:43Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/opencode/integrations/build-gui-plugin-bundle