ChatGPT Copilot is a powerful extension for Visual Studio Code, bringing the capabilities of ChatGPT directly into your coding environment. Built on the popular gencay/vscode-chatgpt, which has been downloaded by over 500,000 developers.
Unfortunately, the original author has decided to stop maintaining the project, and the new recommended Genie AI extension is not open-source. This fork continues the development to keep the project open and accessible to everyone.
- 🤖 Supports GPT-4, GPT-3.5, Claude, Gemini or OpenAI-compatible local models with your API key from OpenAI, Azure OpenAI Service, Google, Anthropic or other providers.
- 📃 Streaming Answers: Receive real-time responses to your prompts in the sidebar conversation window.
- 📖 Prompt Manager: Chat with your own prompts (use # to search).
- 🔥 Stop Responses: Interrupt responses at any time to save your tokens.
- 📝 Code Assistance: Create files or fix your code with one click or keyboard shortcuts.
- ➡️ Export Conversations: Export all your conversation history at once in Markdown format.
- 🐛 Automatic Partial Code Detection: Automatically continues and combines responses when they are cut off.
- 📰 Custom Prompt Prefixes: Customize what you are asking ChatGPT with ad-hoc prompt prefixes.
- ➕ Editable Prompts: Edit and resend previous prompts.
- 💻 Seamless Code Integration: Copy, insert, or create new files directly from ChatGPT's code suggestions.
- Install the extension from the Visual Studio Marketplace or search
ChatGPT Copilot
in VScode Extensions and click install. - Reload Visual Studio Code after installation.
Configure the extension by setting your API keys and preferences in the settings.
Configuration | Description |
---|---|
chatgpt.gpt3.apiKey | Required, please get from OpenAI, Azure OpenAI or Anthropic. |
chatgpt.gpt3.apiBaseUrl | Optional, default to "https://api.openai.com/v1". For Azure OpenAI Service, it should be set to "https://[YOUR-ENDPOINT-NAME].openai.azure.com/openai/deployments/[YOUR-DEPLOYMENT-NAME]". |
chatgpt.gpt3.model | Optional, default to "gpt-3.5-turbo". |
Refer to the following sections for more details on configuring various OpenAI services.
"chatgpt.gpt3.apiKey": "<api-key>",
"chatgpt.gpt3.apiBaseUrl": "https://api.openai.com/v1", // Optional
"chatgpt.gpt3.apiKey": "<api-key>",
"chatgpt.gpt3.model": "gpt-3.5-turbo",
"chatgpt.gpt3.apiBaseUrl": "https://<endpoint-name>.openai.azure.com/openai/deployments/<deployment-name>", // Required
"chatgpt.gpt3.model": "claude-3-sonnet-20240229",
"chatgpt.gpt3.apiKey": "<api-key>",
"chatgpt.gpt3.apiBaseUrl": "https://api.anthropic.com/v1", // Optional
"chatgpt.gpt3.apiKey": "<api-key>",
"chatgpt.gpt3.apiBaseUrl": "<base-url>",
To use a custom model name for local or self-hosted LLMs compatible with OpenAI, set the chatgpt.gpt3.model
configuration to "custom"
and specify your custom model name in the chatgpt.gpt3.customModel
configuration.
Example configuration for a custom model name with groq:
"chatgpt.gpt3.model": "custom",
"chatgpt.gpt3.apiKey": "<your-custom-key>",
"chatgpt.gpt3.customModel": "mixtral-8x7b-32768",
"chatgpt.gpt3.apiBaseUrl": "https://api.groq.com/openai/v1",
- Install
vsce
if you don't have it on your machine (The Visual Studio Code Extension Manager)npm install --global vsce
- Run
vsce package
- Follow the instructions and install manually.
npm run build
npm run package
code --uninstall-extension feiskyer.chatgpt-copilot
code --install-extension chatgpt-copilot-*.vsix
This project is released under ISC License - See LICENSE for details. Copyright notice and the respective permission notices must appear in all copies.