What this thread does
Do first: Install a package that exports ./gui-experimental with opencode plugin add <package>.
Short answer
OpenCode v2.2.0, dated 2026-10-27, introduced creating, installing, and sharing experimental Desktop plugins. The desktop UI loads plugins from its server; a GUI export adds interface components.
What to do
| Item | Value / action |
|---|---|
| Install example | opencode plugin add opencode-acme-plugin@1.2.0 (documentation example package) |
| Configuration | plugins array in opencode.json(c); use global config for every window |
| GUI entry point | ./gui-experimental |
| Local plugins | Configure directory paths, not single-file paths; relative paths resolve from their config file |
| Discovered project plugins | Direct .ts/.js files and immediate package directories in .opencode/plugins/; a project-root plugins/ folder is not auto-discovered |
| Desktop manager | Settings > Extensions > Plugins, with the app’s own server selected |
| UI-only control | Plugin switch disables only the desktop UI; Reload retries after a failure |
| Disable whole plugin | Prefix its ID with - in plugins, for example -acme |
| List and maintain packages | opencode plugin list; opencode plugin check; opencode plugin update |
| Update rules | Local plugins and exact package revisions are skipped; exact npm versions and full Git commit hashes stay pinned |
Install the intended package, or add its local directory to the config. Configuration-directory changes reload automatically; changes to unwatched local dependencies may require restarting OpenCode. Package startup can use cached plugins while missing packages install in the background.
Limits and open questions
Desktop support remains experimental. The package example illustrates syntax, not a recommended package. TUI-only plugins use cli.json separately. The source does not give a desktop-plugin permission model or a GUI-export stability guarantee.
Not for: OpenCode TUI-only plugins configured in cli.json.
Sources
Checked
2026-11-17; read OpenCode Plugins documentation, OpenCode changelog: v2.2.0; no command was run.
Started from a post by @OpenCode, packaged by the editor. Original post