Skip to content

[FEATURE]:Official - OpenCode VS Code extension #11176

Open

Description

@c2b247

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Summary

I’d like OpenCode to be available as an official Visual Studio Code extension, so it can run as a native panel/side view within VS Code instead of only as a standalone terminal UI.

Problem

Right now, the typical way to use OpenCode is through a terminal. This works, but it has a few practical limitations for developers who live inside VS Code:

  • Switching back and forth between the terminal and the editor breaks flow.
  • The TUI doesn’t behave like a first‑class VS Code panel (e.g. resizing, layout persistence, focus, keyboard shortcuts).
  • It’s harder to integrate OpenCode workflows with other VS Code features (source control, problems view, outline, etc).

For those of us using OpenCode as a central coding agent, having it only in the terminal makes the experience feel more like a separate tool than a tightly integrated part of the IDE.

Proposal

Create an official Opensource OpenCode VS Code extension that:

  • Renders OpenCode in a dedicated view/panel (e.g. a sidebar or main panel) instead of just a terminal.
  • Uses VS Code’s Webview / custom view / panel APIs (or similar) so:
    • The OpenCode interface can be docked, resized, and positioned like other panels.
    • Layout is remembered between sessions.
    • Focus, keybindings, and navigation feel native to VS Code.

Possible features for the extension

  • Integrated agent panel: A persistent OpenCode panel where the agent UI lives, rather than a transient terminal.
  • Project‑aware context: Automatically picks up the current workspace, repo, and open files, using VS Code APIs instead of shell heuristics.
  • Commands & keybindings:
    • “Open OpenCode panel” command.
    • Quick commands to send the current file/selection to OpenCode.
    • Customizable hotkeys for common agent actions.
  • Status bar integration: Simple status indicator (e.g. agent running, thinking, idle, error).
  • Configuration UI: VS Code settings page for OpenCode config, keys, backends, etc., instead of editing config only via files/CLI.

Benefits

  • Better UX inside VS Code: OpenCode feels like a first‑class citizen, similar to other popular AI/code tools that ship as VS Code extensions.
  • Less context switching: Developers can keep OpenCode visible alongside editor, terminal, and source control.
  • More discoverable and approachable: Installing from the VS Code marketplace greatly lowers the barrier to trying OpenCode for new users.
  • Easier integration with other tools: Extension can hook into VS Code’s APIs to provide richer workflows (e.g. running specific tasks, opening files suggested by the agent, etc.).

Additional Context

My main use case is running OpenCode as a primary coding agent while staying entirely inside VS Code. Having an official extension that opens properly in a VS Code pane (instead of just a terminal window) would make OpenCode much easier to adopt and use as a daily driver for development.

