Built a Visual Studio Code extension to use OpenCode as a GUI sidebar instead of the terminal

Reddit r/LocalLLaMA / 4/16/2026

💬 OpinionDeveloper Stack & InfrastructureSignals & Early TrendsTools & Practical Usage

Key Points

  • A developer released an open-source VS Code extension that embeds OpenCode directly into the editor’s sidebar using a native webview panel, eliminating the need for a terminal or browser tab.
  • The extension starts an OpenCode server automatically on localhost:4096 by default, or can connect to a user-specified existing server, and it can auto-start when the sidebar is opened.
  • It launches OpenCode sessions tied to the currently active VS Code workspace folder and keeps the session alive when switching files within the same project.
  • The extension includes commands for creating a new session, refreshing, restarting the local server, and configuring settings, and it requires VS Code 1.96.0+ plus the OpenCode CLI (optionally via a custom PATH setting).
Built a Visual Studio Code extension to use OpenCode as a GUI sidebar instead of the terminal

Hey everyone,

I built a VS Code extension that brings OpenCode directly into your sidebar as a native panel, that uses the UI elements exactly as they are from the OpenCode Desktop app. No terminal needed, no browser tab. It just lives in your activity bar and works easily.

What it does:

  • Runs OpenCode sessions inside a VS Code webview sidebar
  • Automatically uses whatever workspace folder you have open
  • Can auto-start a local OpenCode server when you open the sidebar
  • Keeps your session alive when you switch between files in the same project
  • Has commands for new session, refresh, restart server, and settings

How it works:

The extension connects to OpenCode's server API. By default it tries to start opencode serve on localhost:4096 if nothing is running. You can also point it at an existing server. The entire OpenCode UI runs inside the sidebar, so you get the full chat experience without leaving VS Code.

Requirements:

* VS Code 1.96.0 or newer

* OpenCode CLI installed and available in your PATH (or set a custom path in settings)

Install:

https://marketplace.visualstudio.com/items?itemName=rodrigomart123.opencode-for-vscode&ssr=false#overview

It's open source too!: https://github.com/rodrigomart123/opencode-for-vscode

Happy to hear feedback or feature ideas, I'm very open for whatever issues you guys have and I will do my best to fix it immediately. This is also my first time posting a VS Code extension so please bear with me :)

submitted by /u/Double-Book-8873
[link] [comments]