An AutoHotkey tool for quick text correction, optimization, and generation using OpenAI GPT-4 (or compatible APIs).
Now updated with AutoHotkey v2 support! Choose the version that matches your installation.
| Feature | v1 (Legacy) | v2 (Recommended) |
|---|---|---|
| Engine | AutoHotkey v1.1 | AutoHotkey v2.0+ |
| Styles | 3 Presets (Friendly, Tech, Chat) | 3 Presets + Free Style |
| API Config | OpenAI Only | Custom URL & Model ID |
| Local LLM | No | Yes (Ollama/LM Studio support) |
| Async Gen | Yes | Yes (Optimized) |
- Quick Replace: Replace selected text directly in any app (
Ctrl+Alt+X) - Parallel Processing: Generate Friendly, Technical, and Conversational styles simultaneously.
- Custom Prompts: Fully customizable instructions via GUI.
- Multi-Monitor Support: Smart window positioning and monitor selection.
- Clipboard History: Safely restores clipboard after text replacement.
This repository contains two versions of the script:
/v1/: For users running legacy AutoHotkey v1.1./v2/: For users running modern AutoHotkey v2.0 (Includes generic API support).
- Install AutoHotkey v2: Download v2.0
- Navigate to the
v2folder in this repo. - Run
KI-Text-Assistent.ahk(Double-click).
- Install AutoHotkey v1.1: Download v1.1
- Navigate to the
v1folder. - Run
KI-Text-Assistent.ahk.
You can use OpenAI or any local/compatible provider.
- OpenAI: Go to platform.openai.com -> Create new secret key.
- Local LLM: Start your server (e.g., LM Studio/Ollama) and get your local URL (usually
http://localhost:1234/v1/chat/completions).
- Right-click the tray icon 🤖 in your taskbar.
- Select "Options" (Einstellungen).
- Enter your details:
| Provider | API Endpoint | Suggested Model ID |
|---|---|---|
| OpenAI | https://api.openai.com/v1/chat/completions |
gpt-4o, gpt-4o-mini |
| Google Gemini | https://generativelanguage.googleapis.com/v1beta/openai/chat/completions |
gemini-1.5-flash, gemini-2.0-flash-exp |
| Ollama (Local) | http://localhost:11434/v1/chat/completions |
llama3, mistral, phi3 |
| LM Studio (Local) | http://localhost:1234/v1/chat/completions |
(Selected in LM Studio) |
| Groq (Fast) | https://api.groq.com/openai/v1/chat/completions |
llama3-70b-8192, mixtral-8x7b-32768 |
| Mistral | https://api.mistral.ai/v1/chat/completions |
mistral-large-latest |
⚠️ Security: The key is stored locally inprompts.ini. Never share this file!
| Hotkey | Function |
|---|---|
Ctrl+Alt+C |
Open GUI: Opens the main window with the selected text copied. |
Ctrl+Alt+X |
Quick Replace: Opens a small menu to replace text instantly. |
Best for comparing different tones or writing custom instructions.
- Select text -> Press Hotkey.
- Wait for parallel generation.
- v2 Only: Use the "Individuell" field to type a custom instruction (e.g., "Translate to Spanish") and click "Generieren".
Best for fast corrections while typing emails or tickets.
- Select text -> Press Hotkey.
- Select style from menu.
- Text is replaced automatically.
Settings are saved in prompts.ini next to the script.
v2 Example prompts.ini:
[Config]
APIUrl=[https://api.openai.com/v1/chat/completions](https://api.openai.com/v1/chat/completions)
Model=gpt-4o-mini
APIKey=sk-your-key-here
PreferredMonitor=1
RememberPosition=1
[Prompts]
Freundlich=Correct the text in a friendly way...
Technisch=Correct the text technically...
...