Answer: You add a command or panel to the opencode GUI by calling ctx.add with the Command or Panel type from @opencode/plugin/gui. For a command, pass an object with fields like id, title, and run; for a panel, pass an object with id, region: "side", list, and render. Status: Confirmed Entry: tool/opencode/features/register-commands-panels Revision: 2 Digest: sha256:4ee6f9e67e8d502d (changes whenever the content changes) Timeline: Created: 2026-11-13T03:55:49Z Last changed: 2026-11-19T13:34:49Z (panel id field: — → id : string) Last verified: 2026-11-20T13:44:38Z Next check: 2026-11-21T13:44:38Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of panel region | region: "side" | [1] | 2026-11-20 command id field | id : string | [1] | 2026-11-20 panel id field | id : string | [1] | 2026-11-20 Sources: [1] opencode. "GUI | OpenCode". https://opencode.ai/docs/build/plugins/gui/ Role: primary. Accessed: 2026-11-20T13:44:38Z Quote: "Panel contributes tabs to a session’s side region ( region: "side" )." (Supports: panel region) Quote: "interface Command { id : string title : string" (Supports: command id field) Quote: "interface Panel { id : string region : "side"" (Supports: panel id field) 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:49Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:44:38Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:44:38Z Last attempt: 2026-11-20T13:44:38Z Notes and limitations: Extracted automatically from a single official source (section "Registries"). Related: https://latestn.com/tool/opencode/features/use-web-search How do opencode members use web search in a prompt? https://latestn.com/tool/opencode/features/warming-interval-timing How often does opencode send warming requests and when does it stop? https://latestn.com/tool/opencode/install-and-setup/authenticate-opencode-for-acp How do I authenticate opencode before using it from an ACP client? https://latestn.com/tool/opencode/features/opencode-interfaces What interfaces does opencode come in (CLI, desktop, web)? https://latestn.com/tool/opencode/features/providers-api-endpoints Which API endpoints does the opencode Console Providers API support? https://latestn.com/tool/opencode/features/read-file-line-range How do I read a specific range of lines from a file with opencode's read tool? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-19T13:34:49Z | changed | panel id field: — → id : string | [1] 2026-11-19T13:34:49Z | changed | command id field: — → id : string | [1] 2026-11-19T13:34:49Z | changed | panel region: — → region: "side" | [1] 2026-11-19T13:34:49Z | changed | withdraw function: ctx.add returns a function that withdraws the item early. → — | [1] 2026-11-19T13:34:49Z | changed | panel example: ctx .add (Panel , { id : "main" , region : "side" , → — | [1] 2026-11-19T13:34:49Z | changed | panel description: Panel contributes tabs to a session’s side region ( region: "side" ). → — | [1] 2026-11-19T13:34:49Z | changed | command description: Command adds an action to the command palette, Settings > Shortcuts , and optionally the composer’s / menu. → — | [1] 2026-11-19T13:34:49Z | changed | command example: ctx .add (Command , () => ({ id : "open" , title : ctx .t ( "command.open" ) , run : () => open () })) → — | [1] 2026-11-19T13:34:49Z | changed | method: ctx.add → — | [1] 2026-11-13T03:55:49Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/opencode/features/register-commands-panels/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/features/register-commands-panels POST: https://latestn.com/dispute/tool/opencode/features/register-commands-panels with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/opencode/features/register-commands-panels?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I add a command or panel to the opencode GUI via a plugin? Revision 2, last verified 2026-11-20T13:44:38Z. https://latestn.com/tool/opencode/features/register-commands-panels (accessed 2026-11-21T09:53:01Z). @misc{LatestN_tool_opencode_features_register_commands_panels_r2, title = {How do I add a command or panel to the opencode GUI via a plugin?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/opencode/features/register-commands-panels}}, note = {Revision 2; digest sha256:4ee6f9e67e8d502d; last verified 2026-11-20T13:44:38Z; accessed 2026-11-21T09:53:01Z} } 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/features/register-commands-panels