Open source · MITFirmware 0.1.0 beta

Give your agent a pair of hands

Keyling turns an ESP32-S3 board into a USB keyboard and mouse you can program over Wi-Fi. Plug it into a computer and it works without drivers, driven by scripts or AI agents over your local network.

Runs on the Waveshare ESP32-S3-LCD-1.47 board. You install it right from your browser.

Illustration of a Keyling deviceA small board with a landscape screen and a USB-A plug on the left. The screen shows a macro being sent: an amber border, a progress ring at 47% on the left, and on the right the macro “Paint test”, step 128 of 271, and the last key sent, Ctrl + S.
  • Amber border: sending input
  • Progress ring: how far it has got
  • Green dot: the macro is running

How it works

To your computer, it’s just a keyboard and mouse

Commands arrive over your local network; input goes out over USB. No drivers or software to install on the computer.

Script / agent

The stick CLI, MCP server, HTTP API

Keyling

Runs timelines and lets go when the lease expires

Computer

Sees an ordinary keyboard and mouse, no drivers

  • A composite HID device: keyboard, mouse and media keys. Its key presses are no different from a person’s.
  • Every control request is signed with HMAC. The key is issued at pairing, and pairing needs a person to press the button on the device.
  • Output must be armed first. The screen mirrors what is being sent, and one press of BOOT stops it immediately.
  • Macros live on the device: click BOOT to run one, with no host online.

Three ways to use it

Macro keyboard, agent hands, programmable device

Macro keyboard

Snap together taps, typing, waits, clicks and repeats in the block editor of the device web app, then save to the device. Click BOOT to run; double-click to switch to the next macro.

  • tap Ctrl+A
  • type hello
  • wait 500
  • repeat 3

Hands for your agent

The stick-mcp MCP server gives an agent device status, keyboard and mouse actions, macros, the monitor screen and screenshots. Every tool matches a CLI command.

  • stick_hid_arm
  • stick_hid_send
  • stick_monitor
  • stick_snap

Programmable device

Lua apps live on the device and hot-reload when you push them. The HTTP API and the stick CLI cover the device, macros, files and keyboard and mouse output.

  • button.on(fn)
  • POST /v1/hid
  • stick push

Device web app

Open the device’s address in a browser to manage it

The web app is served by the device itself: no internet connection, nothing to install. Once paired, you can edit macros, try the API and change settings.

Home page: device address and Wi-Fi, current macro, and the prompt for connecting an agent
HomeDevice status, the current macro, and a prompt you can copy straight to an agent.
Macro list: four macros on the device and one on the microSD card, with a BOOT badge on the current macro
MacrosMacros on the device and the microSD card. BOOT runs the one set as current.
Block editor: the toolbox on the left, the blocks under Start in the middle, the JSON on the right
Block editorDrag and drop blocks for keyboard, mouse, waits and repeats. Record keys, show the JSON field names, and test-run at any time.
API page: the endpoint list on the left and the response from /v1/info on the right
APIDocs for every endpoint, with live requests and responses.
Settings page: Wi-Fi, macro player, pairing, time and time zone, device and firmware
SettingsSaved Wi-Fi networks, macro player start on boot, pairing, time zone and firmware info.
Help page: what the device is, the BOOT gesture table, macros and safety notes
HelpBOOT gestures, macro rules and safety notes, always at hand on the device.

Captured in a 1440×900 desktop window; click an image to view it full size. Device IDs, addresses and Wi-Fi names are examples.

Device screen

Everything you need to know, on one screen

1.47 inches, 320×172 pixels. Online or not, sending or not, and which step it stopped at, all at a glance.

  • Home screen: a large clock and the date, with the device address in a pill below
    HomeTime, date and device address.
  • Macro ready: the current macro “Paint test”, once, 271 steps; click BOOT to run, double-click to switch
    Macro readyThe current macro and its step count. Click BOOT to run it, double-click for the next one.
  • Sending: progress ring at 47%, step 128 of 271, last key Ctrl + S, with an amber border around the screen
    SendingAn amber border while sending, with progress, the current step and the last key sent. Press BOOT to stop.
  • Stop panel: stopped at loop 12, step 3 of 7; click BOOT to restart
    After an emergency stopShows the step where it stopped. All keys are released.
  • Wi-Fi setup screen: QR code, hotspot name, 8-digit password and setup page address
    Wi-Fi setupScan the code to join the setup hotspot, then choose your Wi-Fi on the page.
  • Pairing request from Claude Code showing a 4-digit number: click BOOT to allow, double-click to deny
    Pairing requestCheck the 4-digit number, then click BOOT to allow or double-click to deny.

Three screen styles

The firmware has three built-in styles. Switch between them in the device web page under Settings → Screen; the change is immediate.

  • Soft glow style: home screenSoft glow style: sending
    Soft glowDefaultThe same soft glow as this website, with translucent glass cards.
  • Minimal style: home screenMinimal style: sending
    MinimalPure black, large type and almost no borders.
  • Instrument style: home screenInstrument style: sending
    InstrumentA dot-grid background, monospaced type and mint green, like a meter.

Real device screenshots; device IDs and addresses are examples. The screen can also be switched to Chinese.

In action

A pelican riding a bicycle, in 271 steps

The example macro 「画图测试」 (“Paint test”) from the repository. Nothing is installed on the computer: every line and every character comes from the device over USB.

The result in Paint: a line drawing of a pelican riding a bicycle, with a line of Chinese and English text below
Paint after the macro finished (run on real hardware).

The mouse draws, the keyboard types

