Mistral AI for GitHub Copilot Chat
Integrate Mistral AI's powerful language models directly into GitHub Copilot Chat
🌐 Mistral AI •
📖 API Docs •
🔑 Get API Key
---
✨ Features
- 🚀
Agentic Coding Models - Devstral 2 and Devstral Small 2 optimized for software engineering
- 🧠
Flagship AI Models - Access Mistral Large 3 (675B MoE) and Mistral Medium 3.1
- 💬
Native Integration - Works seamlessly with VS Code's GitHub Copilot Chat
- 🔧
Tool Calling - Function calling support for agentic workflows
- 🔒
Secure - API key stored using VS Code's encrypted secrets API
- ⚡
Streaming - Real-time response streaming for faster interactions
- 📦
256k Context - Process entire codebases with massive context windows
---
📦 Available Models
| Model | Context | Description | Best For |
|-------|---------|-------------|----------|
|
Devstral Small 2 | 256k tokens | Compact agentic coding model | Local deployment, efficient coding |
|
Devstral 2 | 256k tokens | Frontier agentic coding model | Complex software engineering tasks |
|
Mistral Large 3 | 256k tokens | 675B MoE flagship multimodal | General-purpose, vision, reasoning |
🚀 Installation
1.
Install from VS Code Marketplace (or install the
.vsix file)
2.
Open Command Palette (
Ctrl+Shift+P /
Cmd+Shift+P)
3.
Run: Mistral: Manage API Key
4.
Enter your API key from
console.mistral.ai
---
🔑 Getting Your API Key
1. Go to
Mistral AI Console
2. Sign up or log in with your account
3. Navigate to
API Keys section
4. Click
Create new key
5. Copy the key and paste it into VS Code when prompted
> 💡
Tip: Devstral models are currently free during the introductory period!
---
💬 Usage
1. Open
GitHub Copilot Chat panel in VS Code
2. Click the
model selector dropdown
3. Choose a
Mistral AI model:
-
Devstral 2 for complex coding tasks
-
Devstral Small 2 for efficient coding
-
Mistral Large 3 for general-purpose tasks
-
Mistral Medium 3.1 for balanced performance
4. Start chatting!
$3
``
@workspace Explain the architecture of this project
`
`
Help me refactor this function to be more efficient
`
`
Write unit tests for the selected code
``
---
🔧 Requirements
-
VS Code 1.104.0 or higher
-
GitHub Copilot Chat extension installed
- A valid
Mistral AI API key
---
🛡️ 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
---
📚 Resources
-
Mistral AI Documentation
-
Devstral 2 Model
-
Mistral Large 3 Model
-
Mistral Medium 3.1 Model
-
API Reference
---
📄 License
MIT License - See
LICENSE for details.
---
Made with ❤️ for developers by OEvortex (@OEvortex)