Skip to content
| Marketplace
Sign in
Visual Studio Code>AI>OpenCode Chat by ShawnNew to Visual Studio Code? Get it now.
OpenCode Chat by Shawn

OpenCode Chat by Shawn

Shawn the Llama

|
3 installs
| (0) | Free
A beautiful, safety-first OpenCode coding agent for the VS Code sidebar.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

OpenCode Chat for VS Code

A focused OpenCode coding-agent experience in the VS Code sidebar, with streaming chat, tools, questions, permissions, models, sessions, and diffs.

OpenCode Chat by Shawn is an independent community extension. It is not affiliated with or endorsed by OpenCode or SST.

Highlights

  • Clean secondary-sidebar and Activity Bar chat views
  • Streaming responses, reasoning, tool activity, and Markdown
  • Working interactive questions with single, multiple, and custom answers
  • Four explicit safety modes: Ask, Auto safe, Full access, and Plan
  • Chat history with automatic names, confirmed deletion, and clean cancellation
  • OpenCode Zen and Go model catalogs with favorites and model-verified reasoning levels
  • Maximum supported reasoning by default, with OpenCode's coding-focused Build agent
  • File, folder, image-paste, and @file context
  • Session diffs that open in VS Code’s native diff editor
  • One OpenCode account key, stored in VS Code Secret Storage and the CLI’s auth file
  • Guided OpenCode CLI setup

Safety modes

Mode Behavior
Ask Asks before every tool action. This is the default.
Auto safe Allows structured reads, search, language tools, and a very small exact read-only command set; asks for everything else.
Full access Automatically approves actions that OpenCode asks the extension to approve. Explicit deny rules are preserved.
Plan Explores and plans while denying edits, shell commands, external-directory access, and subagents.

Protected environment files remain denied in modes that automatically read files. Full access is powerful—only use it in workspaces you trust.

Requirements

  • VS Code 1.96 or newer
  • The OpenCode CLI (the extension can install it)
  • An OpenCode account key

The same account key configures both the Zen and Go catalogs. Access to individual models still depends on your OpenCode account.

Commands

Command Description
OpenCode: Open Chat Focus OpenCode Chat
OpenCode: New Session Start a fresh chat and stop the active run
OpenCode: Connect Account Store an OpenCode account key
OpenCode: Disconnect Account Remove the stored OpenCode account key
OpenCode: Install CLI Install or repair the OpenCode CLI
OpenCode: Insert File Mention Insert the active file or selection into the composer

Default shortcuts:

  • Open chat: Ctrl+Shift+O / Cmd+Shift+O
  • Insert file mention: Ctrl+Alt+K / Cmd+Alt+K

Settings

  • opencode.cliPath — optional absolute path to the OpenCode binary
  • opencode.defaultModel — default model ID
  • opencode.defaultVariant — default reasoning effort; the extension falls back to the strongest level the selected model actually supports

Development

npm install
npm run check
npm run build

Press F5 in VS Code to launch an Extension Development Host. For watch mode, run npm run watch and npm run watch:webview in separate terminals.

To create a VSIX:

npm run package

Architecture

React webview  →  VS Code extension host  →  local OpenCode server  →  OpenCode providers

The extension starts its local server lazily when the chat is opened, uses an explicit workspace working directory, and stops the process when the extension is disposed.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft