AiText
A browser extension that allows you to use AI to do anything with the selected text.
Download
Or, manually download and install from the ZIP files in the latest release.
Screenshots
Features
- Select any text and right click to get a list of AI actions to perform with the selected text
- Sensible and useful default context menu actions
- Easily add custom context menu actions as needed
- Re-generate the result differently if you don't like it
- Ability to configure an AI provider, model, and API key
- Support for Gemini, OpenAI, Anthropic, and DeepSeek
- Markdown formatting for responses
- Beautiful and simple UI
- Cross-browser support (Firefox and Chrome)
Development Setup
Prerequisites
Development Commands
Install the dependencies:
To build the extension for both browsers:
To watch for changes and rebuild on changes for both browsers:
Loading the add-on in Firefox
- Build the extension:
-
Open Firefox and navigate to
about:debugging. -
Click on "This Firefox" in the left sidebar.
-
Click "Load Temporary Add-on".
-
Select the
dist-firefox/manifest.jsonfile. -
The add-on should now be loaded and visible in the browser toolbar.
Loading the extension in Chrome
- Build the extension:
-
Open Chrome and navigate to
chrome://extensions. -
Enable "Developer mode" in the top right.
-
Click "Load unpacked".
-
Select the
dist-chromefolder. -
The extension should now be loaded and visible in the browser toolbar.
Development Workflow
-
Run the watch command to automatically rebuild on changes:
-
After making changes and the build completes:
- For Firefox: Go to
about:debugging, find AiText and click "Reload" - For Chrome: Go to
chrome://extensions, find AiText and click the refresh icon
- For Firefox: Go to
Note: Temporary add-ons/extensions are removed when the browser is closed and will need to be loaded again the next time you open the browser.
Packaging
To package the extension for distribution:
This will:
- Prompt for a new version (or keep the current one)
- Update version in
manifest.jsonandpackage.json - Build the extension for both Firefox and Chrome
- Create the following files in the
archivesdirectory:ai-text-firefox-<version>.zip- Firefox distribution packageai-text-chrome-<version>.zip- Chrome distribution packageai-text-source-<version>.zip- Source code package for Mozilla review
Upload the appropriate zip file to:
- Firefox: Firefox Add-ons site
- Chrome: Chrome Web Store Developer Dashboard
License
This project is licensed under the MIT License. See the LICENSE file for details.
Privacy Policy
See the privacy.md file for details.







