Skip to content

About

vs code extension to display open-code as chat terminal

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

opencode Chat for VS Code

A native VS Code chat panel for the opencode AI coding agent — like GitHub Copilot Chat, but for opencode.

screenshot placeholder

Features

  • 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

Prerequisites

  1. Install opencode
    npm i -g opencode-ai@latest
  2. Start the opencode server in the project you want to chat about:
    opencode serve
    By default it listens on http://localhost:4096.

Installation

From the VS Code Marketplace

(Coming soon)

From a VSIX

  1. Download the latest opencode-chat-*.vsix from Releases.
  2. In VS Code, run Extensions: Install from VSIX… and pick the file.

Usage

  1. Open a folder (workspace) in VS Code.
  2. Open the Explorer sidebar — you'll see a new opencode view.
  3. Start typing. Enter sends, Shift+Enter inserts a newline.
  4. Select code and press Cmd+Shift+O (Ctrl+Shift+O on Linux/Windows) to send the selection to chat.
  5. 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.

Configuration

Setting Default Description
opencodeChat.serverUrl http://localhost:4096 Base URL of the opencode server.

Keyboard shortcuts

Command Default binding
opencode: Send Selection to Chat Cmd+Shift+O / Ctrl+Shift+O
opencode: New Session unbound

Contributing

git clone https://github.com/Shonitbar/opencode-chat
cd opencode-chat
npm install
npm run build

Then open the folder in VS Code and press F5 to launch the Extension Development Host.

Watch mode while developing:

npm run watch

PRs welcome — see CLAUDE.md for architecture notes.

License

MIT © Shon Itbar

About

vs code extension to display open-code as chat terminal

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages