Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Copilot FallbackNew to Visual Studio Code? Get it now.
Copilot Fallback

Copilot Fallback

alpgul

|
1 install
| (1) | Free
VS Code Copilot fallback provider for handling language model requests when primary provider fails
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VS Code Copilot Fallback

A VS Code extension that provides fallback language model support for GitHub Copilot. When your primary AI provider fails, this extension automatically tries the next configured model.

Features

  • Automatic Fallback: When the primary model fails, automatically switches to backup models
  • Multiple Configurations: Create and manage multiple fallback configurations
  • Easy Management: Simple UI to create, update, and delete fallback configurations
  • Multi-Provider Support: Works with any VS Code language model provider (Copilot, Claude, Gemini, etc.)

Requirements

  • VS Code 1.104.0 or higher
  • At least one AI extension installed (GitHub Copilot, Anthropic Claude, etc.)

Installation

  1. Clone this repository or download the .vsix file
  2. Run vsce package to create the extension package
  3. Install the extension: code --install-extension vscode-copilot-fallback-1.0.0.vsix

Usage

Creating a Fallback Configuration

  1. Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P)
  2. Search for "Manage Fallback" and select it
  3. Choose "Create" from the menu
  4. Enter a name for your fallback configuration
  5. Select models from available providers (you can select multiple)
  6. Your fallback is now ready

Updating a Fallback Configuration

  1. Open Command Palette and run "Manage Fallback"
  2. Choose "Update"
  3. Select the configuration you want to modify
  4. Add or remove models as needed
  5. Save changes

Deleting a Fallback Configuration

  1. Open Command Palette and run "Manage Fallback"
  2. Choose "Delete"
  3. Select the configuration to remove
  4. Confirm deletion

How It Works

The extension registers a language model chat provider with the vendor name "fallback". When you use a fallback configuration:

  1. Your message is sent to the first model in the configuration
  2. If that model fails, it automatically tries the next model
  3. This continues until a model succeeds or all models fail
  4. Error details are returned if all models fail

The extension tracks which model was last used for each configuration and continues from there on the next request, providing a round-robin style fallback mechanism.

Configuration

Fallback configurations are stored in VS Code settings under fallback.configs. Each configuration contains:

  • id: Unique identifier
  • name: Display name
  • providers: Array of provider configurations with vendor and modelId

Commands

Command Description
fallback.manage Open fallback management UI

Development

# Install dependencies
pnpm install

# Compile TypeScript
pnpm run compile

# Package extension
pnpm run package

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft