Overview Version History Q & A Rating & Review
Coding Chatbot - VS Code Extension
A Visual Studio Code extension that provides an AI-powered coding assistant to help with LeetCode problems and general programming questions. The extension integrates with multiple AI models including Deepseek Coder, OpenAI GPT-4, and custom models through Groq or Ollama.
Features
Installation
Install the Extension :
Install from VS Code Marketplace link
Or download the VSIX file and install manually
Install Required Python Packages :
pip install Flask==3.1.0 Flask-Cors==5.0.0 requests==2.32.3 black==25.1.0 openai==1.63.0 typing-extensions==4.12.2
Configure AI Models (Optional):
For OpenAI GPT-4: Set your API key using the "Coding Chatbot: Update API Key" command
For Groq: Set your API key and model using the respective commands
For Ollama: Install Ollama locally and set up your preferred model
Extension Activation :
After installation, you may need to reload VS Code for the extension to fully activate
Usage
Starting the Extension
Open VS Code
Click the Coding Chatbot icon in the sidebar
The chat panel will open, ready to assist
Available Commands
Access these commands through the Command Palette (Ctrl+Shift+P
/ Cmd+Shift+P
):
Coding Chatbot: Analyze Code
Coding Chatbot: Update API Key
Coding Chatbot: Update Groq API Key
Coding Chatbot: Set Custom Model
Coding Chatbot: Set Ollama Model
Coding Chatbot: Prints Current Model
Features Guide
Model Selection :
Choose your preferred AI model from the dropdown
Models include Deepseek Coder, OpenAI GPT-4, and custom options
Mode Toggle :
Switch between "LeetCode Help" and "General Coding" modes
LeetCode mode provides problem-specific assistance
General mode offers broader programming help
Chat Interface :
Type questions in the input box
View conversation history
Start new conversations with the "New Chat" button
Copy code snippets with one click
Configuration
API Keys
OpenAI GPT-4 :
Command: Coding Chatbot: Update API Key
Groq Custom Model :
Commands:
- Coding Chatbot: Update Groq API Key
- Coding Chatbot: Set Custom Model
Ollama Custom Model :
Command: Coding Chatbot: Set Ollama Model
Requirements
Visual Studio Code 1.85.0 or higher
Python 3.8 or higher
The Python packages listed in the installation section
Known Issues
Please report any issues on the GitHub repository .
Contributing
Fork the repository
Create your feature branch
Commit your changes
Push to the branch
Create a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Note : This extension is not affiliated with LeetCode. It's an independent tool designed to assist with programming tasks.