VS Code Insiders With CBorg

Note

This page is a work in progress. Full setup documentation is coming soon.

VS Code Insiders supports GitHub Copilot Chat with Bring Your Own Key (BYOK), which allows you to route Copilot requests through an OpenAI-compatible API endpoint – including the CBorg API.

Overview

  • Tool: VS Code Insiders
  • Feature: GitHub Copilot Chat with OpenAI-compatible BYOK provider
  • CBorg endpoint: https://api.cborg.lbl.gov
  • Status: Experimental – limited model compatibility.

Prerequisites

Basic Setup

Full step-by-step instructions are in progress. In the meantime:

  1. Open VS Code Insiders
  2. Click Manage Modelss at the bottom of the chat input box
  3. “Hide” the Co-pilot models by clicking the “eyeball” icon
  4. Click “Add Models” and chose the OpenAI Compatible provider
  5. Enter a model name, e.g. “lbl/cborg-coder-fast”
  6. Provide a human-readable name, e.g. “CBorg Coder Fast”
  7. Enter the context length, e.g. 100000
  8. Enable “Tool Use”
  9. Provide the base URL: https://api.cborg.lbl.gov
  10. Provide your API key

Repeat these steps for each model you wish to add.

Getting Help

If you get stuck, reach out via the CBorg Users Chatroom or contact Science IT.