Skip to content
| Marketplace
Sign in
Visual Studio Code>AI>OpenCode Zen ProviderNew to Visual Studio Code? Get it now.
OpenCode Zen Provider

OpenCode Zen Provider

wienans

|
4 installs
| (0) | Free
Provides OpenCode Zen models to VS Code's Language Model API.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

OpenCode Zen – VS Code Chat Model Provider

Disclaimer: This project is a community project and is not maintained by the OpenCode team (https://opencode.ai/) and has no ties to the OpenCode team.

This extension provides OpenCode Zen models to VS Code via the Language Model Chat Provider API (vendor id: opencode).

Prerequisites

  • VS Code ^1.104
  • Node.js (recent LTS recommended)
  • An OpenCode API key (OPENCODE_API_KEY)

Install

npm install

Build

npm run compile

Watch

npm run watch

Create Extension Package

vsce package

Run (Extension Development Host)

  1. Open this folder in VS Code
  2. Press F5 (Run → Start Debugging)
  3. In the Extension Development Host, open Chat and enable the OpenCode Zen provider in the model picker.

Commands

Open the command palette (Ctrl/Cmd+Shift+P):

  • OpenCode Zen: Set API Key (opencodeZen.setApiKey)
    • Stores the key in SecretStorage (not in settings).
  • OpenCode Zen: Clear API Key (opencodeZen.clearApiKey)
  • OpenCode Zen: Refresh Model List (opencodeZen.refreshModels)
    • Refetches models from https://models.dev/api.json (filtered to provider opencode).
  • OpenCode Zen: Self Test (opencodeZen.selfTest)
    • Prompts for a model, then runs a small tool-calling roundtrip.
    • Output is written to the OpenCode Zen Output Channel.

Notes

  • Tool calling is supported by streaming LanguageModelToolCallPart from the provider.
  • Tool execution is handled by the caller (VS Code) by sending back LanguageModelToolResultPart on the next request.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft