omarchy-desktop
Controls the user's Hyprland (Omarchy) desktop: lists and focuses windows and workspaces, moves windows between workspaces, and drives virtual keyboard/mouse input, clicking, scrolling, key presses and screenshots of the real session.
In headless mode (AUTOMATION_BACKEND=headless) the server drives an isolated nested sway compositor with its own Chromium profile, so several automated browsers can run side by side with the same page-reading, window and input tools without touching the user's desktop.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@omarchy-desktop open Chromium and search for the Omarchy docs"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
omarchy-computer-use
Computer use for Omarchy: an MCP server that lets an AI agent (Claude Code, Codex, or any MCP client) operate your Hyprland desktop and browser.
It works the way a screen reader does. Instead of guessing from screenshots, it reads the Linux accessibility tree
(AT-SPI) for every element's role, name, state and position, and acts with virtual keyboard and mouse input. A page
becomes a short, exact list like e12 push button "Sign in" @640,212, so the agent clicks the right thing the first
time and spends a fraction of the tokens a screenshot costs. Screenshots are still there for what the tree can't see
(canvas, images).
Install
On Omarchy (or any Arch + Hyprland setup), as your normal user:
curl -fsSL https://raw.githubusercontent.com/martoast/omarchy-computer-use/main/get.sh | bashThen restart Chromium once and open Claude Code or Codex: the omarchy-desktop tools are already registered.
The script asks for your sudo password for the packages and one udev rule. It's safe to run again; it only adds what is missing. No log-out needed.
Packages:
ydotool(mouse),wtype(keyboard),grim(screenshots),python-gobject+at-spi2-core(reading the accessibility tree),sway+wlrctl(only for the headless mode),nodejs+npm.Input: a udev rule so your user can use
/dev/uinput, and theydotoolduser service.Accessibility: turns on GNOME's
toolkit-accessibility, switches the accessibility bus on for the current session, and adds--force-renderer-accessibilityto~/.config/chromium-flags.conf(Chromium only exposes its page tree with it).npm ciin~/.local/share/omarchy-computer-use(two dependencies: the MCP SDK and zod).Registers the MCP server
omarchy-desktopwith Claude Code (user scope) and Codex, if installed, including the ones Omarchy installs through mise.Creates an empty plugin list and the
omarchy-computer-usecommand, then runs the health check.
Related MCP server: hyprland-mcp
Commands
omarchy-computer-use doctor # check everything; starts the server and talks to Hyprland
omarchy-computer-use update # pull the latest version, reinstall deps, re-register
omarchy-computer-use register # register with Claude Code / Codex again (e.g. after installing one)
omarchy-computer-use uninstall # unregister and remove the command (packages and the udev rule stay)Using another MCP client? Point it at node ~/.local/share/omarchy-computer-use/index.js (stdio).
Tools
Group | Tools |
See |
|
Act on elements |
|
Wait |
|
Get unstuck |
|
Windows |
|
Raw input |
|
Site memory |
|
Elements are addressed by a ref from read_page (e42) or by their accessible name. Roles use AT-SPI names
("push button", "entry", "combo box"); passing "button" or "textbox" fails fast with a suggestion.
Safety
It never submits a payment, places an order, or presses another irreversible button on its own. The core's click and press tools refuse those buttons and leave them to you.
When a site shows a human check (CAPTCHA, "press and hold"), the agent stops and hands it to you. It never presses it.
It never reads saved-card numbers or the browser's saved-address dropdown text.
It drives your real desktop: the mouse and keyboard move while it works. For unattended work use the headless mode.
Headless mode
AUTOMATION_BACKEND=headless drives an isolated nested sway compositor with its own Chromium profile instead of your
desktop, so several can run side by side without touching your session. See headless_instance.mjs.
Site memory and privacy
What the agent learns about a site (navigation, form fields, a search URL) is saved on your machine in
~/.local/share/omarchy-computer-use/sites (or $COMPUTER_USE_SITEMAP_DIR). It starts empty and never leaves your
machine. It records the page's labels and links, not what you type, and drops anything that looks like a street address,
a postal code or another person's name in a review before writing.
Plugins
Other projects can add their own tools. List plugin modules in ~/.config/omarchy-computer-use/plugins.json:
{ "plugins": ["/path/to/my-plugin.mjs"] }or set COMPUTER_USE_PLUGINS (it wins over the file, even when empty). A plugin exports
register({ server, z, page, siteMemory }) and calls server.tool(...) like the core does. A plugin that fails to
load is skipped, the core keeps working, and omarchy-computer-use doctor shows why. A plugin runs with the same
access as the core, and the safety rules above are built into the core's own tools, so only add plugins you trust.
Troubleshooting
read_pagesays "no AT-SPI application found": restart Chromium (it reads the accessibility setting at start).doctorchecks the accessibility bus and the Chromium flag./dev/uinput not writable: log out and back in once, or run the installer again.Nothing happens on screen:
systemctl --user status ydotool.
Development
npm ci
node run_suites.mjs # all suites: pure JS + Python, and the live ones in their own headless compositorLicense
MIT © Alex Martos
Available Tools
32 toolsautofill_popup_stateIs Chrome's address autofill dropdown openB
Whether the browser's own saved-address dropdown is open. Never returns its text.
Inputs: window_address.
check_field_valuesCheck form fields against expected valuesA
For each {name, expect, mode}: whether the visible form field with that name holds the value (match / differs / empty / missing). Never returns field text.
Inputs: checks (required), window_address.
clickClick the mouse (raw coordinates)A
Move to (x, y) and click a real mouse button there via the kernel input layer (uinput), like a physical mouse. Prefer click_element for anything with an accessible name (buttons, links, fields) — it's exact and doesn't require knowing pixel coordinates. Use this raw version for canvas/custom-drawn UI, or coordinates you got from a screenshot.
Inputs: x (required), y (required), button, clicks, +3 more.
click_elementClick an element by ref or by nameA
Click an interactive element precisely — either a ref from a previous read_page call, or by matching its accessible name/text directly (no read_page needed first; this does the find-and-click in one call, which is the efficient path for a simple 'click the X button' step). Uses the same kernel-level input as the click tool, just aimed exactly instead of guessed.
Inputs: ref, role, text, button, +4 more.
dismiss_dialogClose a dialog that is hiding the page (verified)A
Close ONE dialog that is covering the page. A consent or promo overlay can hide the entire page from the accessibility tree, so read_page shows almost nothing while the site renders normally. TRY dialog_ref FIRST for cookie, sale and promotional overlays: pass the ref of the DIALOG ITSELF (a row marked DIALOG-ROOT) and it sends ONE Escape, then verifies whether that exact dialog actually closed. Some overlays respond to Escape and some ignore it — the result tells you which, and never assumes. Worth trying first because a consent banner may expose NO close button at all, only Accept/Reject/Preferences. FALL BACK in a SEPARATE CALL to control_ref when Escape is unavailable or fails verification: pass a close/dismiss control INSIDE the dialog and its own action is invoked. If dialog_ref or dialog_text is supplied, the Escape path always wins even when control_ref is also present; this prevents callers from accidentally skipping the safe first attempt. Either way this tool ONLY closes. It refuses any control that makes a substantive choice (Accept, Reject, Preferences, Subscribe and similar), because those decide something on the user's behalf — use click_element if such a choice is genuinely intended. At most one action or one keypress, never a coordinate click, never a change of keyboard focus, and the outcome is verified from a fresh read. If another dialog remains it is reported with its ref rather than closed automatically.
Inputs: dialog_ref, control_ref, dialog_text, window_address.
escape_pagePress Escape once for the page (store pop-ups)A
Send ONE Escape to the page document, after the page has loaded: focus in browser UI is first given to the page document (no click). Refused, with nothing pressed, when a field, a list or a choice has focus. Returns {sent, focus_before, focus, reason}. Verify with a read afterwards; this never claims a pop-up closed.
Inputs: window_address, move_from_field.
focus_fieldFocus a form fieldC
Give a form field (by ref) keyboard focus. Returns whether it is focused.
Inputs: ref (required), window_address.
focus_windowFocus a windowB
Focus a window by its Hyprland address (from list_windows).
Inputs: address (required).
get_active_windowGet the active windowA
Get the currently focused window's class, title, pid, and geometry.
Inputs: no named parameters.
get_active_workspaceGet the active workspaceA
Returns the Hyprland workspace ID currently visible. Used to remember where to switch back to after isolating a window on another workspace.
Inputs: no named parameters.
get_site_mapGet accumulated knowledge about a siteA
Return everything learned about a domain from past visits (this session or previous ones): known nav links, known form fields (search box, login, etc.), and any manually-saved search URL pattern / login URL / notes. Call this before exploring a site you've likely visited before — it can save a full read_page round-trip. Defaults to the current page's domain.
Inputs: domain.
key_pressPress a key or key comboB
Press a named key (e.g. Return, Tab, Escape, BackSpace, Left, Right, Up, Down, PageDown/Next, Home, End, Delete, minus) optionally with modifiers (shift, ctrl, alt, logo).
Inputs: key (required), modifiers.
list_imagesList the page's image nodes (read-only)A
Read-only inventory of the current document's image nodes from the accessibility tree: accessible name (alt), rendered box and the element's own image source URL. No click, scroll or focus. Used by the supervisor to attach a trusted product image; the rows carry i-handles that cannot be clicked.
Inputs: min_size, max_nodes, window_address.
list_known_sitesList all sites with saved knowledgeA
List every domain this harness has accumulated knowledge about, with visit counts.
Inputs: no named parameters.
list_windowsList open windowsA
List all open windows with their address, class, title, pid, geometry, and focus state.
Inputs: no named parameters.
move_mouseMove the mouseA
Move the real mouse cursor to absolute screen coordinates.
Inputs: x (required), y (required).
move_window_to_workspaceMove a window to a workspaceA
Focuses the given window, moves it to the target workspace, and switches the active view to follow it. Used to isolate the automation's browser on its own workspace (away from windows the user is actively using — a shared workspace means the user's real mouse/keyboard and this tool's synthetic input can land on the same window), and to move it back afterward.
Inputs: address (required), workspace (required).
page_textSave the open page's full text to a file (read-only)A
Write the text of the page document now open (leaf by leaf, in document order) to a local file and return its path. Built for a view-source: page, so a store's embedded product data can be read through this browser session. Read-only: nothing is clicked, typed or navigated.
Inputs: from_end, max_chars, window_address.
press_elementPress an option opener by ref (read-only, fast)A
Press ONE option opener from a prior read_page — a size/colour dropdown, a 'Select size' button, a tab — through its own accessibility action, so its values can be read next. Read-only and fast: no before/after page snapshot, no pointer, no coordinate fallback. Refuses links (use click_element), and anything that changes the cart, the order or the account. Returns 'Pressed' or 'Not pressed' with the reason; it does not verify what opened — read_page does.
Inputs: ref (required), window_address.
read_pageRead the page/window structure (fast, cheap)A
The default way to see what's on screen. Reads the live accessibility tree (same API screen readers use) for the focused window (or a given window_address) and returns every interactive element (buttons, links, fields, checkboxes, etc.) with its exact screen coordinates and a short ref like 'e3'. Costs a few hundred tokens, not an image. Use filter_text/filter_role to narrow a busy page. Follow up with click_element/type_into_element using the ref. Only fall back to screenshot if you need to see something visual (an image, canvas, layout) that has no accessible representation.
Inputs: limit, filter_role, filter_text, filter_state, +3 more.
read_selected_optionRead a dropdown's current valueB
Return the option a dropdown (combo box) currently reports selected, or the value it displays. Never opens or changes it.
Inputs: combo_ref, combo_role, combo_text, window_address.
recover_visual_overlayRecover from an accessibility-invisible overlayA
Use only after a screenshot visibly shows an overlay while an unfiltered accessibility read exposes zero page content. Click exactly one screenshot-identified neutral point inside the overlay, press Escape exactly once, then verify that the same document became readable and no accessible dialog remains. This reports restored readability, never an unobservable claim that the visual overlay closed. Do not retry on failure.
Inputs: x (required), y (required), expected_url (required), window_address.
save_site_mapSave/enrich knowledge about a siteA
Manually record durable facts about a domain that aren't safe to auto-detect: a direct search URL pattern (e.g. 'https://example.com/search?q={query}' — use {query} as the placeholder) once you've verified it works, a login URL, or a free-text note (e.g. 'mega-menu needs click not hover', 'no bot-check observed on homepage'). Nav links and form fields are recorded automatically by read_page — you don't need to save those yourself.
Inputs: note, domain, login_url, search_url_pattern.
screenshotTake a screenshotA
Capture the real screen (or a region, or a specific window's bounds) via the Wayland compositor (grim). Returns a PNG image. EXPENSIVE: costs image tokens and a vision pass. For interactive elements (buttons, links, form fields) use read_page/click_element/type_into_element instead — they're exact and far cheaper. Reach for screenshot only for things the accessibility tree can't describe: canvas/WebGL content, images you need to actually look at, CAPTCHAs, or visually verifying a final result. IMPORTANT: when a region/window crop is used, the returned image's pixel (0,0) is NOT screen (0,0) — it's the region's top-left corner. The accompanying text tells you that offset; you MUST add it to any pixel position you read off the image before passing coordinates to click/move_mouse, or you will click the wrong place.
Inputs: region, window_address.
scrollScrollC
Move to (x, y) and scroll the mouse wheel there.
Inputs: x (required), y (required), amount, direction, +1 more.
scroll_to_elementScroll an element into view (reliable — not simulated)A
Scroll the page so an element (found by text/role, or a ref from read_page) is visible, using the accessibility API's own scroll-into-view action rather than simulating wheel/keyboard scrolling. This is the reliable way to reach below-the-fold content — some pages silently ignore simulated wheel/Page_Down events (e.g. pinned image galleries) but this always works. Also useful to bring a nearby landmark into view before using screenshot on content that itself has no accessible representation (e.g. a canvas-based size picker) — scroll to a labeled heading near it, then screenshot.
Inputs: ref, role, text, window_address.
select_optionSelect a dropdown/<select> option reliablyA
Select an option from a dropdown (combo box). Use this instead of click_element for dropdowns — some dropdowns are native browser popups whose options are ALL reported at the exact same coordinate by the accessibility tree (a known Chromium/AT-SPI limitation for virtualized native selects), which makes clicking by coordinate silently select the WRONG option. This tool detects that case automatically and falls back to type-ahead (typing the option text at a realistic pace) instead of guessing a click position — position-independent, so it doesn't matter what was previously selected. It then reads the dropdown back: the result says [verified: …] when the chosen option reports selected, FAILED when a different one does, and otherwise returns a cropped screenshot to check before trusting the selection.
Inputs: option_text (required), combo_ref, combo_role, combo_text, +1 more.
type_into_elementType into a field by ref or by nameA
Focus a text field (by ref from read_page, or by matching its accessible name/label) and type into it in one call — finds, clicks, optionally clears, types, and optionally submits. This is the efficient path for 'fill in the search box and search'.
Inputs: value (required), ref, role, text, +3 more.
type_textType textA
Type literal text via the Wayland virtual keyboard, exactly as a human typing would.
Inputs: text (required).
wait_for_elementWait for an element to appearA
Poll the accessibility tree until an element matching text/role appears (or the timeout elapses). Use this instead of blind sleeps when waiting on page loads, AJAX content, or animations to settle. Getting the role wrong here is expensive — it polls the FULL timeout for a role that can never match. If unsure of the exact role, omit role and match on text alone.
Inputs: role, text, poll_ms, timeout_ms, +1 more.
wait_page_settledWait until the page has finished loading (event-driven)A
Wait until the page on screen has finished loading: its document is no longer busy and the browser has announced no structural change for quiet_ms. Event-driven (the browser's own accessibility notifications), not a fixed sleep. Returns {settled, reason, ms, ready_ms, events}. Read-only.
Inputs: max_ms, not_doc, quiet_ms, url_contains, +2 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 32 tools
Many tools have clear documented roles, but the set contains several near-neighbor pairs: read_page vs read_after_navigation, wait_page_settled vs wait_for_element, click_element vs click vs press_element, and escape_page vs dismiss_dialog vs key_press vs recover_visual_overlay. The descriptions do a good job steering between them, but the overlap is substantial enough that an agent must read carefully before choosing.
Most names follow a snake_case verb_noun pattern such as read_page, click_element, list_windows, and move_window_to_workspace. A few exceptions like page_text, key_press, autofill_popup_state, and bare click/scroll/screenshot keep it from being fully uniform, but the convention is still largely predictable.
Thirty-two tools is heavy for a single server, even one covering browser and desktop automation. Several are specialized fallback or verification tools, which increases surface area and selection cost; the domain is broad, but the set is well above the typical 3-15 well-scoped range.
The surface covers browser reading, clicking, typing, waiting, dialogs, site memory, screenshots, windows, workspaces, and raw input well. However, common desktop/browser operations like explicit navigation, hover, drag-and-drop, tab management, window close/minimize, and direct workspace switching are missing or only indirectly workable.
Maintenance
Related MCP Connectors
A cloud Linux desktop for your AI: browse, click, type, read the screen and run commands.
Control a real browser from AI agents: navigate, click, type, screenshot, read the page.
Give your agent eyes: screenshots of any web page it can see, pages as markdown, and PDFs.
A real browser for your agent: screenshots, page checks, Markdown and PDFs.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables LLMs to capture screenshots, inspect windows, and interact with the Hyprland desktop environment through mouse clicks and keyboard input.1-
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to control a Hyprland Wayland desktop by listing windows, capturing screenshots, and sending input to a dedicated agent workspace without disrupting the user's screen.1MIT
- AlicenseAqualityBmaintenanceEnables AI agents to operate a real GNOME Wayland desktop through accessibility-tree widget actions, pointer/keyboard input, OCR, window management, and screen capture, optionally on a private headless session.3327 PyPI11Apache 2.0
- AlicenseNot gradedqualityCmaintenanceEnables 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