Overview Version History Q & A Rating & Review
LLM Gateway Connector
Connect GitHub Copilot Chat to your company's LLM gateway with zero configuration. Automatically discovers available models and proxies requests through litellm.
Features
🔄 Automatic Model Discovery - Fetches available models from your gateway
🚀 Zero Config - Just add your gateway URL and API key
🔌 Built-in Proxy - Runs litellm proxy in the background
🔒 Secure - API keys stored in VS Code's secure storage
🎯 Compatible - Works with any OpenAI-compatible LLM gateway
🔍 Smart Detection - Automatically finds litellm installation across different Python versions
Installation
From VS Code Marketplace
Open VS Code
Go to Extensions (Cmd/Ctrl+Shift+X)
Search for "LLM Gateway Connector"
Click Install
From VSIX file
code --install-extension llm-gateway-connector-0.1.0.vsix
Configuration
After installation:
Open Settings (Cmd/Ctrl + ,)
Search for "LLM Gateway"
Configure the following:
Gateway URL : Your company's LLM gateway endpoint (e.g., https://llmgateway.company.com)
API Key : Your authentication key
Proxy Port (optional): Local port for proxy (default: 8000)
Litellm Path (optional): Custom path to litellm executable (auto-detected if empty)
Reload VS Code (Cmd/Ctrl+Shift+P → "Developer: Reload Window")
The extension will automatically:
Detect or install litellm
Fetch available models from your gateway
Start the proxy server
Register models with GitHub Copilot Chat
Requirements
GitHub Copilot subscription
Python 3.8+ (for litellm)
Network access to your LLM gateway
Extension Settings
llmGateway.url: Your LLM Gateway base URL
llmGateway.apiKey: API key for authentication
llmGateway.proxyPort: Local port for the proxy (default: 8000)
llmGateway.autoRefreshModels: Auto-fetch models on startup
llmGateway.dropParams: Parameters to drop for compatibility
Commands
LLM Gateway: Refresh Models - Fetch latest models from gateway
LLM Gateway: Restart Proxy - Restart the litellm proxy
LLM Gateway: Show Status - Show extension logs
Usage
After configuration, your gateway models will appear in the Copilot Chat model selector. Select any model to start chatting!
Troubleshooting
Models not appearing?
Check the Output panel (LLM Gateway channel)
Verify your gateway URL and API key
Run "LLM Gateway: Refresh Models"
Proxy not starting?
Ensure Python and pip are installed
Run "LLM Gateway: Restart Proxy"
Check the Output panel for errors
Privacy
This extension:
Only communicates with your configured gateway
Stores API keys securely in VS Code
Runs the proxy locally on your machine
Does not send data to third parties
Contributing
See CONTRIBUTING.md for development and contribution guidelines.
License
MIT