gencay/vscode-chatgpt
FreeVSCode extension.
FreeFree tier
About gencay/vscode-chatgpt
An unofficial open-source VS Code extension that integrates OpenAI ChatGPT models directly into the editor. It supports GPT-4, GPT-3.5, GPT-3, and Codex models via the user's own OpenAI API key. Features include streaming responses in a sidebar conversation view, one-click code creation and fixing, export of conversation history to Markdown, automatic partial response detection, ad-hoc prompt prefixes, and editing/resending prompts. Built as a hobby project with no affiliation to OpenAI, it has been downloaded by approximately 500,000 developers within three months of release.
Key Features
Use GPT-4, GPT-3.5, GPT-3, or Codex models with your own OpenAI API key
Streaming answers to prompts in a sidebar conversation window
Stop responses to save tokens
Create files or fix code with one click or keyboard shortcuts
Export all conversation history at once in Markdown format
Automatic partial code response detection and continuation
Ad-hoc prompt prefixes for customizing queries
Edit and resend a previous prompt
Copy, insert, or create new file from code suggestions directly in the editor
Pros & Cons
Pros
- Free and open-source (ISC license)
- Supports multiple OpenAI models including GPT-4 and Codex
- Streaming responses for real-time interaction
- Deep integration with VS Code editor actions (create, insert, fix)
- Conversation history export in Markdown
- Large user base with high ratings
- Active community and forks for continued development
Cons
- Requires user's own OpenAI API key, incurring usage costs
- Unofficial extension, no direct support from OpenAI
- Described as a hobby project, may have limited maintenance
- No built-in browser capabilities; stripped for community continuation
Best For
Getting coding assistance and explanations within VS CodeFixing code errors with one-click suggestionsCreating new code files from AI-generated snippetsReviewing and refactoring code via conversational chatExporting and documenting chat conversations for later reference
FAQ
How do I build and run the extension locally?
Clone the repository, run 'yarn' to install dependencies, then within VS Code hit F5 to run the project.
How do I install the extension locally?
Install vsce globally with 'npm install --global vsce', then run 'vsce package' and follow the instructions to install manually.
Is this extension affiliated with OpenAI?
No, it is an unofficial integration built as a hobby project with no affiliation to OpenAI.