A native VS Code chat panel for the opencode AI coding agent — like GitHub Copilot Chat, but for opencode.
- Sidebar chat panel with streaming responses
- Auto-detects a running opencode server and reconnects when it comes back
- Injects the active file, current selection, and git branch into every prompt
- Keyboard shortcut to send the current selection (
Cmd+Shift+O/Ctrl+Shift+O) - New-session button to start fresh without restarting the server
- Automatic light/dark theming using VS Code CSS variables
- Install opencode
npm i -g opencode-ai@latest
- Start the opencode server in the project you want to chat about:
By default it listens on
opencode serve
http://localhost:4096.
(Coming soon)
- Download the latest
opencode-chat-*.vsixfrom Releases. - In VS Code, run Extensions: Install from VSIX… and pick the file.
- Open a folder (workspace) in VS Code.
- Open the Explorer sidebar — you'll see a new opencode view.
- Start typing.
Entersends,Shift+Enterinserts a newline. - Select code and press
Cmd+Shift+O(Ctrl+Shift+Oon Linux/Windows) to send the selection to chat. - Click + in the panel header to start a new session.
The status-bar indicator turns green when the extension is connected to a running server.
| Setting | Default | Description |
|---|---|---|
opencodeChat.serverUrl |
http://localhost:4096 |
Base URL of the opencode server. |
| Command | Default binding |
|---|---|
opencode: Send Selection to Chat |
Cmd+Shift+O / Ctrl+Shift+O |
opencode: New Session |
unbound |
git clone https://github.com/Shonitbar/opencode-chat
cd opencode-chat
npm install
npm run buildThen open the folder in VS Code and press F5 to launch the Extension Development Host.
Watch mode while developing:
npm run watchPRs welcome — see CLAUDE.md for architecture notes.
MIT © Shon Itbar
