VS Code extension to use OpenCode Go models in Copilot Chat with your own OpenCode Go subscription.

概要: Copilot Chat から OpenCode Go の 30+ モデルを、あなたのサブスクで直接使うための橋渡し拡張。メッセージを OpenAI / Anthropic / Responses の適切な形式に自動変換し、ツール呼び出しや画像解析も中継します。
Requirements
- VS Code 1.104.0 or later
- GitHub Copilot extension installed and active
- An OpenCode Go API key (get one here)
Installation
From Source
- Clone this repository.
- Run
bun install --ignore-scripts && bun run compile. - Press
F5in VS Code to launch the Extension Development Host.
From VSIX
- Run
bun install --ignore-scripts && bun run package:vsix. - Install the generated
.vsixfile via the Extensions view (Install from VSIX...).
Setup
- Open Copilot Chat (
Cmd/Ctrl + Alt + I) and open the model picker. - Choose Manage Models and add or configure OpenCode Go.
- Enter your OpenCode Go API key when prompted.
- If needed, you can still run
OpenCode Go: Manage OpenCode Go API Keyfrom the Command Palette. - Select OpenCode Go in Copilot Chat and choose a model.
Supported Models
At runtime the extension fetches the current model list from the OpenCode Go API (GET /models) and infers each model's capabilities automatically, so newly released models usually work without an extension update. A bundled FALLBACK_MODELS list (in src/types.ts) is used when the API cannot be reached or no API key is configured yet. Currently bundled fallback models include:
- GLM-5, GLM-5.1, GLM-5.2, GLM-5.3
- DeepSeek V4 Pro, DeepSeek V4 Flash
- Kimi K2.5, Kimi K2.6, Kimi K2.7 Code, Kimi K3
- MiMo-V2-Pro, MiMo-V2-Omni, MiMo-V2.5-Pro, MiMo-V2.5
- MiniMax M2.5, MiniMax M2.7, MiniMax M3
- Qwen3.5 Plus, Qwen3.6 Plus, Qwen3.7 Plus, Qwen3.7 Max, Qwen3.8 Max
- Grok 4.5
- GPT 5.6 Luna
- Muse Spark 1.2 Contributor
- Hy3, HY3 Preview
Usage
- Open Copilot Chat (
Cmd/Ctrl + Alt + I). - Select OpenCode Go from the provider selector.
- Choose a model (e.g., Kimi K2.6) and start chatting.
Your OpenCode Go quota (rolling 5h / weekly / monthly usage) is shown in the VS Code status bar and refreshes after every chat response. Click the status item or run OpenCode Go: Show OpenCode Go Usage to see the full line with reset countdowns; when monthly usage crosses 80% you get a warning toast.
Documentation
- Architecture — Module map, data flow, API formats, and design decisions
- Contributing — Development setup, code style, adding models, and debugging
- Supported Models — Full model list, capabilities, and context window details
Development
bun install --ignore-scripts
bun run compile
bun run lint
bun run test -- --runInBand
Press F5 in VS Code to launch the Extension Development Host.
Available Scripts
bun run compile– Compile TypeScriptbun run watch– Compile with file watchingbun run test– Run testsbun run lint– Lint check with ESLintbun run lint:fix– Auto-fix with ESLintbun run format– Format with Prettierbun run package:vsix– Create VSIX package
Marketplace Packaging
bun run package:vsix
The command above produces a .vsix that can be uploaded in the VS Code Marketplace publisher portal.
Privacy
- Your API key is stored securely in VS Code and synced with the extension's SecretStorage compatibility path when needed.
- Chat requests are sent to
https://opencode.ai/zen/go/v1.