Control Any Computer From a Browser Tab With an ESP32-S3

20 October 202612 min read

You plug a small board into a computer's USB port. That computer sees a standard keyboard and mouse. You open a browser tab on your main machine, type and move the cursor there, and the target computer reacts instantly. No software on the target. No drivers. No network configuration on the target side. It works at the BIOS screen, on a locked Windows login prompt, or on a headless Linux box with no display attached.

That is the core of what InputInfinity does. We turn an ESP32-S3 into a USB Human Interface Device (HID) that you drive from a web page.

Why browser-based matters

Most remote input tools fall into two camps. Software KVMs like Synergy or Barrier need an agent running on every machine. That means OS support, installation rights, and a working network stack on the target. If the target is at a BIOS prompt, in safe mode, or has a broken network driver, you are stuck.

Hardware KVM switches solve the driver problem, but they tether you to a physical desk. You need cables running between the switch and every target. Adding a new machine means running another cable. If the target is in a rack three rooms away, or in a different building, a traditional KVM does not help.

InputInfinity sits in the middle. The ESP32-S3 presents itself as a standard USB HID device. The target computer has no idea it is talking to a microcontroller instead of a Logitech receiver. It just sees a keyboard and a mouse. The ESP32 connects to your Wi-Fi network. You open a browser on your control machine, laptop, tablet, phone, load the control page, and you have input focus.

Because the control surface is a web page, the control machine needs nothing installed. No client, no agent, no browser extension. If you can open a URL, you can type.

What the ESP32-S3 actually does

The ESP32-S3 has a native USB peripheral. It can enumerate as a composite HID device: keyboard, mouse, and optionally consumer control (media keys, volume). InputInfinity firmware configures that interface, then bridges it to a WebSocket connection.

On the board side, the loop is tight. The ESP32 maintains a WebSocket to the InputInfinity relay (or your self-hosted equivalent). When a keystroke or mouse event arrives over the socket, the firmware stuffs a HID report into the USB endpoint. Latency is dominated by the network hop, not the MCU. On a decent local network, you are looking at single-digit milliseconds of added latency, imperceptible for typing and pointing.

The board draws power from the target USB port. No external supply. No battery. If the target has USB power, the bridge is alive. This matters for headless servers: you plug it in, the board boots, joins Wi-Fi, and registers with the relay. You refresh the browser page and you are live.

Boot, BIOS, and the login screen

This is where the architecture pays off. Because the target sees a real HID device, the input works before any OS loads.

You can reboot the target, mash F2 or Delete, and navigate the BIOS/UEFI menus from your browser tab. You can change boot order, enable virtualization, toggle secure boot, whatever the firmware allows.

If the target is Windows and sitting at the BitLocker prompt, you type the recovery key. If it is at the login screen, you type your password. If it is a Linux box that dropped to an initramfs shell because the root filesystem failed to mount, you type commands to fix it.

No VNC server, no RDP, no SSH daemon required. The input path is purely hardware HID.

Headless and displayless targets

A common scenario: a small form-factor PC or a single-board computer running a service, tucked away without a monitor. You need to poke it occasionally, maybe edit a config file, restart a service, or run an installer that insists on interactive input.

With InputInfinity, you plug the ESP32-S3 into the headless box. You do not need a display attached. You open the browser on your laptop, type the commands, and the box executes them. The only requirement on the target is a powered USB port.

This also works for appliances. A firewall box, a NAS, an industrial controller, anything with a USB port that accepts HID input. You get a keyboard and mouse without dragging a crash cart over.

Multi-device workflow

The free tier supports up to three devices. In practice, this covers a typical personal cluster: a desktop, a home server, and a laptop you occasionally need to drive while the lid is closed.

Each ESP32-S3 board gets a device ID. In the browser UI, you select the active target from a dropdown. Switching takes a second. The board on the previously active target goes idle; the new one takes over. Your keyboard and mouse effectively follow the selection.

You can label devices ("office-desktop", "rack-ubuntu", "living-room-nuc") so you do not have to remember MAC addresses or IP addresses. The relay handles the mapping.

Network topology

The ESP32-S3 connects to your Wi-Fi (2.4 GHz). It does not need to be on the same VLAN as the control machine, but it must reach the relay server. By default, that is the InputInfinity cloud relay. Traffic is WebSocket over TLS.

If you prefer not to traverse the public internet, you can self-host the relay. The firmware supports a configurable relay endpoint. Run the relay on a Raspberry Pi, a VM, or a container inside your LAN. The boards connect locally; the browser connects locally. Zero external dependency.

