Skip to main content
Glama

omarchy-pilot

Fast, audited computer control for Omarchy Linux (Hyprland + Quickshell) powered by OpenRouter's Decisions API.

Highlights

  • Sub-300 ms Visual Grounding: Plans multi-step UI routes once with a fast System-2 planner (openai/gpt-6.2-sol or google/gemini-4-neon), then executes each click in ~270 ms using System-1 bounding-box localization (~typesafe/jev-latest box + liquid/d1.3-ultra noul over OpenRouter /api/alpha/decisions, or native api.liquid.ai via --backend liquid-direct).

  • Native Omarchy Top-Bar Control Center (k4c.omarchy-pilot): Lives cleanly inside Omarchy's native top menu bar — no floating corner pills over your windows! Shows the machine's host name and active agent right in the bar; click to open a native dropdown menu with PC identity, connected agents, Pause/Resume human takeover, Clear Overlays, a redacted screenshot preview (AUDIT SAFE / REDACTED · ROTATE), and a scrollable history list of every screenshot taken.

  • Zero-Footprint Click-Through Live Annotations: Draws click-through glowing highlight boxes, spotlight scrim, Bézier leaders, 2.5× magnifier loupe, and 420 ms click ripples directly over live Hyprland windows (WlrLayer.Overlay) — and stays completely invisible when idle.

  • Always-On Credential Leak Guard & Audit Logging: Every screenshot is screened by liquid/d1.3-ultra for visible passwords, API keys, tokens, or open password managers. Any detected credential region is localized, blurred, and covered with REDACTED - ROTATE CREDENTIAL before saving to disk, the HUD, or chat, and flagged rotation_required: true in both ~/.local/state/omarchy-pilot/audit.jsonl and VictoriaLogs (when configured).

  • Multi-Omarchy Fleet & Public-Ready: Works locally on any Omarchy desktop with just OPENROUTER_API_KEY, or across multiple Omarchy machines (desktop-host, dev-workstation, etc.) via ~/.config/omarchy-pilot/hosts.json and the omarchy-pilot-mcp MCP server.

Related MCP server: astra-linux-agent

New in 0.4.0

  • Native Omarchy Top-Bar Widget (k4c.omarchy-pilot). Replaced the floating bottom-right HUD pill/drawer with a validated first-party-style omarchy-shell bar widget placed beside omarchy.agents in the Omarchy top bar (~/.config/omarchy/plugins/k4c.omarchy-pilot/). Left-click opens a native Omarchy dropdown menu showing:

    • Host / PC name (e.g. omarchy · desktop-host, dev-workstation) and live status

    • Connected AI agents with coloured badges, window scope, and live acting / connected state

    • Human-takeover Pause / Resume button (also right-click on the bar widget or Super + Shift + Escape) and Clear button when live overlays are on screen

    • Redacted screenshot preview & scrollable history list — click any past screenshot or scrub with ◀ / ▶ / Super + < / Super + > to inspect what each agent saw and did

  • Zero floating corner chrome. omarchy-pilot-hud.service now renders only the click-through omarchy-pilot-overlay (live highlight boxes, spotlight scrim, and 420 ms click ripple) and stays completely invisible whenever idle.

  • Auto-fold top-bar dropdown before capture. If the Pilot dropdown menu is open when an agent takes a screenshot, the worker closes it via omarchy-shell k4c.omarchy-pilot close and waits for the compositor to drop the layer before capturing.

  • Per-screenshot agent attribution. Every recorded screenshot stores the agent name and colour that captured it.

New in 0.3.0

  • Human takeover (Pause). A ⏸ button on the HUD pill and Super + Shift + Escape freeze every agent on that desktop. It is enforced by the worker on the machine, not by the agent: while paused, every screenshot and every click is refused, whoever asks. A running sprint waits about 20 s for you, then returns paused: true with the steps it finished. Only the person at the machine can resume; controllers and MCP tools can pause but have no resume.

  • Polite on a shared desktop. Inside a window_scope, each action is one locked burst (click, type, Return) and the cursor and keyboard focus are put back where you, or the other agent, had them. A click is only pressed if the cursor is verifiably on the target; if you are moving the mouse, the click is dropped, not misplaced.

  • Agent pills. Each connected agent shows a small coloured pill above the HUD (Blender · blender, Browser · wikipedia), highlighted while it acts and removed when it disconnects.

  • OCR only where pixels changed. The local pre-upload secret gate keeps the previous frame per window and compares exactly, row by row (2 ms). Unchanged frame: OCR skipped (1,259 ms → 7 ms). A few changed rows: only those bands are read again (~30 ms). Never a perceptual hash: on an ordinary desktop frame a new line of text flips 0 of 576 bits of a 32×18 hash (tests/test_frame_cache.py).

  • Tailnet discovery. omarchy-pilot discover and the MCP tool omarchy_list_hosts answer "which machines do I have desktop access to right now?" See Discovery.

  • Arch packages. omarchy-pilot-node (the controlled desktop, 31 kB) and omarchy-pilot (controller + MCP server). See INSTALL.md.

  • The idle HUD went from about 10% of a core to under 1%, and the audit drawer folds itself when an agent needs the pixels under it.

Install

