YouTube AI Comments Generator is a browser extension that helps you craft engaging and insightful comments for YouTube videos using AI. It supports multiple languages and various AI providers (OpenAI, MistralAI, and OpenRouter), making it easy to interact with your favorite creators and show your support effortlessly!
- AI-Powered Comment Generation: Utilize OpenAI, MistralAI, or OpenRouter to create engaging comments
- Multiple Language Support: Generate comments in Ukrainian, English, Polish, German, and French
- Customizable AI Models: Choose between different models (GPT-4o, Mistral Large, etc.)
- Adjustable Parameters: Configure max tokens and temperature for fine-tuned generation
- Seamless YouTube Integration: Generate button appears directly in YouTube's comment field
- Video Context Awareness: Automatically includes video title in the generation prompt
- Comment Mood Selection: Choose different moods for your comments (positive, neutral, critical)
- Quick Language Switching: Change comment language directly from the dropdown menu
- Chrome (version 88+) or Firefox (version 109+)
- OpenAI, MistralAI, or OpenRouter API key
- Visit the Chrome Web Store page
- Click the "Add to Chrome" button
- Confirm the installation when prompted
- The extension will be automatically installed and ready to use
- Visit the Firefox Add-ons page
- Click the "Add to Firefox" button
- Confirm the installation when prompted
- The extension will be automatically installed and ready to use
- Go to the Releases page
- Download the latest version for your browser (
.crxfor Chrome,.xpifor Firefox)- The Firefox extension is now signed, making installation easier
- Follow the browser-specific installation instructions below
- Download or clone this repository
- Install dependencies:
npm install - Run
npm run prepare:chrometo set up the Chrome manifest - Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode" (toggle in the top right corner)
- Click "Load unpacked extension"
- Select the
srcfolder of this project
- Download or clone this repository
- Install dependencies:
npm install - Run
npm run prepare:firefox:devto set up the Firefox development manifest - Open Firefox and navigate to
about:debugging#/runtime/this-firefox - Click "Load Temporary Add-on"
- Select the
manifest.jsonfile in thesrcfolder
-
Set Up the Extension:
- Click the extension icon in your browser toolbar
- Click "More Settings" to access the full settings page
- Enter your API key (OpenAI, MistralAI, or OpenRouter)
- Configure your preferred language, model, and other settings
- Save your settings
-
Generate Comments:
- Navigate to any YouTube video
- Click in the comment field
- The "Generate Comment" button will appear next to YouTube's comment buttons
- Use the dropdown menu to select your preferred mood and language (optional)
- Click the button to generate a comment based on your settings
- Edit the generated comment if needed
- Post your comment using YouTube's "Comment" button
| Setting | Description | Default |
|---|---|---|
| Comment Language | Language for generated comments | English |
| Comment Mood | Tone of the generated comment | Positive |
| AI Provider | Choose between OpenAI, MistralAI, and OpenRouter | OpenAI |
| API Key | Your API key for the selected provider | - |
| Model | AI model to use for generation | gpt-4o-mini (OpenAI), mistral-small-latest (MistralAI), or various models (OpenRouter) |
| Max Tokens | Maximum length of generated comments | 2000 |
| Temperature | Creativity level (0.0-2.0) | 0.5 |
| Prompt | Template for comment generation | Write a positive comment to support the YouTube video creator. The comment should be friendly. No less than 10 words, no more than 20 words. |
- Go to OpenAI Platform
- Create an account or log in
- Navigate to API Keys section
- Create a new API key
- Copy and paste it into the extension settings
- Go to Mistral AI Console
- Create an account or log in
- Navigate to API Keys section
- Create a new API key
- Copy and paste it into the extension settings
- Go to OpenRouter
- Create an account or log in
- Navigate to the API Keys section
- Create a new API key
- Copy and paste it into the extension settings
├── src/ # Extension source code
│ ├── about/ # About page
│ ├── background/ # Background service worker
│ ├── content/ # YouTube page integration
│ ├── icons/ # Extension icons
│ ├── lib/ # Shared libraries
│ ├── options/ # Settings page
│ ├── popup/ # Popup interface
│ ├── styles/ # Theme styling
│ └── manifest.json # Extension manifest
└── scripts/ # Build scripts
├── build.js # Main build script
├── prepare.js # Browser-specific preparation script
└── update-manifests.js # Manifest update script
-
Clone the repository:
git clone https://github.com/Sigmanor/yt-ai-comments.git cd yt-ai-comments -
Install dependencies:
npm install
-
Build extensions for both browsers:
npm run build
This will create extension packages in the
distdirectory. -
Build for a specific browser:
npm run build:chrome # or npm run build:firefox
This project is licensed under the Mozilla Public License 2.0 - see the LICENSE file for details.
- Icons used in this extension are created by Kawalanicon from Flaticon
- Built for the YouTube community