The relay is a simple message broker. It does not interpret keystrokes. It routes frames between the browser client and the device client. You can inspect the traffic, it is JSON-wrapped HID reports.

Security model

Anyone with the device URL can control the target. Treat the URL like a password. The free tier uses a randomized device claim link. When you first plug in a board, you claim it by opening a link on your phone or computer. That link binds the device to your account.

After claiming, control requires authentication to the web app. The relay enforces that only authenticated sessions can publish to a device's topic. If you self-host, you can put the relay behind a VPN, Tailscale, or HTTP Basic Auth, whatever your infrastructure supports.

The target computer has no authentication layer for HID. It trusts whatever plugs in. That is the nature of USB HID. Physical access to the USB port equals input access. InputInfinity does not change that; it extends the physical reach over the network.

Building your own board

You do not buy a finished dongle from InputInfinity. You flash an ESP32-S3 development board. Supported boards include the ESP32-S3-DevKitC-1, the ESP32-S3-USB-OTG, and similar modules with native USB pins exposed.

Flashing is done via the browser using Web Serial. You connect the board to your computer over USB, open the firmware flasher page, click "Flash," and the binary writes to the MCU. No command-line tools, no esptool, no driver installation on the flashing machine (Chrome and Edge support Web Serial natively; Firefox requires a flag).

After flashing, the board boots into AP mode. You connect to its Wi-Fi hotspot, open the captive portal, enter your Wi-Fi credentials, and the board joins your network. Then you claim it via the link.

Total time from unboxed board to working remote keyboard: about five minutes.

Wiring details

The ESP32-S3 USB pins are GPIO19 (D-) and GPIO20 (D+). On most dev boards, these are routed to the USB-C or micro-USB connector labeled "USB" or "OTG." Do not use the UART/USB-JTAG port, that is for flashing and serial console only.

If you use a bare module or a custom PCB, you need a USB PHY. The ESP32-S3 has an integrated PHY, so you only need the differential pair, a 5 V to 3.3 V regulator for the module, and ESD protection on the data lines if you want robustness. A common-mode choke and TVS diodes cost pennies and save field failures.

Power budget: the ESP32-S3 draws roughly 80–120 mA active, plus Wi-Fi peaks around 300 mA. The target USB port must supply at least 500 mA (USB 2.0 spec). Most motherboard ports and powered hubs handle this fine. Unpowered hubs or laptop ports with aggressive current limiting may brown out the board during Wi-Fi TX bursts. If you see random disconnects, try a powered hub or a Y-cable that draws 5 V from a second port.

Browser control page

The control page is a single-page application. It renders a virtual keyboard for touch devices, a mouse trackpad area, and a key-event log. On desktop, your physical keyboard and mouse are captured by the page (Pointer Lock API for mouse, keydown/keyup for keys). Events are serialized and sent over the WebSocket.

Special keys work: Ctrl, Alt, Shift, Win/Super, function keys, media keys. Key combinations (Ctrl+Alt+Del, Win+L, Alt+Tab) are forwarded as composite HID reports. The target receives them exactly as if you pressed them on a physical keyboard.

Mouse: relative movement, absolute positioning (for touch), scroll wheel, left/middle/right buttons. The firmware maps browser pointer events to HID mouse reports.

Latency indicator in the UI shows round-trip time to the relay. If it climbs above ~50 ms, you will feel lag. Typical LAN: 5–15 ms. Over internet relay: 30–80 ms depending on geography.

Limitations you should know

No video. You do not see the target screen. This is input only. Pair it with a separate video path: a hardware capture card, a streaming solution (Sunshine/Moonlight, Parsec), or just a monitor on the target.

No file transfer. You cannot drag a file from your laptop into the target. You can type commands to pull files (scp, curl, wget), but the HID channel carries only input events.

No audio. Consumer control keys (volume, play/pause) work if the target OS maps them, but audio does not stream back.

USB HID bandwidth is limited. The spec allows up to 1000 Hz polling for mice, but keyboards are typically 125 Hz. The ESP32-S3 firmware polls at 1000 Hz for mouse and 125 Hz for keyboard. High-speed gaming mice with 8000 Hz polling will not get that rate over this bridge. For typing and general desktop use, it is fine.

The ESP32-S3 has one USB device port. It cannot act as a USB host. You cannot plug a physical keyboard into the ESP32 and pass it through. The input source is always the browser.

Wi-Fi only. No Ethernet PHY on the ESP32-S3. If your environment bans Wi-Fi, you need a Wi-Fi-to-Ethernet bridge (a travel router in client mode works).

Common failure modes

