VU
vuquan2005/RunLLM
RunLLM integrates Large Language Models (LLMs) into PowerToys Run, enabling direct AI interaction from the search bar. It supports any service with an OpenAI API-style endpoint (e.g., Ollama, LMStudio).
RunLLM - PowerToys Run Plugin
๐ค Chat with Large Language Models directly from PowerToys Run
Features
- Streaming Responses - Real-time text streaming from LLMs
- Model Switching - Switch between models without leaving PowerToys Run
- Thinking Mode - Toggle reasoning with
/think(Qwen3) orenable_thinking(OpenAI) - Endpoint Switching - Change API endpoint on-the-fly with validation
- API Key Support - Works with OpenAI, OpenRouter, and other authenticated APIs
- Custom System Prompt - Define your own instructions
Requirements
- PowerToys v0.70.0+
- OpenAI-compatible LLM server:
Installation
From Release
- Download latest ZIP from Releases
- Extract to
%LocalAppData%\Microsoft\PowerToys\PowerToys Run\Plugins\RunLLM - Restart PowerToys
Folder structure after extraction:
Plugins/
โโโ RunLLM/
โโโ Community.PowerToys.Run.Plugin.RunLLM.dll
โโโ Community.PowerToys.Run.Plugin.RunLLM.deps.json
โโโ plugin.json
โโโ Images/
โโโ *.png
From Source
git clone https://github.com/vuquan2005/RunLLM.git
cd RunLLM
.\scripts\dev.ps1Usage
Open PowerToys Run (Alt + Space) and type:
| Command | Action |
|---|---|
runllm <question> |
Ask the LLM |
runllm โ Change Model |
Switch between available models |
runllm โ Thinking Mode |
Toggle thinking, select mode type |
runllm โ Change Endpoint |
Validate and set new API URL |
Examples
runllm What is the capital of France?
runllm Explain async/await in JavaScript
runllm Write a Python function to reverse a string
Configuration
Go to PowerToys Settings โ PowerToys Run โ Plugins โ RunLLM:
| Setting | Description | Default |
|---|---|---|
| LLM URL | API endpoint | http://localhost:11434 |
| Default Model | Model name | qwen/qwen3-4b |
| API Key | Enable + enter key | (disabled) |
| Enable Thinking | Toggle thinking mode | Off |
| System Prompt | Custom instructions | (empty) |
Development
See DEVELOPMENT.md for build instructions.
.\scripts\dev.ps1 # Build + Deploy + Restart
.\scripts\build.ps1 # Build only
.\scripts\clean.ps1 # Clean artifactsArchitecture
src/
โโโ Main.cs # Plugin entry point
โโโ QueryHandler.cs # State machine, UI handlers
โโโ LLMClient.cs # HTTP client, streaming
โโโ PluginSettings.cs # Settings management
โโโ Constants.cs # Default values
License
MIT License - see LICENSE.txt
On this page
Languages
C#83.3%PowerShell16.7%
Contributors
MIT License
Created September 30, 2025
Updated January 6, 2026