The macro opens Paint, draws the outline stroke by stroke with the mouse, then types a line of text. Every step goes out at its scheduled time. Click BOOT to start, and press it again to stop at any point.

Device screen while the macro runs: run-once mode, running, step 12, 40% progress
The device screen during the run (captured on real hardware).
How to write macros

Features

On time, visible, and easy to stop

The device’s job is to execute on time. Which keys to press and which window is in front is up to you, your macro or your agent.

Timelines that run on time

Each record is 6 bytes, with frames as little as 4 ms apart. The device schedules against ideal timestamps, so rounding errors never add up, and long sequences stream in batches without gaps.

Verifiable output

The monitor screen shows the keys, mouse buttons and pointer path the computer is receiving. On Windows there is also a loopback self-check, stick hid-check, and the software-layer SDK can check each step after a run.

Emergency stop, any time

Press BOOT during output to clear the queue, release every key and disarm. Arming is a lease of 1–600 seconds; when it expires, the device lets go on its own.

Status at a glance

A keyboard icon in the status bar while armed. An amber border and a steady light during output. A stated reason whenever it stops.

Signed updates, automatic rollback

Kernel updates are signature-checked and written to the other slot. If the new kernel isn’t confirmed within 60 seconds of rebooting, or crashes in that time, the bootloader returns to the previous version.

Rescue firmware and unbricking

The rescue firmware is always installed and takes over after 3 kernel crashes in a row. Hold BOOT while plugging in USB to enter the chip’s download mode and reinstall at any time.

Large macros on microSD

Put timeline files on the microSD card and the device plays them as it reads, without the network. Up to 16 MB per file.

Built-in web app

Open the device’s address in a browser to edit macros, try the API and change settings. It also serves the host tools package and an llms.en.txt for agents.

Get started in three steps

From a new board to your first macro

Everything happens in the browser, with no development environment. The web installer is currently in beta.

  1. Get the board

    A Waveshare ESP32-S3-LCD-1.47, USB-A version. You also need a computer with desktop Chrome or Edge, and 2.4 GHz Wi-Fi.

  2. Install in the browser

    Hold the BOOT button while plugging in USB, then choose Clean install on the install page. The browser writes the firmware directly in a minute or two.

  3. Set up Wi-Fi and pair

    Join the device’s hotspot from your phone and enter your Wi-Fi details. Open the address shown on the device screen in a browser, then click BOOT to allow pairing.

Hand it to an agent

One prompt, and the agent connects itself

Copy the connection prompt from the home page of the device web app and give it to an agent that supports MCP. The agent reads llms.en.txt on the device, installs the tools and requests pairing. You click BOOT on the device to allow it.

  • Confirm the foreground window with the user before sending any keys.
  • Stick to the standard 87-key set by default. A keyboard device cannot type Chinese directly.
  • Use the keyboard and mouse tools only when the user asks.
Connect an AI agent
Manual setup · PowerShell
# The exact package file name is listed in http://192.168.1.50/llms.en.txt
$dev = "http://192.168.1.50"
$whl = "$dev/sdk/stick-x.y.z-py3-none-any.whl"

# Pair: when the device screen shows the same 4-digit number, click BOOT to allow
uvx --from $whl stick --url $dev pair --wifi --name "Claude Code"

# Register as an MCP server
claude mcp add stick -e STICK_URL=$dev -- uvx --from $whl stick-mcp
A typical call sequence · MCP tools
stick_info        {}
stick_monitor     {"status": {"state": "running", "title": "Save"}}
stick_hid_arm     {"seconds": 30}
stick_hid_send    {"actions": [{"tap": "S", "mods": ["ctrl"]}]}
stick_hid_disarm  {}

Specs

Hardware and firmware

The official firmware supports this one board.

BoardWaveshare ESP32-S3-LCD-1.47, USB-A version
ChipESP32-S3R8, dual-core, 8 MB PSRAM, 16 MB flash
Display1.47-inch, 172×320, ST7789Landscape 320×172 by default: 24-pixel status bar, 320×148 app area
USBUSB-A plug, native USB on the chipComposite HID: keyboard, mouse, media keys, absolute pointer
WirelessWi-Fi, 2.4 GHz
StoragemicroSD card slot, FAT file system, hot-pluggable
Light and buttonsOne RGB LED; BOOT button
Firmware layoutRescue firmware, kernel slots A / B, storagePartitions: rescue firmware 1.5 MB, kernel 3 MB × 2, storage about 8.3 MB
Software stackESP-IDF v6.1.1, LVGL 9.6.0, Lua 5.4.7
Host toolsThe stick CLI and the stick-mcp MCP server, written in PythonThe host tools and SDK are currently fully tested on Windows only

Hardware and buttons

Open source and limits

Fully open, with clear limits

MIT License

The firmware, device protocol, CLI, MCP server, SDK and device web app are all open source. Third-party components keep their own licenses.

GitHub repository

Third-party components

No lock-in

The project never burns eFuses and does not enable Secure Boot or flash encryption. You can always reflash over USB, or switch to firmware signed with your own key.

Updates and recovery

The hardware layer only executes

Human-like timing, actions by screen coordinates, foreground window checks and post-run verification belong to the software-layer SDK, stick-sdk. The project does not do in-game automation.

Software-layer SDK

SafetyKeyling controls the computer it is plugged into: anyone who can send commands to the device can operate that computer. Use it only on a local network you trust, and only on computers you are allowed to operate. See Safety and limits.

Get started

Get a board and install the firmware from your browser.