Clone Copilot is a VS Code extension that provides AI-powered code completions using Mistral AI's language models. It's designed to be a free alternative to GitHub Copilot, offering inline code suggestions as you type.
- Inline Code Completions: Get real-time code suggestions as you type
- Multiple Model Support: Choose from different Mistral AI models including:
mistral-small-latest
: Balanced performance and speedmistral-medium-latest
: More powerful completionsmistral-large-latest
: Most powerful model for complex codecodestral-latest
: Specialized for code completion with Fill-in-the-Middle capability
- Fill-in-the-Middle (FIM): When using
codestral-latest
, the extension can understand code context both before and after your cursor - Easy Toggle: Enable or disable completions with a single click in the status bar
- Customizable: Configure the model and other settings through VS Code preferences
- Install the extension from the VS Code Marketplace
- Get a Mistral AI API key from https://console.mistral.ai/
- Set up your API key using one of these methods:
- Environment Variable (Recommended): Create an environment variable named
MISTRAL_API_KEY
with your API key - VS Code Settings: Enter your API key when prompted after enabling the extension
- Environment Variable (Recommended): Create an environment variable named
For VSCodium or other open-source VS Code alternatives:
- Install the extension from the Open VSX Registry
- Follow the same API key setup steps as above
You can also download the latest .vsix
file from the releases section and install it manually:
code --install-extension clone-copilot-x.x.x.vsix
- After installation, click the "Clone Copilot" icon in the status bar to enable completions
- Start typing code and see inline suggestions appear
- Press Tab to accept a suggestion, or continue typing to ignore it
This extension contributes the following settings:
cloneCopilot.enabled
: Enable/disable inline completionscloneCopilot.mistralApiKey
: Your Mistral AI API keycloneCopilot.model
: The Mistral AI model to use for completions
Your code is sent to Mistral AI's API for processing. Please review Mistral AI's privacy policy for details on how your data is handled.
Proprietary. All rights reserved.
This software is protected by copyright law. Unauthorized reproduction or distribution of this software, or any portion of it, may result in severe civil and criminal penalties, and will be prosecuted to the maximum extent possible under law.
This extension uses the Mistral AI API to provide code completions.
Feedback is welcome! Please open an issue on this repository or contact us through email for any questions or suggestions.
This extension is not affiliated with GitHub Copilot or Mistral AI. It is an independent project that uses Mistral AI's API services.
- More Language Support: Enhance support for additional programming languages
- Local Model Support: Add options for running models locally for privacy
- Improved Context Understanding: Better project structure awareness
- User Preferences: Customize to your coding style
- Test Generation: Generate test cases for your code
Note: This repository contains only the release builds and documentation for Clone Copilot. For more information about the extension, please visit the VS Code Marketplace or Open VSX Registry.