Board not enumerating: Check that you plugged into the correct USB port on the dev board (the native USB port, not the UART port). Verify the firmware flashed completely, the flasher page shows a verification hash. If the board enumerates as "ESP32-S3 USB JTAG" or similar, the wrong firmware is running.

Wi-Fi won't connect: The captive portal only appears in AP mode. If the board has saved credentials but the AP is gone, it is trying to connect. Check your DHCP logs. The hostname is "inputinfinity-". If it fails, it falls back to AP mode after ~60 seconds. Power cycle to force AP mode.

Relay connection fails: Open the browser dev tools on the control page. Look at the WebSocket frames. If you see a handshake error, the relay URL may be wrong (custom relay) or the device is not claimed. Re-claim the device.

Input lag or drops: Check the latency indicator. If it is high, the bottleneck is network. Move the board closer to the AP. Use 2.4 GHz channel 1, 6, or 11. Disable power save on the AP if possible. The ESP32-S3 does not support 5 GHz.

Target ignores input: Some BIOS/UEFI implementations ignore HID devices that are not present at power-on. If you plug the board in after the target boots to BIOS, it may not register. Plug the board in before powering the target. For hot-plug scenarios, most modern OSes handle it fine.

Extending the firmware

The firmware is open source (Apache-2.0). You can add features:

  • Custom HID reports for specialized devices (gamepad, joystick, digitizer).
  • Macro keys: send a stored string on a single browser button press.
  • Status LED patterns: show connection state, battery level (if you add a battery), target power state (via VBUS detect).
  • OTA updates: the firmware supports over-the-air updates via the relay. Push a new binary to all devices in a fleet.

The codebase uses ESP-IDF. The main loop handles USB device tasks, Wi-Fi events, WebSocket frames, and HID report assembly. Adding a new HID collection means editing the report descriptor and the report handler.

When to use this vs. alternatives

Use InputInfinity when:

  • You need input at firmware/BIOS level.
  • You cannot install software on the target (locked down, no OS, broken OS).
  • You want zero client on the control machine.
  • You have Wi-Fi access on the target side.
  • You are comfortable flashing a dev board.

Use a software KVM (Synergy, Barrier, InputLeap) when:

  • All targets run a supported OS.
  • You have install rights.
  • You need clipboard sharing and file drag-drop.
  • You want seamless multi-monitor cursor flow.

Use a hardware KVM when:

  • You need video switching too.
  • Targets are on the same desk.
  • You want zero network dependency.

Use IPMI/iDRAC/AMT when:

  • The server has a BMC.
  • You need power control, virtual media, and console video.
  • You have network access to the BMC port.

InputInfinity fills the gap where the target has no BMC, no OS agent, and no monitor, but does have a USB port and Wi-Fi reach.

Practical example: recovering a headless Ubuntu server

Scenario: a NUC in a closet runs Ubuntu Server. A bad kernel update breaks boot. It drops to initramfs. No monitor, no keyboard attached.

  1. Plug an ESP32-S3 board (already flashed and claimed) into the NUC USB port.
  2. Power on the NUC. The board boots, joins Wi-Fi, connects to relay.
  3. On your laptop, open the InputInfinity control page. Select "closet-nuc".
  4. Wait for the initramfs prompt. Type the LUKS passphrase. Press Enter.
  5. System boots. SSH comes up. You are done.

Total time: 30 seconds. No trip to the closet. No crash cart.

Practical example: BIOS configuration on a new build

You assemble a PC. You need to enable XMP, set fan curves, and configure boot order. You have no spare keyboard.

  1. Plug the ESP32-S3 into the new build.
  2. Power on. Mash F2 from the browser page.
  3. Navigate BIOS with mouse and keyboard.
  4. Save and exit.

You never touched a physical keyboard.

Practical example: controlling a laptop with the lid closed

A laptop drives an external monitor. You want to use your main desktop keyboard/mouse on the laptop without a KVM cable.

  1. Plug ESP32-S3 into laptop USB.
  2. Select "work-laptop" in the browser.
  3. Type. Move mouse. Close laptop lid.

The laptop sees a USB keyboard/mouse. It stays awake (configure lid-close action in OS). You control it from your desktop browser.

Closing thought

InputInfinity is not a remote desktop. It is a remote keyboard and mouse. That constraint is its strength. It works where nothing else does: pre-boot, headless, no-agent, no-client. The hardware costs $10–15 for an ESP32-S3 board. The software is free for three devices. If you manage more than one computer, keep a flashed board in your bag. It solves the "I need a keyboard right now" problem in seconds.

Related: AI Controls iPhone With ESP32-S3 - No Target-Side Software

Discussion

No comments yet. Be the first.

Leave a comment

Comments appear once the author approves them.