A full-featured VS Code extension that wraps opencode — giving users a Copilot-style GUI inside VS Code powered by the opencode server API.
Prerequisites
Node.js 18+
VS Code 1.85+
Install from Marketplace
Search for "OpenCode" in the VS Code extensions marketplace and install.
Install from Source
Clone the repository
Run npm install at the root
Open the project in VS Code
Press F5 to launch a new Extension Development Host window
Features
🤖 Chat Panel — Conversational AI assistant in your sidebar
💬 Session Management — Create, manage, and switch between conversations
📝 Code Selection — Add code selections to chat context
📁 File References — Reference files in your workspace
🔍 Diff Viewer — View and accept/reject AI file changes
🔑 Multi-Provider — Anthropic, OpenAI, Google, and more
⚙️ Settings UI — Visual configuration editor
📊 Status Bar — Server status and model indicator
🔒 Secure Storage — API keys stored via VS Code SecretStorage
🚀 Auto Setup — First-run wizard for installation and configuration
Building
# Build webview
cd packages/webview && npm run build
# Compile extension
cd packages/extension && npm run compile
# Package vsix
cd packages/extension && npm run package
Development
Press F5 in VS Code to launch the extension in debug mode
The webview runs on Vite dev server during development
Extension host connects to opencode server on http://127.0.0.1:4096
Contributing
Contributions are welcome! Please open an issue or PR on GitHub.