A powerful Chrome extension that helps you solve LeetCode problems using AI models like OpenAI, Google Gemini.
You can also download and watch the demo video to see the extension in action.
- Multiple AI Models: Choose between OpenAI, Google Gemini, for different problem-solving approaches
- Various Assistance Types: Get hints, approaches, full solutions, or code optimization
- Code Debugging: Get help debugging your code when it doesn't work
- Error Explanation: Understand compilation and runtime errors
- Beautiful Markdown Rendering: AI responses are rendered in beautiful markdown format
- One-Click Code Copy: Copy code solutions with a single click
- Code Insertion: Insert AI-generated code directly into the LeetCode editor
- Problem Analysis: Extract and analyze problem details automatically
- Visit the Chrome Web Store (link will be updated when published)
- Search for "LeetCode AI Assistant"
- Click "Add to Chrome"
- Download or clone this repository
- Open Chrome and navigate to
chrome://extensions/
- Enable "Developer mode" in the top-right corner
- Click "Load unpacked" and select the extension directory
- The extension should now be installed and visible in your Chrome toolbar
- Click on the extension icon in your Chrome toolbar
- Enter your API key for your preferred AI provider:
- For OpenAI: Get your API key from OpenAI Platform
- For Google Gemini: Get your API key from Google AI Studio
- For Claude: Get your API key from Anthropic Console
- Save your settings
- Navigate to a LeetCode problem page
- Click the extension icon to open the popup
- Select your preferred AI provider and assistance type
- Click one of the action buttons:
- Get Help: Get assistance based on the selected type
- Optimize My Code: Optimize your current code
- Debug My Code: Help fix issues in your code
- Explain Error: Understand compilation or runtime errors
- The AI response will be displayed with proper markdown formatting
- Use the copy button to copy code snippets with one click
- Click "Insert Code to Editor" to automatically insert the solution into the LeetCode editor
- Hint: Get a subtle hint without revealing the full solution
- Approach: Get a detailed explanation of the approach without code
- Solution: Get a complete solution with code
- Optimize: Get help optimizing your existing code
- Explain: Get a simple explanation of the problem
- Uses GPT-4 Turbo model by default
- Requires an OpenAI API key
- Uses Gemini Pro model by default
- Requires a Google AI Studio API key
- Uses Claude Sonnet model by default
- Requires an Anthropic API key
This extension:
- Does not collect or store your code or problem data on any server
- Only sends data to the AI provider you choose when you explicitly request help
- Stores your API key locally in your browser's storage
- Does not track your browsing activity
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
Rahees Ahmed
- GitHub: RaheesAhmed
- Portfolio: raheesahmed.vercel.app
- LinkedIn: raheesahmed
This extension is not affiliated with, maintained, authorized, endorsed, or sponsored by LeetCode or any of its affiliates or subsidiaries.
Made with ❤️ for the coding community