LeetCode Whisper is a Chrome extension designed to help you solve LeetCode problems efficiently with the power of AI models (OpenAI, Gemini) like GPT-3.5 Turbo. Simply choose a model, enter your API key, and receive contextual help directly on LeetCode.
- Model selection (e.g., GPT-3.5 Turbo)
- Secure API key input
- Contextual AI help while solving problems on LeetCode
- Seamless UI embedded into LeetCode problem page
Follow these steps to run the extension locally on your machine:
git clone https://github.com/Dutta2005/leetcode-whisper.git
cd leetcode-whispernpm installnpm run devThis will generate a
dist/folder inside your project directory.
-
Open Chrome and go to chrome://extensions/
-
Enable Developer Mode (top right)
-
Click on Load unpacked
-
Select the dist/ folder inside your project directory
✅ The extension is now installed in Chrome.
. Click the Extension Icon
After installing the extension, click the LeetCode Whisper icon in your Chrome toolbar.
-
Select Model & Enter API Key
A popup will appear as shown below:- Select your preferred model (e.g.,
GPT-3.5 Turbo) - Enter your OpenAI API Key
- Click Save API Key
- Select your preferred model (e.g.,
-
Open Any LeetCode Problem
Navigate to LeetCode and open any problem.
You’ll now see the AI assistant panel integrated on the right-hand side of the screen. -
Start Asking Questions
Use the AI assistant to get contextual help:"Tell me how can I solve it?""What’s the time complexity?""Explain the edge cases"
-
Ensure your API key has access to the selected model.
-
All conversations stay on your localstorage. Your API key is stored securely on your chrome local storage.
-
Only works on leetcode.com domain.
Feel free to open issues or submit pull requests for improvements or new features.

