Skip to content
| Marketplace
Sign in
Visual Studio Code>AI>Opencode Provider BridgeNew to Visual Studio Code? Get it now.
Opencode Provider Bridge

Opencode Provider Bridge

Ankur Mathur

|
106 installs
| (0) | Free
Brings all OpenCode providers and models into VS Code Copilot's model picker
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

OpenCode Provider Bridge

Bring all your OpenCode-configured AI providers into VS Code's Chat model picker.

Any provider you've configured in OpenCode — Zen, Go, Anthropic, OpenAI, Google, NVIDIA, Vultr, and more — appears as a selectable model in the chat dropdown, ready to use alongside GitHub Copilot.

Quick Start

  1. Install the extension from the VS Code Marketplace
  2. Configure providers in OpenCode: opencode /connect
  3. Open VS Code Chat → select a model from the dropdown

That's it. Providers are auto-discovered from a running opencode serve or your local auth.json file.

Features

  • All providers, one picker — Zen, Go, Anthropic, OpenAI, Google, and any other OpenCode provider
  • Multi-SDK auto-routing — uses the correct AI SDK per model (@ai-sdk/openai-compatible, @ai-sdk/anthropic, @ai-sdk/google) based on opencode registry metadata
  • Zero config — reads your existing OpenCode setup
  • Secure keys — API keys stored in VS Code's encrypted SecretStorage
  • Real-time reasoning — thinking content streams as it's generated
  • Token usage — status bar shows prompt/completion tokens per response
  • Tool calling — full support for tools with schema simplification and cross-turn name resolution
  • Debug logging — set logLevel to debug to see raw SSE stream data, routing decisions, and request payloads

Requirements

  • VS Code 1.120+
  • OpenCode CLI installed and configured (opencode /connect)

Commands

Command What it does
OpenCode Bridge: Refresh Model List Re-discover providers and models
OpenCode Bridge: Show Provider Status Show providers, key status, and model counts
OpenCode Bridge: Set API Key for a Provider Set or change a provider's API key
OpenCode Bridge: Remove Provider Key Remove a stored API key

Extension Settings

Setting Default Description
opencode-provider-bridge.logLevel info Log verbosity: error, warn, info, or debug

Source Files

File Purpose
extension.ts Extension entry point, server management, BridgeProvider
provider.ts OpencodeModelProvider — multi-SDK routing, message conversion, streaming
opencodeConfig.ts 3-tier provider/model discovery (SDK → catalog → bare fallback)
providerUtils.ts Schema simplification, tool result text extraction
verboseFetch.ts SSE stream logging fetch wrapper (debug level)
logger.ts Leveled logging with VS Code OutputChannel

Changelog

See CHANGELOG.md for the full release history.

MIT

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