Activity

  1. added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Jan 29, 2026
  2. github-actions commented on Jan 29, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    Additionally, related feature requests that address IDE integration challenges:

    Feel free to ignore if none of these address your specific case.

  3. altendky commented on Jan 30, 2026

    @altendky
    Contributor

    https://marketplace.visualstudio.com/items?itemName=sst-dev.opencode
    https://marketplace.visualstudio.com/items?itemName=sst-dev.opencode-v2

    i think these are official extensions. though yes, plenty of room for improvement. i started #7275 but haven't gotten any traction here yet with even just the bug fixes i made along the way. they are busy here... 1.2k PRs and all.

  4. Pl8tinium commented on Jan 30, 2026

    @Pl8tinium

    this is a great proposal

  5. cboettig commented on Mar 3, 2026

    @cboettig

    Would be great to see progress on these, neither of the current versions are really functional in vscode.

    https://marketplace.visualstudio.com/items?itemName=sst-dev.opencode is essentially just opening a window with opencode running in the terminal -- no actual GUI interface for selecting models etc. Note that essential shortcuts like ctl+p are overridden by vscode hotkeys, so not functional here or in the terminal.

    https://marketplace.visualstudio.com/items?itemName=sst-dev.opencode-v2 looks like more promising sidebar integration, consistent with how most other major providers (cline, roo, continue, claude, codex, copilot etc) have implemented their vscode / vsx extensions. However the opencode one doesn't seem to be functional. (error: "There is no data provider registered that can provide view data." even while the non-beta extension is connected fine)

  6. altendky commented on Mar 3, 2026

    @altendky
    Contributor

    i've tried to get just small bug fix PRs through but i think the team has been too busy for even that. otherwise i might have done more on my efforts to improve this integration.

  7. baob commented on Mar 12, 2026

    @baob

    However the opencode one doesn't seem to be functional. (error: "There is no data provider registered that can provide view data." even while the non-beta extension is connected fine)

    There's a specific issue for this: #10119

  8. WustLCQ commented on Mar 16, 2026

    @WustLCQ

    This is a great issue. Compared to TUI, more members of our team still prefer using a GUI plugin in VSCode.

  9. afaraha8403 commented on Mar 21, 2026

    @afaraha8403

    Coming from Kilocode, Cline and Roo Code to opencode this is the only thing that is missing that would seal the deal and allow me to STOP using these other tools.

    Yes granted that that you can use the TUI or the GUI app, but this proposal; at least to me seems like a no brainer!

  10. rosmur commented on Mar 24, 2026

    @rosmur
    Contributor

    Im in the same position as @afaraha8403 .

    It looks like there is a VS code extension now: https://marketplace.visualstudio.com/items?itemName=sst-dev.opencode

    But without screenshots, its hard to tell if this does what we are asking for

  11. cboettig commented on Mar 25, 2026

    @cboettig

    @rosmur there have been two vscode extensions for a while now as I link above.

    And no, neither does what we are asking for, they are basically identical to just running opencode in the vscode integrated terminal. Even that experience is far worse than it sounds, for instance -- as we all know, the command list in opencode is ctrl + p, which vscode already assigns to it's own command pallet, making it inaccessible unless the user disables this standard hotkey in vscode. This same issue impacts both of the vscode plugins. Without easily being able to even open the command list it hard to imagine anyone actually uses opencode inside vscode. It does work so nicely in a regular terminal of course.

    Here's a screenshot of opencode just running in terminal (but vscode 'extensions' seem to be functionally identical to this). Contrast that to the kind of integration we see on the right-hand menu for claude (or roo code, or copilot, or any first-class extension, but claude is a good example of another client that is obviously cli-first design, but nevertheless implements a meaningfully useful GUI here -- note the / command has been turned into a clickable button, the open file is displayed as the context, and the interface is rendered in rich-text).

    Image
  12. cpkt9762 commented on Apr 9, 2026

    @cpkt9762

    I’ve developed a VS Code Web extension using Opus 4.6. It is currently working correctly; if anyone is interested, feel free to fork, modify, and improve it.

    https://github.com/cpkt9762/opencode-web-for-vscode

    Image
  13. cbarkinozer commented on Apr 13, 2026

    @cbarkinozer

    A VS Code GUI could improve popularity and the ease of use.

  14. 15 remaining items

  15. vuon9 commented on Jul 27, 2026

    @vuon9

    VSCode recently integrated Agent Host Protocol (AHP).
    I could see it's already working well with Claude CLI.
    I'm not sure if having an extension now is more helpful than making the OpenCode CLI works for GitHub Copilot Chat for a seamless experience?

  16. mmospanenko commented on Jul 27, 2026

    @mmospanenko

    they even mentioned ACP in this post...

  17. druellan commented on Aug 5, 2026

    @druellan

    VSCode recently integrated Agent Host Protocol (AHP). I could see it's already working well with Claude CLI. I'm not sure if having an extension now is more helpful than making the OpenCode CLI works for GitHub Copilot Chat for a seamless experience?

    I think it makes more sense, as a development effort, to support and maintain a protocol, especially because we already have extensions like Openchamber that provide a very solid chat integration.

  18. mmospanenko commented on Aug 6, 2026

    @mmospanenko

    100% agree with @druellan and @vuon9.

    OpenChamber is already handling the UI/chat integration layer exceptionally well and pacing fast.

    Rather than duplicating effort to build and maintain an official extension, OpenCode's development bandwidth is much better spent on implementing low-level protocol standards (ACP / AHP) and engine features. Let the ecosystem handle the GUI surface!

  19. GF-Huang commented on Sep 7, 2026

    @GF-Huang

    100% agree with @druellan and @vuon9.

    OpenChamber is already handling the UI/chat integration layer exceptionally well and pacing fast.

    Rather than duplicating effort to build and maintain an official extension, OpenCode's development bandwidth is much better spent on implementing low-level protocol standards (ACP / AHP) and engine features. Let the ecosystem handle the GUI surface!

    We don't need another IDE/Editor.

  20. hussain commented on Oct 7, 2026

    @hussain

    Along the lines of @druellan and @mmospanenko: OpenCode already speaks ACP (opencode acp), so any ACP client can give it a VS Code panel without a separate extension from the OpenCode team.

    I maintain ACP Patchbay (Apache 2.0, also on Open VSX), a VS Code ACP client. OpenCode installs from the ACP registry in two clicks and runs in a side panel, keeping OpenCode's model picker, slash commands and MCP config:

    Docs PR to list it on the ACP page: #53795

    opencode add agent
  21. GF-Huang commented on Oct 8, 2026

    @GF-Huang

    @hussain Good extension, but it seems not allow me to use local opencode.exe(v2), it force me to download the v1.

  22. hussain commented on Oct 8, 2026

    @hussain

    @hussain Good extension, but it seems not allow me to use local opencode.exe(v2), it force me to download the v1.

    This is because v2 is not in ACP Registry yet (not managed by us), but you can add any agent manually using Add custom and command is C:\...\opencode.exe acp which is the binary location.
    Be sure to run opencode auth login in terminal first since opencode v2 doesn't support ACP authentication yet, unless you update the API key in edit as in screen last step.

    Image

    EDIT: @GF-Huang Correction on auth: v2 (2.0.25) does offer an ACP login. Once it asks for auth, Patchbay shows a Log in button that runs opencode auth login in a VS Code terminal. It runs whichever opencode is first on your PATH, so make sure that's the v2 binary, or just run the login in your terminal first as above. tracked in solutionsunity/acp-patchbay#93

  23. deepakajay0477 commented on Oct 16, 2026

    @deepakajay0477

    VSCodium user here (Open VSX only — the Microsoft Marketplace isn't available). Putting in a concrete, scoped request building on everything above and on the fixes tracked in #52455 / #50530.

    Where things stand (verified today)

    • sst-dev/opencode v1.0.0 is live on both the VS Code Marketplace and Open VSX, and per [FEATURE]: OpenCode extension update on Open VSX registry #52455 it now launches the V2 CLI correctly.
    • But it is still a terminal launcher: open in split terminal, pass context, done. No panel UI.
    • The in-repo source at sdks/vscode is already at version 2.0.31 while the published artifact is 1.0.0 — the published build and the repo have drifted. The publisher is also still sst-dev, not anomalyco, which makes "is this official?" harder than it should be.
    • VSCodium users who want v2 + a real UI today have to pick from community forks (ponces/opencode 2.0.31, OpenChamber, ACP Patchbay, opencui, varro, …). Genuinely good work by the ecosystem, but it fragments trust and version tracking.

    The ask (editor parity with the other big AI providers)

    ChatGPT, Claude and Gemini all ship first-party VS Code/VSCodium extensions. Please give OpenCode the same:

    1. Publish the first-party extension under the anomalyco publisher on both the VS Code Marketplace and Open VSX, with releases tracking the CLI. VSCodium support is a distinct audience, not an afterthought — Open VSX is the only registry VSCodium can install from by default.
    2. Bring the OpenCode Desktop experience inside the editor: sessions list, model/agent switching, permission prompts, inline diff review, compaction/retry status, session resume — i.e. the same speed and control as OpenCode Desktop, without leaving the IDE.
    3. If a full GUI is out of scope for the team (the ACP/AHP comments above make sense), then please treat opencode acp as the official integration path: keep it fully supported for v2 (sessions, model/agent config, permissions, diffs, auth) and list recommended ACP clients in the docs so users have a sanctioned answer instead of guessing.

    A thin terminal launcher is fine as a start, but since the v2 server + ACP already expose sessions, permissions, diffs and usage, an official panel client looks achievable without re-implementing the agent engine — which also keeps the CLI-level speed and control the terminal is loved for.

    Happy to test on VSCodium (Windows, Flutter/Android dev environment) and file focused follow-up issues. This is the one gap keeping OpenCode from being a full drop-in for the many developers who can't or won't use the Microsoft marketplace.

  24. hussain commented on Oct 21, 2026

    @hussain

    @GF-Huang OpenCode V2 is now in the ACP registry (opencode-v2, agentclientprotocol/registry#657). In ACP Patchbay it installs from the agent list in one click and works right away; I tested it today. The same entry serves every client that installs from the ACP registry.

  25. GF-Huang commented on Oct 22, 2026

    @GF-Huang

    @hussain Why I can't use the local one?

    Image Image
  26. hussain commented on Oct 22, 2026

    @hussain

    @GF-Huang Thanks for the screenshots, that's a bug on our side: editing the command of an agent added from the registry doesn't take effect, because the card keeps its registry link and still downloads the registry build. Tracked in solutionsunity/acp-patchbay#121. Until it's fixed, add your local opencode.exe acp with Add agent → Custom instead of editing the registry card.

  27. opencodejr commented on Oct 29, 2026

    @opencodejr
    Contributor

    Thanks for the detailed request! You're asking for the official VS Code extension to show OpenCode in a native panel or sidebar instead of running the TUI in a terminal. You also suggest sending the current file or selection, a status bar indicator, native keybindings and a settings UI.

    There is already an official extension (source in sdks/vscode), but at the moment it only opens OpenCode in the integrated terminal. It has:

    • an editor-title button
    • Ctrl/Cmd+Esc (and Ctrl/Cmd+Shift+Esc for a new tab) to open OpenCode
    • Ctrl/Cmd+Alt+K to insert the current file path as an @-mention

    The native webview panel you describe would be new work. Maintainers will consider it.

  28. coofercat commented on Nov 7, 2026

    @coofercat

    I've been using the opencode VSCode extension for a while - it's pretty great. As a Cursor-at-work user, it's pretty familiar :-)

    I'd like to ask that in the current iteration, we make the-thing-that-gets-run into a configurable option. At the moment it's to start an opencode server and then run opencode, but I'd like to change it to skip starting the server and run opencode --server 127.0.0.1:49374 instead (assume I've already got the server running, and listening on localhost) - that way, my Opencode agent can run in a container (possibly slightly more secure?).

    Going forwards, with further VSCode integration, keeping things in containers may become harder. I'd urge you keep it in mind though, as having an agent with (potentially) full access to my entire laptop doesn't really appeal, and even Cursor and the like keep theirs more locked down than that.

  29. dzid26 commented on Nov 8, 2026

    @dzid26

    @GF-Huang Thanks for the screenshots, that's a bug on our side: editing the command of an agent added from the registry doesn't take effect, because the card keeps its registry link and still downloads the registry build. Tracked in solutionsunity/acp-patchbay#121. Until it's fixed, add your local opencode.exe acp with Add agent → Custom instead of editing the registry card.

    Why does it need to download at all? Ideally it would just check if a opencode is on the path first.

    Also, nit, my installation didn't have opencode.exe one the PATH, just opencode.

    So currently the flow is Reject download -> Edit crashed connector -> use opencode acp as the command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions