GitHunt
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

Build
Release
License: MIT

๐Ÿค– 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) or enable_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

Installation

From Release

  1. Download latest ZIP from Releases
  2. Extract to %LocalAppData%\Microsoft\PowerToys\PowerToys Run\Plugins\RunLLM
  3. 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.ps1

Usage

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 artifacts

Architecture

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

Languages

C#83.3%PowerShell16.7%

Contributors

MIT License
Created September 30, 2025
Updated January 6, 2026
vuquan2005/RunLLM | GitHunt