Keyling documentation
What Keyling is, the layers it is made of, and where to start reading for each goal.
What Keyling is#
Keyling is open-source firmware and host tools for the Waveshare ESP32-S3-LCD-1.47 development board.
- Plug it in over USB and the computer sees an ordinary keyboard and mouse. No drivers needed.
- Connect it to Wi-Fi and scripts or AI agents can press keys and move the mouse over the local network.
- The device runs timelines on schedule. Output must be armed first, and one press of the BOOT button stops it at any time.
Two ways to use it:
| Mode | Description |
|---|---|
| Macros | Macros are stored on the device and run with a click of BOOT. Nothing needs to run on the computer |
| Live control | An agent or script sends keyboard and mouse actions over Wi-Fi, through the stick command line, the MCP server, or the HTTP API |
The device only presses keys on time. Which keys to press and which window is in the foreground are up to you, your macro, or your agent.
Components#
| Part | Where | What it does |
|---|---|---|
| Rescue firmware | Device | Wi-Fi, Wi-Fi setup, updates, logs, minimal UI. Always present, rarely updated |
| Kernel | Device | USB keyboard and mouse, display, microSD card, app management, Lua runtime, device web app |
| Apps | Device storage | Lua apps with hot reload. The macro player is one of them |
| Device web app | Device storage | Open the device address in a browser: macro editing, API testing, settings |
| Host tools | Computer | The stick command line and the stick-mcp MCP server, with matching features |
| Software-layer SDK | Computer | stick-sdk: click, type, and drag by screen coordinates, with an optional human style and post-run verification |
The hardware layer only handles on-time execution and baseline reliability. Human-like modeling, pixel targeting, and foreground window checks belong to the software-layer SDK.
The repository, command line, protocol headers, and device IDs keep the early codename stick: for example the stick command and device IDs like stick-xxxxxx.
Where to start#
| I want to… | Read |
|---|---|
| Start from a new board without installing a dev environment | Quick start |
| Learn about the buttons, display, LED, and microSD card | Hardware and buttons |
| Switch Wi-Fi networks, or find the device address | Wi-Fi setup and networking |
| Manage the device from a browser | Device web app |
| Write a macro and run it with BOOT | Macros |
| Let an AI agent operate my computer | Connect an AI agent |
| Click and type by screen coordinates, and check the foreground window | Software-layer SDK |
| Write a plan for the SDK to run | Plan format |
| Understand the risks and safeguards first | Safety and limits |
| Manage the device from the command line | The stick command line |
| Call the API from my own code | HTTP API |
| Run my own code on the device | Lua apps |
| Update the firmware, or recover a device that won't boot | Updates and recovery |
| Modify and build the firmware myself | Build the firmware yourself |
| Troubleshoot a problem | FAQ |
| Look up a term | Glossary |
Current status#
NoteThe web installer (/install) is in beta. The step where the device boots straight into the kernel after flashing has not yet been verified on real hardware. See Quick start and Updates and recovery.
The host tools and the SDK are currently fully tested only on Windows.
Use it responsibly#
Keyling types into whichever window is in the foreground. Only operate computers you are authorized to use, and follow the terms of the software and services involved. Before letting an agent run, confirm the foreground window is the right one.
Source code and developer docs: github.com/kk8o/keyling, MIT license.
All docs#
Get started
- Quick startInstall the firmware in the browser, set up Wi-Fi, open the device web app and pair, then run your first macro. No development environment required.
- Hardware and buttonsBoard specs, what the screen and indicator light mean, every BOOT button gesture, the microSD card, and the two USB modes.
- Wi-Fi setup and networkingThe hotspot setup flow, saved networks, changing and forgetting networks, three ways to exit Wi-Fi setup, and how to find the device's address.
Use
- Device web appThe pages in the device's built-in web app, how to pair a browser with the BOOT button, and how to hand the connection prompt to an AI.
- MacrosWhat macros are, how to use the block editor, run once vs. loop, BOOT controls, macro JSON, macros on the microSD card, and the default key set.
- Safety and limitsWhat it means for a device to control your computer, how leases, emergency stop, the monitor screen, and the pairing key protect you, the assumptions for use, and what the project does not do.
- Updates and recoveryUpdating firmware from the website, dual slots and automatic rollback, rescue firmware, unbricking by holding BOOT while plugging in USB, and switching between official and self-built firmware.
Integrate
- Connect an AI agentInstalling the stick-mcp MCP server, the tools it offers and the recommended workflow, and how it divides work with the software-layer SDK.
- Software-layer SDKWhat stick-sdk is, how to install it, and how to use it: click, drag, and type by screen coordinates, with foreground window checks, a human style, and post-run verification.
- Plan formatReference for the software-layer SDK's plan JSON: top-level fields, the eight step types, guard, frame, style, results, verification output, and error codes.
- The stick command lineHow to install the stick host tool, how to choose a device, and a quick reference of common commands grouped by task.
- HTTP APIThe concepts of the device HTTP API (pairing, request signing, endpoint groups, actions and timelines) and where to try it online. Endpoint details are in the API reference.
Develop
- Lua appsWhat Lua apps on the device are, a minimal example, the manifest, how to push and debug, and runtime limits.
- Build the firmware yourselfAn overview for developers: environment, signing key, first USB flash, deploying over Wi-Fi, and the daily development loop, with links to step-by-step guides on GitHub.
Reference
- API referenceEvery device HTTP endpoint: method, path, auth, parameters, request and reply fields, examples and error codes. Generated from openapi.json.
- FAQCommon questions and fixes for installation, networking, pairing, key presses, macros, and using agents.
- GlossaryTerms that recur throughout the docs: kernel, rescue firmware, Wi-Fi setup, pairing, macro, timeline, lease, emergency stop, monitor screen, and more.