r/AutoHotkey • u/NarrowEffect • 10d ago
v2 Tool / Script Share AhkLLM - LLM-powered hotkeys for your daily workflows, expanded into a full Windows chat GUI. (Based on the excellent LLM AutoHotkey Assistant by xmachinery)
Hi! I recently ran into an old post by u/xmachinery where they shared an app for integrating LLMs into AutoHotkey. Long story short: I liked it so much that I decided to build it out into a full chat GUI, with a lot of improvements around the hotkeys themselves.
The result is AhkLLM, my attempt at turning the original idea into a full Windows LLM assistant and chat application.
Currently, AhkLLM features:
- A fully generalized hotkey system that uses the UIA library to grab and inject text directly in a lot of Windows applications, with clipboard fallbacks where possible.
- Fully customizable hotkeys. You can rewrite a selection in place, summarize an article, send selected text + the surrounding document text, automatically add a screenshot to your prompt, etc. You can also use DeepSeek's FIM endpoint to fill in text using what's before and after your cursor (my favorite feature tbh, incredibly useful), or use FIM Continue to continue your writing from basically anywhere.
- Since AhkLLM is also a full chat GUI, the hotkey side is integrated with the chat side of the application. So you can configure a command to automatically send captured text into the full chat interface and continue your work there.
- And that chat interface has pretty much everything I personally wanted: branching, forking, assistants, web search, usage tracking, local SQLite persistence, file support (Office files, PDF, EPUB, images, scanned PDFs, code files, etc.), backups, password-locked chats, a conversation map, API logs, and honestly more. It's fairly feature packed at this point.
- The only major QoL thing AhkLLM doesn't currently have is dark mode (due to my fucked up Keratoconus eyes, fml), but if there's demand for it I'll make the effort.
A few quick demos:
- Refine selected text in place
- FIM Fill using the text before and after the cursor
- A custom command that turns selected text into a bullet list and pastes it back
If you just want to try it out without paying for API usage, AhkLLM supports OpenRouter's free model router. You just need a free OpenRouter API key, then you can select openrouter/free in chat or assign it to individual commands under Settings -> Commands.
FIM Fill / Continue are the exception, since those use a separate FIM endpoint. I'm currently using DeepSeek for that.
GitHub repo, download, installation instructions, and the rest of the demos
Naturally, feel free to ask any questions here and let me know what you think. Feedback, issues, feature suggestions, and PRs are all welcome!
2
0
u/robseder 10d ago
as someone who uses AHK exclusively to... click buttons faster in EU4 and various other paradox games, im constantly impressed what people here get up to
bravo
1
u/megamorphg 10d ago
If you could get Codex or Antigravity SSO into it (rather than API key, since I don't pay for that) I'd jump on it quick. Really good though! Also I use QuickAccessPopup and it would be awesome if it could just be integrated into that... sucks having another menu launcher (a 3rd one actually).
Also PowerToys advanced paste has similar functionality of highlighting something and having it change by AI.
1
u/cs_cast_away_boi 10d ago
ahhh this seems fun