Relay is a high-performance native Windows desktop AI assistant that understands whatever you are looking at on your screen.
Think of it as Google Lens for the entire desktop, built with .NET 10 (WPF + Win32), Gemini Multimodal Vision, and Offline Windows OCR.
- Global System Hotkey (
Ctrl + Space): Instantly freeze and select any rectangular region on any display across heterogeneous multi-monitor setups. - Pixel-Perfect GDI+ Screen Capture (< 10ms): Sub-millisecond desktop snapshotting with Per-Monitor V2 DPI scaling normalization.
- Instant Offline OCR: Built-in Windows 10/11
Windows.Media.Ocrengine extracts on-screen text in under 20ms at zero API cost. - Operating System & Window Context: Automatically inspects the active application (
Visual Studio,Google Chrome,VS Code,Spotify, etc.) and window title to enrich AI understanding. - Intelligent Intent Engine: Automatically classifies screen content into actions:
DEBUGβ Diagnoses compiler exceptions, stack traces, and provides 1-click code fixes.SHOPβ Identifies products, exact models, brands, and search prices.TRANSLATEβ Detects foreign on-screen text and provides translations.EXPLAINβ Breaks down scientific diagrams, math formulas, and complex UI.EXTRACTβ Formats tabular data, markdown, and code snippets ready for clipboard copy.
- Streaming Glassmorphic Floating Panel: Token-by-token streaming markdown with interactive ChatGPT-style code blocks, 1-click copy buttons, always-on-top pinning, and continuous multi-turn follow-up chat.
- Zero-Leakage Privacy Architecture:
- API keys encrypted at rest via Windows DPAPI (
CurrentUserscope). - No screenshots persisted to disk by default (in-memory analysis).
- Application Blacklist (e.g. 1Password, Bitwarden, KeePass) prevents accidental capture of sensitive windows.
- API keys encrypted at rest via Windows DPAPI (
- Local SQLite History: Searchable query and answer history stored locally in
%LocalAppData%\Relay\relay.db.
Relay/
βββ src/
β βββ Relay.Core/ # Domain models, enums (IntentType), and contracts
β β βββ Interfaces/ # IAiProvider, IScreenCaptureService, IHotkeyService, etc.
β β βββ Models/ # CaptureRegion, ScreenContext, AiAnalysisRequest, etc.
β β
β βββ Relay.Infrastructure/ # Concrete implementations & Win32 Interop
β β βββ Ai/ # Gemini Flash-Lite & Ollama Multimodal SSE streaming clients
β β βββ ScreenCapture/ # High-performance GDI+ BitBlt & DPI conversion
β β βββ Hotkeys/ # Win32 RegisterHotKey with message hook
β β βββ WindowContext/ # GetForegroundWindow & process metadata
β β βββ Ocr/ # Native Windows.Media.Ocr wrapper
β β βββ Security/ # DPAPI encrypted credential vault
β β βββ Search/ # Web search integration service
β β βββ Data/ # EF Core SQLite DbContext & repositories
β β
β βββ Relay.UI/ # WPF Windows 11 Desktop Application
β β βββ Controls/ # Streaming Markdown viewer, badges, cards
β β βββ Styles/ # Colors, typography, Fluent dark theme
β β βββ ViewModels/ # MVVM ViewModels (CommunityToolkit.Mvvm)
β β βββ Views/ # Overlay, Floating Result, Settings, History windows
β β
β βββ Relay.Tests/ # Unit & integration test suite (xUnit, FluentAssertions, Moq)
βββ Relay.slnx
- Windows 10 (Version 19041+) or Windows 11
- .NET 10 SDK
- A Google Gemini API Key or a local Ollama instance
- Run with
run.cmdor build from CLI:dotnet build dotnet run --project src/Relay.UI/Relay.UI.csproj
- Enter your Gemini API key in the Settings dialog or choose Local AI (Ollama).
- Press
Ctrl + Spaceanywhere in Windows to start analyzing your screen!
Relay can be built as a standalone Windows installer (RelaySetup.exe) that sets it up as a lightweight startup background app:
Run the one-click build script:
build-installer.cmd(Or in PowerShell: .\build-installer.ps1)
This publishes a self-contained, optimized Ahead-of-Time ReadyToRun binary and compiles dist/RelaySetup.exe.
- Zero-Elevation Per-User Install: Installs directly into
%LocalAppData%\Programs\Relaywithout requiring Administrator/UAC elevation. - Seamless PC Startup: Automatically starts with Windows (
--minimized) in the background system tray. - Minimal Resource Footprint: Idle memory is trimmed to ~10β15 MB RAM with 0% background CPU utilization when sitting in the system tray.
- Single-Instance Enforcement: Re-opening Relay focuses the existing active instance without duplicate processes or hotkey conflicts.
- Clean Uninstaller: Registered in Windows Installed Apps / Add or Remove Programs.
dotnet test- Relay only captures the specific pixel region you drag-select.
- Visual data is processed in memory during the active session.
- API credentials are encrypted with your Windows user credentials via DPAPI.
- You can configure blacklisted processes in Settings to prevent Relay from activating when sensitive applications are focused.
MIT License. Open source and built for modern Windows productivity.
