This is a Windows tool that enables running custom OpenAI prompts on text in any window using global hotkeys.
i.e. Low-friction AI text editing ("spicy autocomplete") anywhere in Windows.
Where can it be used?
Almost anywhere in Windows where you can enter text.
To get started, first download and extract the latest release .zip file. If you already have AutoHotkey installed, simply run AI-Tools.ahk
. If not, use the .exe version, which allows you to use the script without having AutoHotkey installed. The script doesn't install anything and is portable, so you can run it from any location.
When you run the script for the first time, it will create a new settings.ini
file in the same directory. This file contains the script's settings, which you can edit to change the hotkeys or add your own prompts.
Additionally, the script will prompt you to enter your OpenAI API key. If you don't have one yet, you can obtain an API key from OpenAI.
The default hotkeys and prompts are set to the following:
Ctrl+Shift+j
- (Auto-select text - Fix spelling) - Auto selects the current line or paragraph and runs the "Fix Spelling" prompt and replaces it with the corrected version.
Ctrl+Shift+k
- (Auto-select text - Prompt Menu) - Auto selects the current line or paragraph and opens the prompt menu.
Ctrl+Alt+Shift+k
- (Manual-select text - Prompt Menu) - Opens the prompt menu to pick the prompt to run on the selected text.
The settings.ini
file contains the settings for the script. You can edit this file to change the prompts, the API mode and model to use, and individual model settings.
Start with windows
To have the script start when windows boots up, select "Start With Windows" from the tray icon.
OpenAI and Azure OpenAI API's are supported.
API:
/v1/chat/completions (Default - OpenAI)
/openai/deployments/*/chat/completions (Azure)
Models:
gpt-3.5-turbo
gpt-4
gpt-*
Tested on Windows 10 Pro 22H2 64-bit.
TheArkive (JXON_ahk2, M-ArkDown_ahk2), iseahound (SetSystemCursor), and the AHK community.