open_hands
open_hands
An MCP server that gives an AI agent a real USB HID mouse and keyboard, built from an ESP32-S3 board. Windows sees an ordinary input device, not injected input. The host (Rust) keeps tasks exclusive, checks where the cursor really landed, and stops an action when you take over.

Try it: flash the firmware from your browser at sychpl.github.io/open_hands, then run .\oh.exe install from the latest release.
Read more: how it works in ARCHITECTURE.md, the full specification in SPEC.md, the plans in ROADMAP.md. Want to help? Start with the good first issues and CONTRIBUTING.md.
Windows 10/11 x64 (tested on Windows 11), with the board plugged into the same PC the agent runs on. On Linux the host builds and lists its tools, but refuses every call for now; the X11 host is in progress (ROADMAP M13).
Hardware
ESP32-S3-DevKitC-1 (or another S3 board with native USB, e.g. ESP32-S3-Zero). Connect the native USB port to the computer, not UART.
Emergency stop: a short press of
BOOTstops the action, releases everything and disarms the device. To arm it again, holdBOOTfor 2 s. The agent cannot do this for you.The hardware cut-off is pulling the USB cable.
Status LED (firmware 0.4.0+): green = armed with a host connected, yellow = armed, no host, red = disarmed, red blinking = fault (a release failed; hold
BOOT2 s), blue flash = an action, purple flash = the watchdog or max hold released everything, blinking white = a firmware update waits for you (pressBOOTtwice quickly to install it, once to cancel). The release firmware drives the LED pins of ESP32-S3-DevKitC-1 v1.0 and v1.1 and ESP32-S3-Zero; for another board setOPEN_HANDS_LED_GPIOSin Kconfig.
Related MCP server: dibs
Installation
Firmware. In the browser at sychpl.github.io/open_hands (Chrome or Edge), or from the release bundle with
esptoolusing the line infirmware\flash.txt. When open_hands already runs on the board, enter download mode: holdBOOT, pressRESET, releaseBOOT, and use the port that appears (303A:1001). From source:firmware\build.ps1 [-Port COMx -Flash]. Updates (firmware 0.4.0 and newer):oh update-firmwaresends the firmware of its own release to the board over the same USB cable (about 7 s; leaveBOOTalone meanwhile). When the LED blinks white, pressBOOTtwice quickly, like a double click, to install it (once cancels; if it reports the presses as too slow, it says how far apart they were). The board restarts into it, the host checks it and commits it; if the new firmware does not work, pressingRESETreturns to the previous one. Boards with older firmware need one more flash in download mode or from the browser.Host and MCP clients.
oh installcopies the program to%LOCALAPPDATA%\open_hands\bin\and registers it as theopen_handsserver in the clients it finds: Claude Code (user scope, throughclaude mcp), Claude Desktop, Cursor and Codex CLI.--dry-runshows what would change; restart the clients afterwards.oh uninstallremoves only the entries that point at that file.oh portsshows the board's port andoh statusthe device state.By hand, if you prefer not to use the installer. Claude Code:
claude mcp add -s user open_hands -- "%LOCALAPPDATA%\open_hands\bin\oh.exe" mcp. Claude Desktop (claude_desktop_config.json):{ "mcpServers": { "open_hands": { "command": "C:\\Users\\<you>\\AppData\\Local\\open_hands\\bin\\oh.exe", "args": ["mcp"] } } }Several MCP hosts at once work: the first process becomes the leader and holds the COM port, the others connect to it over a named pipe. When the leader exits, another process takes over the device.
Tools
Tool | What it does |
| device, calibration, lease, monitors, cursor, configuration |
|
|
| movement with cursor verification; a click or drag does not happen when the cursor misses |
| hold / release a button (released after 30 s) |
| a shortcut or a sequence of shortcuts ( |
| text through the keyboard layout of the foreground window, checked before typing |
| text through the clipboard: any Unicode (emoji, CJK), long text in a fraction of a second; only with |
| mute, volume up, volume down, play/pause, next, previous, stop |
| a screenshot of a monitor or a region; its |
| cursor, foreground window, keys held, Caps Lock, layout |
| force a measurement of the mouse-to-screen mapping |
| release everything at once; always allowed |
The host refuses actions on the lock screen and in a UAC prompt (secure_desktop), over an administrator window (elevated_foreground) and while you hold a key (user_input_active). Moving your mouse or keyboard during an action stops it (user_interrupt).
Configuration
%APPDATA%\open_hands\config.toml (all keys optional, defaults shown):
port = "auto" # or "COM7"
watchdog_ms = 1500
lease_idle_s = 300
allow_secure_desktop = false # do NOT turn on without a reason, see below
allow_elevated_foreground = false
redact_text = true # the audit log keeps only the length and SHA-256 of text
type_per_key_ms = 12 # 30+ for RDP, virtual machines and Electron apps
tolerance_px = 1
screenshot_max_width = 1568
paste_enabled = false # esp_paste: overwrites your clipboard, see belowesp_paste puts the text on the clipboard and presses Ctrl+V. The text stays on the clipboard (the previous content does not come back), but it does not go into clipboard history (Win+V) or cloud sync. Before Ctrl+V the host checks that the clipboard still holds its text; when another program has replaced it, nothing is pasted (clipboard_changed).
Every key can be overridden with an OPEN_HANDS_<KEY> variable (e.g. OPEN_HANDS_PORT=COM7). A bad file is ignored as a whole (the defaults apply) and esp_status shows config_error.
Data in %LOCALAPPDATA%\open_hands\: calibration.json, audit.jsonl (+ .1, .2; after 10 MB), leader.lock, leader.json.
CLI
oh mcp MCP server (stdio)
oh ports COM ports, the board marked
oh status state (through the leader or as a temporary leader)
oh release [--force] release everything; --force also ends another client's lease
oh calibrate measure the mapping (moves the cursor)
oh selftest [--long|--boot] firmware test; only when no MCP server holds the board
oh update-firmware [path] update the board over USB (firmware 0.4.0+); BOOT twice to confirm
oh install [--dry-run] install to %LOCALAPPDATA%\open_hands\bin and register in MCP clients
oh uninstall [--dry-run] remove the open_hands entries from the clients (the file stays)Risks you need to know about
A plugged-in open_hands gives every program of your account input that Windows treats as physical, also on the secure desktop. A program with access to the COM port can therefore click "Yes" in a UAC prompt in consent mode. The
secure_desktopguard only protects against an agent that uses open_hands. On an administrator account, set UAC to "prompt for credentials" or unplug the device when you are not using it.A HID keyboard plugged into someone else's computer is BadUSB by definition.
A receipt confirms where the cursor was and what the device sent, not the effect on screen. The agent should check the screen (
esp_screenshot).open_hands gives the agent whatever the desktop gives you, apart from what its guards refuse. Permissions of other tools do not limit it: an agent with open_hands can see and click another program's approval prompt (a toast, a confirmation dialog). Until such windows are guarded (ROADMAP M10), do not give open_hands to an agent that reads untrusted content while another tool waits for your approval.
Limitations
esp_typetypes only characters of the current keyboard layout. No IME (CJK) and no characters composed with dead keys (e.g.ê). The character of a dead key alone (~on Polish programmer's) works.esp_pastepastes the rest.Absolute positioning only: a point outside the range of absolute reports gives
out_of_bounds.
Development
pwsh tools/ci.ps1runs what CI runs on Windows (clippy, host tests, C++ protocol tests). The dispatcher tests run on the firmware simulator, without the board, but read the real desktop: do not hold a mouse button while they run.Hardware tests (they click and type only into their own window,
tools/hil_target.py; do not touch the mouse meanwhile):python tools/hil_m3.py [--long],python tools/hil_m4.py,python tools/hil_m5.py(presses "mute" an even number of times; saves and restores the clipboard),python tools/leader_e2e.py,python tools/mcp_e2e.py,oh selftest.Needing a person:
python tools/hil_guards.py,python tools/hil_uac_probe.py,oh selftest --boot.Release:
firmware\build.ps1, thentools\release.ps1→dist\.
Licence
Dual-licensed under MIT or Apache-2.0, at your option. Security reports: SECURITY.md.
open_hands is an independent project. It is meant to join open_tools, a shared gateway for local MCP servers with one installer and one tray icon (ROADMAP). It is not affiliated with or endorsed by Espressif, Microsoft or Anthropic. The USB VID/PID (303A:4E54) is from Espressif's range for prototypes; a release for other people's devices needs its own PID.
Available Tools
15 toolsesp_buttonA
Press and hold (down) or release (up) a mouse button, e.g. for a drag made of several esp_move calls. The device releases it after 30 s; held_input_released or user_interrupt on a later call means it was released: start over. Other tools refuse a button held this way (button_held).
Inputs: state (required), button (required), control_id (required).
esp_calibrateA
Measure the mapping from the hardware mouse to screen pixels (moves the cursor over a 3x3 grid and puts it back). Done automatically before the first positional action and after a display change.
Inputs: control_id (required).
esp_clickA
Click through the hardware mouse. With x and y it first moves there and verifies the cursor; when the cursor misses by more than tolerance_px it does NOT click (position_mismatch). Coordinates are physical screen pixels. The receipt does not confirm what the click did: check the screen.
Inputs: control_id (required), x, y, count, +6 more.
esp_controlA
Input lease. Every input tool needs the control_id from begin. control_busy means another task holds it: do not retry in a loop. The lease expires after 300 s without actions.
Inputs: operation (required), task_id, control_id.
esp_dragA
Drag with a mouse button: moves to the start and verifies it (no press on a miss), presses, moves to the end over duration_ms, verifies the end with the button still down, then releases. A miss at the end still releases and fails with position_mismatch. Physical screen pixels.
Inputs: to_x (required), to_y (required), from_x (required), from_y (required), +8 more.
esp_input_statusA
Input state without acting: cursor, foreground window (pid, exe, title, rect), keys and buttons held in Windows and on the device, Caps Lock, keyboard layout, input desktop. No lease needed.
Inputs: no named parameters.
esp_keysA
Press a keyboard shortcut (combo) or a sequence of shortcuts on the hardware keyboard, e.g. "ctrl+s" or ["ctrl+a", "delete"]. Letters follow the layout of the foreground window. The keyboard is never left held. In a sequence a foreground window change stops it (focus_changed, with steps_done) unless allow_focus_change. For text use esp_type.
Inputs: control_id (required), combo, hold_ms, sequence, +2 more.
esp_mediaA
Press a media key on the hardware device: mute, volume_up, volume_down, play_pause, next_track, previous_track, stop; count presses (e.g. 5 volume steps). Works whatever window is in front. Needs firmware 0.3.0 (firmware_incompatible otherwise).
Inputs: key (required), control_id (required), count, request_id.
esp_moveA
Move the mouse cursor to (x, y) in physical screen pixels through the hardware mouse, then read the real cursor position. Fails with position_mismatch when it lands farther than tolerance_px. Input tools refuse to run on a lock screen or UAC prompt, over an administrator window, or while the user holds a key; user_interrupt means the user took over: ask before resuming. Positions are physical screen pixels, or with coords "screenshot" and a screenshot_id pixels of that esp_screenshot image.
Inputs: x (required), y (required), control_id (required), coords, +3 more.
esp_pasteA
Paste text through the clipboard: any Unicode (emoji, other scripts), as fast as one shortcut. Puts the text on the clipboard (excluded from clipboard history) and presses ctrl+v once in the foreground window. The text replaces the user's clipboard and stays there. Off unless the user enabled it (paste_disabled: use esp_type). Nothing is pasted when the clipboard or the foreground window changes first (clipboard_changed, focus_changed). Click into the target field first and check the screen.
Inputs: text (required), control_id (required), combo, request_id.
esp_release_allA
Release every button and key on the device and abort the action in progress. Always allowed, for anyone, no lease needed.
Inputs: no named parameters.
esp_screenshotA
Screenshot of a monitor (default the primary one) or a region, scaled to max_width. The result gives screenshot_id, origin and scale: pass coords "screenshot" with that screenshot_id to the position tools to click what you see in the image. No lease needed.
Inputs: format, region, monitor, quality, +1 more.
esp_scrollB
Scroll the mouse wheel (up/down) or the horizontal wheel (left/right) by amount notches, at the cursor or first at (x, y) with the same verification as esp_click.
Inputs: direction (required), control_id (required), x, y, +5 more.
esp_statusA
State of the open_hands hardware mouse/keyboard: device (firmware, armed = stop button not pressed, USB), calibration, control lease, monitors and cursor position (physical screen pixels), input desktop, recent safety events. No lease needed.
Inputs: no named parameters.
esp_typeA
Type text on the hardware keyboard through the layout of the foreground window (Caps Lock is compensated, never toggled). The whole text is checked first: unmappable_text lists characters that cannot be typed and nothing is typed. Stops with focus_changed or layout_changed (steps_done = keys sent) when the foreground window or its layout changes. Click into the target field first and check the screen afterwards.
Inputs: text (required), control_id (required), per_key_ms, request_id.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 15 tools
Most tools have clearly distinct actions (move vs click vs drag vs scroll, type vs paste vs keys) and descriptions explicitly differentiate them. The main overlap is esp_status vs esp_input_status, both lease-free state readers, and esp_release_all vs esp_button(up), though each description carves out its scope.
All 15 tools share the esp_ snake_case prefix, which is highly predictable. The only blemish is mixing verbs (esp_move, esp_click, esp_type) with nouns (esp_media, esp_button, esp_keys, esp_status), readable but not a single uniform pattern.
15 tools is at the top of the ideal range but each maps to a real hardware input primitive: pointer actions, keyboard entry, media keys, lease management, safety release, and state inspection. Nothing feels redundant or filler.
Covers the full input lifecycle: calibration, lease acquire, move/click/drag/scroll/button-hold, keys/type/paste, media, screenshots, and emergency release plus status. Minor gaps only, e.g. no explicit double-click, focus-window tool, or wait/delay primitive, but these are workable via click combinations and repeated calls.
Maintenance
Related MCP Connectors
Let AI see and use your own Windows PC with your permission: screen, apps, mouse and keyboard.
Remote desktop MCP: let AI see, click, type and run terminal commands on your own Windows or Mac.
AI-security knowledge as MCP: standards-mapped tools (OWASP, NIST, MITRE) for AI agents.
Formally-verified injection/exfiltration detector for AI agents (MCP-02).
Related MCP Servers
- AlicenseNot gradedqualityBmaintenanceA Windows computer use agent — FastMCP server that gives AI assistants hands on the real desktop: windows, UI elements, mouse, keyboard, screenshots, OCR, shortcuts, dialogs, and outcome verification.57MIT
- AlicenseNot gradedqualityCmaintenanceA local MCP server that lets multiple AI agents safely share a Windows desktop by coordinating exclusive access to the mouse, keyboard, screen, and windows, with human consent, takeover, and full activity logging.MIT
- AlicenseAqualityBmaintenanceLocal Windows x64 MCP server for USB HID mouse control and optional voice dictation. Requires compatible uMouse hardware, firmware and x64 Node.js 22+. MCPB 0.1.1 packages the legacy 0.1.0 stdio runtime; shared-v2 is a separate source development path. The MCPB includes no cloud credentials, defaults speech recognition to disabled, and supports optional local Windows Speech.221,189MIT
- AlicenseAqualityCmaintenanceEnables agents to observe a desktop and perform mouse and keyboard actions through ESP32-based BLE or USB HID hardware, with local action translation and no second model in the MCP path.3MIT