See INSTALL.md for full public, local, fleet, MCP, and VictoriaLogs setup, or run:

./install.sh

CLI Quick Reference

omarchy-pilot discover                                   # which desktops can I control right now?
omarchy-pilot discover --probe new-box                   # log into one tailnet peer, enroll it if it is a pilot desktop
omarchy-pilot --host desktop-host status                         # session, pointer, HUD, paused
omarchy-pilot --host desktop-host install-hud --label "desktop-host" # top-bar widget + overlay + hotkeys (enrolls host)
omarchy-pilot --host desktop-host screenshot                     # audited + redacted screenshot
omarchy-pilot --host desktop-host click --target "Search box" --type "Hyprland" --submit --window chromium
omarchy-pilot --host desktop-host annotate --topic "Explain Wayland on this page"
omarchy-pilot --host desktop-host pause                          # freeze every agent there (resume is on the machine)
omarchy-pilot --host desktop-host clear                          # clear live overlay boxes

On the controlled machine itself: omarchy-pilot-node setup | status | pause | resume.

MCP Tools (omarchy-pilot-mcp)

  • omarchy_list_hosts (live: every known desktop with access: ready / paused / offline / no-session / unreachable)

  • omarchy_discover_hosts (tailnet candidates; logs into a peer only when it is named in probe)

  • omarchy_agent_identify (name this agent's pill on the HUD)

  • omarchy_pause (freeze all agents on a desktop; there is no resume tool)

  • omarchy_screenshot_audit

  • omarchy_locate_and_click (fast parallel guard+box, annotate=false default with fading 420 ms click ripple)

  • omarchy_autonomous_run (pure System-1 multi-page sprint — zero LLM round-trips between screens)

  • omarchy_annotate_screen (non-overlapping opaque callouts, spotlight scrim, Bézier leaders, 2.5× magnifier loupe)

  • omarchy_clear_annotations

  • omarchy_audit_history

All action tools accept an optional host ("desktop-host", "omarchy", "dev-workstation", "local", a tailnet name…), window_scope, and park_cursor.

Discovery

Tailscale tells the controller who is on the tailnet and online. It does not say which peer is a desktop: peers expose only name, OS, online state, tags and addresses. So access is proven the one way that proves it, by running the worker's handshake over SSH, and a login is never made lightly:

Machine

What discovery does

Known host (hosts.json, or enrolled earlier) and online

re-checked over SSH, result cached 5 min

Known host, offline on the tailnet

reported offline, not contacted

Other Linux peer with a Host block in ~/.ssh/config

listed as a candidate, not contacted

…the same, named in --probe / probe, or matching discovery.auto_probe

logged into once; enrolled if it is a pilot desktop

Peer with no documented SSH path, other tailnets, non-Linux

never contacted

A machine becomes known in one of three ways: you wrote it into ~/.config/omarchy-pilot/hosts.json, you ran install-hud on it from the controller, or a probe found a pilot desktop there. To have new boxes with a naming convention appear by themselves:

{ "hosts": { }, "discovery": { "auto_probe": ["omarchy-*"], "tags": ["tag:omarchy-pilot"] } }

Nothing listens on a port on either side; ss -ltnp is unchanged by installing a node.

Hotkeys & Top-Bar Menu Controls

  • Left-click top-bar widget: open / close the Omarchy Pilot dropdown menu (PC name, active agents, Pause/Resume, redacted screenshot preview & scrollable history)

  • Right-click top-bar widget or Super + Shift + Escape: pause / resume every agent on this desktop (human takeover)

  • Middle-click top-bar widget or Clear button in the dropdown: instantly clear any lingering live overlay boxes and spotlight scrim

  • Super + < (SUPER + SHIFT + COMMA): open the dropdown and scrub backward through redacted action screenshots

  • Super + > (SUPER + SHIFT + PERIOD): open the dropdown and scrub forward through redacted action screenshots

Tests

uv run python tests/test_worker_logic.py    # burst rules: park/restore, contended cursor, pause (no desktop needed)
uv run python tests/test_frame_cache.py     # the OCR cache never lets a secret through (ground-truth fuzz)
uv run python tests/test_discovery.py       # which machines get contacted, and which never do
uv run python tests/test_local_redact.py && uv run python tests/test_layout.py
uv run python tests/live_desktop.py --host desktop-host   # real desktop, no model calls: 20 checks read back from the compositor

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      B
      maintenance
      Enables any LLM to fully control an Omarchy Linux desktop, including themes, apps, screenshots, reminders, audio, brightness, and Hyprland window tiling, with safety guards on destructive operations.
      108
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables an AI agent to see and control a Linux desktop via Wayland/Hyprland, providing screenshots, structured desktop state, pointer/keyboard input, semantic window/workspace tools, and a policy engine for safe execution.
      Apache 2.0
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to observe and control the user's live desktop by listing apps, reading accessibility trees, and performing clicks, typing, scrolling, dragging, and other input actions with per-action approvals and local audit archives.
      1
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI agents to see and control an existing Linux X11 desktop over SSH by taking screenshots and performing mouse, scroll, typing, and keyboard-shortcut actions across browsers, terminals, file managers, and other apps.
      1
      MIT