OpenAPI Compatible Provider for Copilot
A VS Code extension that integrates multiple OpenAI-compatible API providers into GitHub Copilot Chat.
Features
- 🚀 Multiple Provider Support - Add and manage multiple OpenAI-compatible API providers
- 🔐 Secure Key Storage - API keys are stored securely using VS Code's secret storage
- 🎨 Beautiful Configuration UI - Easy-to-use webview interface for managing providers
- 📦 No Extension Settings - All configuration through the intuitive UI, no settings.json clutter
- 🔌 Copilot Integration - Seamlessly integrates with GitHub Copilot Chat
- 📤 Import/Export - Backup and restore your configurations
Requirements
- VS Code 1.104.0 or higher
- GitHub Copilot Chat extension
Getting Started
- Install the extension
- Click on the "OpenAPI Copilot" status bar item or use the command palette:
OpenAPI Copilot: Manage Providers
- Click "Add Provider" to configure your first provider
- Fill in:
- Vendor Name/Flag: A unique identifier for this provider (e.g., "MyOpenAI", "LocalLLM")
- Base URL: The OpenAI-compatible API endpoint (e.g.,
https://api.openai.com/v1)
- API Key: Your API key for authentication
- Models: Add one or more models with their configurations
- Save and start using your provider in Copilot Chat!
Provider Configuration
Each provider requires:
- Name: Unique identifier shown in Copilot
- Base URL: API endpoint URL
- API Key: Authentication key (stored securely)
- Models: List of models with:
- Model ID (API identifier)
- Display Name (shown in Copilot UI)
- Context Length
- Max Tokens
- Temperature & Top-P settings
- Vision support flag
Commands
OpenAPI Copilot: Manage Providers - Open the provider management UI
OpenAPI Copilot: Open Configuration UI - Open configuration panel
Import/Export
You can backup and restore your provider configurations:
- Click "Export" to save all configurations to a JSON file
- Click "Import" to restore from a previously exported file
Note: API keys are not included in exports for security reasons. You'll need to re-enter them after importing.
Development
Setup
npm install
npm run compile
Watch Mode
npm run watch
Package Extension
npm run package
License
MIT
Support
For issues and feature requests, please open an issue on the repository.
| |