Mistral for Copilot
Access Mistral AI models within GitHub Copilot Chat
🌐 Mistral AI •
📖 API Docs •
🔑 Get API Key
ℹ️ Forked from OEvortex/vscode-mistral-copilot-chat, which has been discontinued
✨ Features
- 🧠 All Mistral Models - Every Mistral chat-capable model fetched dynamically from the API
- 🔀 Model Picker - Select Mistral models via the model selector dropdown on any Copilot Chat conversation
- 💬 Chat Participant - Invoke
@mistral directly in Copilot Chat for a dedicated, history-aware Mistral conversation
- 🔧 Tool Calling - Function calling support for agentic workflows
- 🖼️ Vision - Image input support for models that support it
- 🔒 Secure - API key stored using VS Code's encrypted secrets API
- ⚡ Streaming - Real-time response streaming for faster interactions
🔧 Requirements
- VS Code 1.109.0 or higher
- GitHub Copilot Chat extension installed
- A valid Mistral AI API key
🚀 Installation
- Install from VS Code Marketplace (or install the
.vsix file)
- Open Command Palette (
Ctrl+Shift+P / Cmd+Shift+P)
- Run:
Mistral: Manage API Key
- Enter your API key from console.mistral.ai
🔑 Getting Your API Key
- Go to Mistral AI Console
- Sign up or log in with your account
- Navigate to API Keys section
- Click Create new key
- Copy the key and paste it into VS Code when prompted
💬 Usage
Model Picker
To use a Mistral model in an existing Copilot Chat conversation without the @mistral handle:
- Open GitHub Copilot Chat panel in VS Code
- Click the model selector dropdown
- Choose a Mistral AI model
- Start chatting!
Chat Participant
Type @mistral in any Copilot Chat input to direct the conversation to Mistral AI. The participant is sticky — once invoked, it stays active for the thread.
@mistral explain the architecture of this project
🛡️ Privacy & Security
- Your API key is stored securely using VS Code's encrypted secrets API
- No data is stored by this extension - all requests go directly to Mistral AI
- See Mistral AI Privacy Policy for details
🛠️ Development
Prerequisites
Build
pnpm install
pnpm run compile # type-check + lint + bundle
pnpm run watch # parallel watch for type-check and bundle
Testing
pnpm test # unit tests (Vitest)
pnpm run test:coverage # unit tests with coverage
pnpm run test:extension # VS Code integration tests
Debugging
Open the project in VS Code and press F5 to launch the Extension Development Host with the extension loaded.
📄 License
MIT License - See LICENSE for details.
Forked from OEvortex/vscode-mistral-copilot-chat by OEvortex.
Maintained by Daniel Sieradski (@selfagency).