Skip to content

devstroop/opencode-copilot-chat

 
 

Repository files navigation

opencode-copilot-chat

Intro

This project provides a guide and settings JSON to add opencode's models to your Copilot Chat.

Requirement

  • Visual Studio Code Version: 1.122.0 or above (tested version)

Quick Start

GIF Guide:

An GIF Guide

📹 Video Version

VSCode Configuration

  • 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 mainAgent When you Copliot Error shows No utility model is configured for 'copilot-utility-small' while the selected main agent model is BYOK.

Automated Updates

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.ts

CLI — Auto-Sync to VS Code

A cross-platform CLI that syncs model definitions directly into VS Code's chatLanguageModels.json, with optional cron / scheduled task support.

Quick Start

  1. Download the latest binary from Releases
  2. 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 go

Or build from source:

bun install
bun run build       # → dist/opencode-auto-update (or .exe on Windows)

Install as Scheduled Task

# 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

All Options

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)

Reference

About

Integrate OpenCode Go models into VS Code Copilot Chat without third-party extensions.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • TypeScript 100.0%