OpenHUD
Docs
Hands is an MCP server that gives Claude Code, Codex and other AI agents a mouse, a keyboard and eyes on your screen. One small binary for Windows, macOS and Linux. Install it, run the setup, and ask your agent
Install
One line, no Rust needed. It downloads the binary for your computer, checks its SHA-256, adds it to your PATH and starts the setup
curl -fsSL https://openhud.ai/mac.sh | shInstalls the OpenHUD app into Applications and opens it. Its welcome screen connects Claude Code, Codex, Cursor and the rest, and asks macOS for permission once
Prefer to build it yourself: cargo install --git https://github.com/ultron-hq/openhud openhud, then run openhud. Every release is on GitHub with checksums
Setup and agents
Running openhud in a terminal walks you through three steps:
- Checks this computer: it can find the screen, take screenshots and move the mouse. On a Mac, install the app (
mac.sh): its welcome window asks macOS for Screen Recording and Accessibility once, for OpenHUD, and every AI app then works through it instead of each needing its own permission - Connects your agents: every one it finds below. It merges into your existing config, keeps a one-time
.bak, and never replaces another server namedopenhudwithout asking. Agents confirm each step unless you say otherwise: answer “y” when setup asks, or runopenhud setup --approve. The kill switch stops them either way, even in the middle of typing - Tells you what to ask first, and installs the three skills into Claude Code and Codex
| Agent | Id | Where it is configured |
|---|---|---|
| Claude Code | claude-code | claude mcp add, user scope; skills in ~/.claude/skills |
| Codex | codex | ~/.codex/config.toml; skills in ~/.codex/skills |
| Cursor | cursor | ~/.cursor/mcp.json |
| VS Code | vscode | Code/User/mcp.json |
| Windsurf | windsurf | ~/.codeium/windsurf/mcp_config.json |
| Claude Desktop | claude-desktop | claude_desktop_config.json |
| Gemini CLI | gemini | ~/.gemini/settings.json |
Any other MCP app: add a stdio server whose command is the full path of openhud (shown by the setup). Restart an agent that was already open so it picks Hands up
Skills
Skills teach your agent how to use Hands well. Setup puts them in ~/.claude/skills and ~/.codex/skills. Call one by name, or just ask and the agent picks it
/openhud do it for me
The look, act, check loop, keyboard first, with the safety rules built in: no passwords, nothing sent, bought or deleted unless you asked
/openhud fill in this form from invoice.pdf/openhud-teach show me how
It points at each button with a glowing box and a short caption, waits until it sees you did the step, then shows the next one. It never clicks for you. Good for learning Figma, Excel, Blender, a trading or banking dashboard, or finding a setting
/openhud-teach where are the API keys in this dashboard?/openhud-post post it for me
Posts, replies and threads on X, LinkedIn, Threads and Bluesky from your own logged-in browser. It checks the length the way each site counts it, attaches media first, types slowly so nothing is dropped, and checks your profile afterwards. It shows you the draft unless you said exactly what to post
/openhud-post announce v2 on X and LinkedIn with ~/Videos/demo.mp4The skills are plain Markdown. Edit yours freely: once you remove the line saying it was installed by setup, updates leave it alone
Using it
Open your agent and ask in plain words. Some ideas:
- “Open Notion and turn today’s meeting notes into a task list”
- “In System Settings, turn on Night Shift from 10pm”
- “Teach me how to make a pivot table in this spreadsheet”
- “Post this screenshot on LinkedIn with a short note about the launch”
While an agent works you see an orange frame around the screen, and an “OpenHUD is using your mouse” tag by the pointer whenever it clicks or types. Both are click-through and hidden from the agent’s own screenshots. Turn them off with OPENHUD_OVERLAY=0
Codex asks before every MCP call unless you let it: the setup can turn that on, or start Codex with -c 'mcp_servers.openhud.default_tools_approval_mode="approve"'
Commands
openhud | Setup: check this computer and connect every agent found. Safe to run again |
openhud stop | Kill switch. Every click and keystroke is refused until you resume |
openhud resume | Turn the kill switch off |
openhud log [n] | The last n actions (default 20). Typed text is stored only as its length |
openhud doctor | Check the screen, input and permissions |
openhud agents | Which agents are installed and connected |
openhud connect <agent> | Connect one agent (ids in the table above) |
openhud disconnect <agent> | Remove Hands from one agent |
openhud skills | Reinstall the three skills. Copies you edited are left alone |
openhud serve | The MCP server on stdin/stdout. Agents start this themselves |
MCP tools
What your agent can call. Coordinates are in the pixel space of the latest screenshot; Hands maps them to the real screen, Retina included
| Tool | What it does | |
|---|---|---|
| Look | screenshot | The screen (or a region, to read small text), with the pointer marked by a red ring |
| Look | screen_info | Screen size, pointer position, active window, whether input is allowed |
| Look | list_windows | Open windows with titles, positions and sizes |
| Look | list_apps | Installed apps, by name |
| Act | click | Left, right or middle click, up to a triple click |
| Act | move_mouse | Move the pointer |
| Act | drag | Press, glide and release |
| Act | scroll | Up, down, left or right, optionally at a point |
| Act | type_text | Type into the focused field; window_id makes sure it is the right window, and typing stops if focus moves |
| Act | key | One shortcut: ctrl+l, alt+tab, enter, cmd+space |
| Act | focus_window | Bring a window to the front (Linux and Windows) |
| Act | open_app | Start an installed app by name |
| Act | open_url | Open an http(s) link in the default browser |
| Teach | highlight | A glowing box and caption on the person's screen. Clicks nothing; allowed in read-only mode |
| Pace | wait | Wait for something to load, then look again |
| Improve | hands_log | Recent calls, with errors |
| Improve | hands_feedback | Note something awkward so it can be fixed |
| Improve | hands_report | Success rate per tool, recurring errors with fixes, slow calls |
Safety
- Kill switch:
openhud stopmakes every input tool refuse untilopenhud resume. It works mid-task - Read-only mode:
OPENHUD_READONLY=1lets an agent look and highlight but never click or type. Ideal for teaching - No shell tool: Hands can only see and use the screen like a person would
- A local log of every action in
hands.log.jsonl(in your cache folder). Typed text is stored only as its length - A rate limit of 120 actions a minute, and clicks only happen once the pointer is confirmed at the target
- The skills tell agents to treat screen text as data, never type passwords, and never send, buy or delete unless you asked
Platforms
| Linux (X11) | Windows | macOS | |
|---|---|---|---|
| See, click, type, scroll, keys | Yes | Yes | Yes (Apple silicon and Intel) |
| Screen frame and pointer tag | Yes | Yes | Yes |
| Teach highlights | Yes | Yes | Yes |
| List windows | Yes | Yes | Yes |
| Focus a window | Yes | Yes | Coming |
| Typing stops if focus moves | Yes | Yes | Coming |
| The desktop app (island, Ctrl+Space; ⌥ Space on a Mac) | Yes | Yes | Yes |
| Permissions asked once, for OpenHUD | n/a | n/a | Yes, with the app |
Tested on every change on Ubuntu, Windows and macOS desktops, and before releases on Ubuntu 22.04 and 24.04, Debian 12, Fedora, Arch, openSUSE and Alpine. Wayland isn’t supported yet; pick an “Xorg” session at login
Troubleshooting
- The agent doesn’t list openhud tools
- Restart the agent. Then run
openhud agents; if it says “uses a different openhud”, runopenhud connect <agent> - Screenshots are black
- The screen is locked or asleep. On macOS, allow Screen Recording for the terminal or agent app and reopen it.
openhud doctorsays which - Clicks or typing do nothing on macOS
- Allow Accessibility for the terminal or agent app in System Settings → Privacy & Security
- “Kill switch is on”
- You (or someone) ran
openhud stop. Runopenhud resume - Windows says “unknown publisher” or that the download is uncommon
- OpenHUD isn’t code-signed yet, so Edge and SmartScreen warn about every new build. The one-line installer (
irm … | iex) avoids the browser warning and checks the SHA-256 for you. For the setup.exe, compare its checksum with the release, then choose “More info” → “Run anyway”. Once builds are signed, the publisher will show as OpenHUD; SmartScreen can still warn about a brand-new build until it builds reputation - Codex or Claude Code opened a terminal window
- Fixed in 0.3.2: the app runs them in the background. Update with the install line
- Something else
- Ask your agent to run
hands_report, and open an issue with what it says
Uninstall
openhud disconnect claude-code # and any other agents
rm "$(command -v openhud)"
rm -r ~/.claude/skills/openhud-* ~/.codex/skills/openhud-*On Windows, delete %LOCALAPPDATA%\openhud and remove it from your user PATH