https://github.com/gethnet/litellm-connector-copilot
Adds LiteLLM as a provider within Copilot in VSCode, expanding the models you can access significantly. Available on Visual Studio Code Marketplace: https://marketplace.visualstudio.com/items?itemName=Gethnet.litellm-connector-copilot
https://github.com/gethnet/litellm-connector-copilot
ai copilot integration language-provider litellm litellm-proxy vscode-extension
Last synced: about 2 months ago
JSON representation
Adds LiteLLM as a provider within Copilot in VSCode, expanding the models you can access significantly. Available on Visual Studio Code Marketplace: https://marketplace.visualstudio.com/items?itemName=Gethnet.litellm-connector-copilot
- Host: GitHub
- URL: https://github.com/gethnet/litellm-connector-copilot
- Owner: gethnet
- License: apache-2.0
- Created: 2026-01-28T01:16:31.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2026-03-19T02:21:35.000Z (3 months ago)
- Last Synced: 2026-03-19T07:00:53.388Z (3 months ago)
- Topics: ai, copilot, integration, language-provider, litellm, litellm-proxy, vscode-extension
- Language: TypeScript
- Homepage:
- Size: 2.29 MB
- Stars: 4
- Watchers: 0
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.marketplace.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Notice: NOTICE
- Agents: AGENTS.md
Awesome Lists containing this project
README
# π LiteLLM Connector for GitHub Copilot Chat
[](https://github.com/gethnet/litellm-connector-copilot/actions/workflows/ci.yml)
[](https://codecov.io/gh/gethnet/litellm-connector-copilot)
[](https://github.com/gethnet/litellm-connector-copilot/releases)
[](https://marketplace.visualstudio.com/items?itemName=GethNet.litellm-connector-copilot)
[](https://marketplace.visualstudio.com/items?itemName=GethNet.litellm-connector-copilot)
Bring **any LiteLLM-supported model** into the Copilot Chat model picker β OpenAI, Anthropic (Claude), Google, Mistral, local Llama, and more.
If LiteLLM can talk to it, **Copilot can use it**.
---
## βοΈ Support the project
If you find this useful, please:
- **Star on GitHub**: https://github.com/gethnet/litellm-connector-copilot
- **Leave a rating/review** on the **VS Code Marketplace**: https://marketplace.visualstudio.com/items?itemName=GethNet.litellm-connector-copilot
- **Rate on Open VSX**: https://open-vsx.org/extension/GethNet/litellm-connector-copilot
Want to support development?
- **Ko-fi**: https://ko-fi.com/amwdrizz
- **Buy Me a Coffee**: https://buymeacoffee.com/amwdrizz
---
## π¨ Troubleshooting: Connection Issues π¨
If the extension fails to connect or models don't show up:
1. **Manual Setup**: Run **`Manage LiteLLM Provider`** from the Command Palette (`Ctrl+Shift+P`). This often fixes setup "hiccups".
2. **Verify**: Run **`LiteLLM: Check Connection`** to test your settings.
3. **Reset**: If things are totally stuck, run **`LiteLLM: Reset All Configuration`**. This is the "nuke" option to clear all state.
4. **Note**: Reinstalling usually won't help as settings are stored securely in VS Code. Use the Reset command instead.
---
## β
Requirements
- π **GitHub Copilot** subscription (Free plan works)
- π A **LiteLLM proxy URL** (and an API key if your proxy requires one)
---
## β‘ Quick Start (60 seconds)
1. Install **GitHub Copilot Chat**
2. Open the Command Palette: `Ctrl+Shift+P` (Windows/Linux) or `Cmd+Shift+P` (Mac)
3. Run: **`Manage LiteLLM Provider`** and enter your LiteLLM proxy details.
> **Pro-Tip**: This extension supports both standard Chat and advanced V2 Chat (including thinking models and structured usage reporting) automatically based on the models enabled in your LiteLLM proxy.
2. Install **LiteLLM Connector for Copilot**
3. Open Command Palette: `Ctrl+Shift+P` / `Cmd+Shift+P`
4. Run: **Manage LiteLLM Provider**
5. Enter:
- **Base URL** (example: `http://localhost:4000`)
- **API Key** (optional)
6. Open Copilot Chat β pick a model under **LiteLLM** β chat
---
## β¨ What you get
- π **Hundreds of models** via your LiteLLM proxy
- π **Real-time streaming** responses
- π οΈ **Tool / function calling** support
- ποΈ **Vision models** supported (where available)
- π§ **Smart parameter handling** for model quirks
- π **Automatic retry** when a model rejects unsupported flags
- π **Token tracking & usage** monitoring for input/output tokens
- βοΈ **Git commit generation** from staged changes in the SCM view
- π§Ό **Smart Sanitization** automatically strips Markdown code blocks from generated commit messages
- π **Connection diagnostics** to verify proxy configuration
- β±οΈ **Inactivity watchdog** to prevent stuck streams
- π«π§ **Cache bypass controls** (`no-cache` headers) with provider-aware behavior
- π **Secure credential storage** using VS Code `SecretStorage`
- β¨οΈ **Optional inline completions** via VS Codeβs stable inline completion API
---
## π Recent Highlights
- π§Ό **SCM Message Sanitization** (automatically cleans up generated commit messages by stripping triple backticks)
- βοΈ **Git Commit Message Generation** (generate messages from staged changes directly in the SCM view)
- π **Enhanced Token Awareness** (real-time token counting and context window display in model tooltips)
- π **Connection Diagnostics** (new `Check Connection` command to validate proxy settings)
- π **VS Code 1.109+ settings modernization** (aligns with the Language Model provider settings UI)
- π§± **Tool-call compatibility hardening** (normalizes tool call IDs to OpenAI-compatible limits)
- π§° **Stability Improvements** (hardened JSON parsing and stream error recovery)
- π¦ **Smaller, faster package** (bundled/minified production builds)
---
## βοΈ Configuration
- `litellm-connector.inactivityTimeout` *(number, default: 60)*
- Seconds of inactivity before the LiteLLM connection is considered idle.
- `litellm-connector.disableCaching` *(boolean, default: true)*
- Sends `no-cache: true` and `Cache-Control: no-cache` to bypass LiteLLM caching.
---
## β¨οΈ Commands
- **Manage LiteLLM Provider**: Configure Base URL + API Key; refreshes models.
- **LiteLLM: Check Connection**: Verify proxy URL and API key configuration.
- **LiteLLM: Select Inline Completion Model**: Choose a model for inline completions.
- **LiteLLM: Select Commit Message Model**: Choose a model for git commit generation.
---
## π Bug reports & feature requests
Please use GitHub Issues: https://github.com/gethnet/litellm-connector-copilot/issues
Including VS Code version, extension version, model id, and LiteLLM proxy details/logs (if possible) helps reproduce issues quickly.
---
## π§© Notes
- This extension is a **provider** for the official Copilot Chat experience.
- It wonβt function without the **GitHub Copilot Chat** extension installed.
---
## π Support
- Issues & feedback: https://github.com/gethnet/litellm-connector-copilot/issues
- License: Apache-2.0