Skip to content

Repository files navigation

OpenCode and GitHub Copilot

OpenCode Bridge for Copilot Chat

Use OpenCode Console and OpenCode Go models directly from the GitHub Copilot Chat model picker in Visual Studio Code.

Latest GitHub release CI status MIT license

This native VS Code LanguageModelChatProvider registers Console and Go as separate provider groups and streams their responses into Copilot Chat without a local proxy. VS Code 1.125 exposes the provider-entry configuration through the built-in Language Models UI; the packaged extension does not enable proposed APIs.

Highlights

  • Separate OpenCode Console and Go model groups
  • Service-account API keys and Console device-code authentication in VS Code Secret Storage
  • Credential-scoped live discovery, with six-hour persisted models.dev enrichment for Console and Go
  • Streaming text, reasoning, image inputs, and agent-mode tool calls
  • Model-specific Thinking Effort and Qwen thinking-budget controls
  • Bounded gateway retries and context-aware token limits
  • Provider-entry-scoped inference-token tracking and secret-safe diagnostics

Quick start

  1. Install OpenCode Bridge for Copilot Chat from the Visual Studio Marketplace. You need VS Code 1.125 or newer and GitHub Copilot Chat.
  2. Alternatively, run code --install-extension grikomsn.opencode-bridge-for-copilot-chat. For manual installation, download the .vsix from the latest GitHub release and run code --install-extension ./opencode-bridge-for-copilot-chat-<version>.vsix --force.
  3. For Console or Go, open Manage Language Models, choose Add Models, select the provider, name the entry, and paste its service-account API key (Console entries can omit the key and use a device-code profile instead).
  4. For Console device-code sign-in, run OpenCode: Add Console Account, choose a profile ID, then add an OpenCode Console entry with the same ID in Manage Language Models. Go can also sign in with the same Console device-code flow from the Manage Connection menu.
  5. Repeat either flow for another account or key, then enable the models you want in Copilot Chat.

Marketplace installations receive updates through VS Code. Manual VSIX installations can be updated by installing the newest release asset.

Moving from the previous extension

Version 1.0.0 starts a new listing with ID grikomsn.opencode-bridge-for-copilot-chat. Disable or uninstall grikomsn.opencode-bridge-copilot-chat before installing the new extension to avoid duplicate providers and commands. Sign in again or re-enter your API keys in the new extension; its Secret Storage and local usage state are separate. Existing opencode.* workspace settings retain their names.

Composer controls override workspace defaults; ordered effort controls default to High, binary controls default On, and Qwen defaults Auto. Console and Go use each entry's authenticated live catalog, while a Console device-code profile shows only models enabled for that profile's selected organization. Click the OpenCode status-bar item to inspect tokens for the most recently used entry.

Documentation

Related projects

Unofficial project; not affiliated with OpenCode, GitHub, or Microsoft. OpenCode account limits and charges still apply. Licensed under MIT.

About

Use OpenCode Zen, Go, and Console models in GitHub Copilot Chat

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages