OpenCode in VS Code: Windows 11 setup with DeepSeek

Learn to install OpenCode in VS Code on Windows 11, connect DeepSeek V4.1 Flash through Go, and reference the open file with Ctrl+Alt+K.

Player not loading? Watch on YouTube

This tutorial sets up OpenCode, an open source AI coding assistant, inside VS Code on Windows 11. The presenter installs it through npm, checks OpenCode version 1.18.31, and adds the extension published by SST. Node.js is required; the demonstrated machine uses v24. OpenCode runs in the editor's terminal, while Ctrl+Alt+K inserts a reference to the file currently open.

The model setup uses DeepSeek V4.1 Flash through OpenCode Go. The presenter distinguishes Go's subscription billing from Zen's prepaid balance, then uses /connect and /models to select the intended provider and model. This demonstration uses hosted inference: enabling models hosted in China sends prompts and code to servers there. It does not demonstrate how to run models locally.

In Build mode, OpenCode creates an expense tracker as a single HTML file, then adds a month filter and CSV export. The presenter checks both passes in a browser and inspects the usage meter. The supplied description identifies the displayed allowance as a temporary promotion, so viewers should check the current plan details.

The walkthrough runs without WSL, though the presenter notes that OpenCode's documentation recommends it. Permissions can require approval before edits, but there is no per-line acceptance control. No automated tests run in the demonstration; the presenter stresses reading the diff and checking the resulting app.