Select text anywhere in Windows. Press a hotkey. Get it corrected in place.
Grammar, spelling, punctuation, capitalization — fixed in ~1 second.
Select text → Ctrl+Shift+R → text corrected in place
Retext sits in your system tray. When you trigger the hotkey, it:
- Copies the selected text via
Ctrl+C - Sends it to the Gemini API for correction
- Pastes the corrected version via
Ctrl+V - Restores your original clipboard
The language is auto-detected — works with any language Gemini supports.
- Download
Retext.exefrom Releases - Get a free API key at aistudio.google.com/apikey
- Run
Retext.exe— it appears in the system tray - Right-click the tray icon → Settings → paste your API key → Save
- Select text anywhere → press
Ctrl+Shift+R
Right-click the tray icon → Settings:
| Setting | Default | Description |
|---|---|---|
| API Key | — | Your Gemini API key (get one free) |
| Model | gemini-2.5-flash |
Any Gemini model name |
| Hotkey | Ctrl+Shift+R |
Click Record to change |
Config is stored in %APPDATA%\Retext\config.json. The API key is stored securely in Windows Credential Manager.
Requires Python 3.12+.
# Clone
git clone https://github.com/probablyagoodusername/Retext.git
cd Retext
# Install dependencies
python -m venv .venv
.venv\Scripts\activate
pip install -e .
# Run
python -m rewrite.main
# Build .exe
pip install pyinstaller
pyinstaller --onefile --windowed --name Retext --icon assets\icon.ico --add-data "assets;assets" src\rewrite\main.py
# Output: dist\Retext.exepip install pytest ruff
pytest
ruff check src/| Component | Library |
|---|---|
| Global hotkey | pynput |
| Clipboard | pyperclip + pynput |
| AI | google-genai (Gemini) |
| System tray | pystray + Pillow |
| Settings UI | tkinter (stdlib) |
| Packaging | PyInstaller |
Icon by Sergei Kokota