This project provides a guide and settings JSON to add opencode's models to your Copilot Chat.
- Visual Studio Code Version: 1.122.0 or above (tested version)
- 📄 Browse Models List — Get auto-generated configurations for all model types here
- 📄 Model Settings JSON (All-in-one)
- 📄 Model Settings JSON (With Provider Info)
- 👉 Follow the step-by-step guide
GIF Guide:
-
chat.exploreAgent.defaultModel
Select the default language model to use for the Explore subagent from the available providers. -
chat.utilityModel
Override the language model used by built-in utility flows. Leave empty to use the default model. -
chat.utilitySmallModel
Override the language model used by built-in small/fast utility flows. A fast and inexpensive model is recommended. Leave empty to use the default model. -
chat.byokUtilityModelDefault Set to
mainAgentWhen you Copliot Error shows No utility model is configured for 'copilot-utility-small' while the selected main agent model is BYOK.
The model-settings.json file is regularly and automatically updated via GitHub Actions to fetch the latest models from OpenCode.
You can also run the update script locally using Bun:
bun install
bun install opencode-ai
bun run scripts/update-json.tsA cross-platform CLI that syncs model definitions directly into VS Code's chatLanguageModels.json, with optional cron / scheduled task support.
- Download the latest binary from Releases
- Run the sync:
# One-time sync (Windows: opencode-auto-update-windows-x64.exe)
./opencode-auto-update --sync
# Sync a specific provider + source
./opencode-auto-update --sync --provider "OpenCode Go" --source goOr build from source:
bun install
bun run build # → dist/opencode-auto-update (or .exe on Windows)# Run daily at 2 AM
./dist/opencode-auto-update --install
# Run every hour
./dist/opencode-auto-update --install --schedule hourly
# Run weekly
./dist/opencode-auto-update --install --schedule weekly
# Remove the schedule
./dist/opencode-auto-update --uninstall| Platform | Mechanism |
|---|---|
| Windows | Task Scheduler (schtasks) |
| macOS | crontab |
| Linux | crontab |
| Flag | Description |
|---|---|
-h, --help |
Show help |
-s, --source <type> |
Model source: all | zen-free | go | zen |
-p, --provider <name> |
Provider name in VS Code config |
--sync |
Run sync — update chatLanguageModels.json |
--save |
Save options to ~/.opencode-auto-update-cli.json |
--install |
Register as cron / scheduled task |
--uninstall |
Remove the schedule |
--schedule <when> |
hourly | daily | weekly (default: daily) |
- VS Code Language Model Configuration Reference — Official documentation for model configuration in VS Code Copilot Chat.
