WireClaw is an open-source firmware project that turns ESP32 boards into small hardware agents capable of interacting with sensors, GPIO, relays, LEDs, and other connected devices. Instead of writing code every time you want the board to do something new, you describe what you want in plain language over Telegram, serial, or NATS, and an AI agent that handles the rest. It makes a microcontroller that costs less than lunch considerably more cool and fun to use.
AI meets the ESP32

WireClaw runs on the ESP32-C3, ESP32-C6, and ESP32-S3, with the C6 recommended and 4 MB of flash required across the board. Once it's flashed and configured, the chip can interact with an AI model while exposing whatever hardware is wired to it: turning on an LED, reading a sensor, flipping a relay, adjusting a PWM output, or talking to another microcontroller over UART.
More interesting is WireClaw's persistent rule engine. You can hand the agent an instruction like:
If the temperature goes above 30°C, turn on the fan and send me a message.
The AI interprets that request and builds the corresponding automation. Once the rule exists, the ESP32 keeps monitoring the sensor and executing it on its own, with no further AI involvement needed. That distinction matters quite a bit for how the whole system is architected.
The LLM isn't actually running on the ESP32

Despite how projects like this sometimes get described, WireClaw isn't squeezing a ChatGPT-sized model onto a microcontroller. The language model still runs elsewhere: WireClaw talks to a cloud LLM service such as OpenRouter, or to a locally hosted model like Ollama, over HTTP. The ESP32 itself handles the agent firmware, the hardware interfaces, the automation rules, and the communication with whichever model you've pointed it at.
That split makes a lot more sense on a chip with limited RAM and flash. The AI does the heavy lifting when it comes to interpreting a request; the ESP32 handles the physical world. And because simple rules don't need to keep contacting the LLM once they're set up, the rule loop runs continuously with no network connection and no model in the loop at all. That's what makes WireClaw workable for environmental monitoring, smart-home experiments, robotics, and other workshop automation where you don't want a cloud outage taking down your fan controller.
More than GPIO control
The ESP32 already has a massive ecosystem of sensors and peripherals behind it, and WireClaw leans on that. Beyond GPIO and PWM, it can bridge to external hardware over UART and fold that incoming data into its automations, meaning another Arduino, a GPS module, a CO2 sensor, an RFID reader, or some other serial device can all feed into WireClaw's rule engine. Messaging support also lets the board send notifications or take commands remotely.
The result sits somewhere between traditional microcontroller firmware and the AI-agent platforms that normally run on much bigger machines.
It can work with OpenClaw, too
WireClaw gets more interesting when paired with OpenClaw, the AI agent framework that lets a model interact with a computer's file system, email, and desktop applications. Instead of running entirely on its own, a WireClaw device can act as a physical endpoint for a larger OpenClaw setup: the higher-level agent handles the complicated reasoning, while the ESP32 supplies access to sensors, switches, motors, and other real-world hardware.
Put another way: OpenClaw gets a way to reach outside the computer, which is a good deal more useful than just bolting a chatbot interface onto a microcontroller.
Espressif is exploring the same idea
WireClaw isn't the only project chasing AI agents on microcontrollers. Espressif, the company behind the ESP32 itself, has released its own open-source ESP-Claw framework, described as a "Chat Coding" AI agent framework for IoT devices. ESP-Claw runs on the ESP32-S3, ESP32-P4, ESP32-C5, and ESP32-S31, and it's built specifically for the same core idea: define device behavior through conversation instead of firmware.
Under the hood, ESP-Claw can dynamically load Lua code, react to events, reach hardware peripherals, maintain structured memory locally on the device, and talk to external models through OpenAI- and Anthropic-compatible APIs. Espressif's release notes list support for more than 20 development boards out of the gate. Espressif has also published a separate ESP-IDF component that lets an ESP32 application operate as an OpenClaw node over WebSocket, tying the two ecosystems together directly.
AI agents are moving into the physical world
WireClaw is still an experimental maker project, but the idea behind it is arguably more significant than the project itself. For years, connecting an ESP32 to a sensor or relay meant deciding exactly what the device should do and writing firmware around those rules. Agent-style systems change that relationship: instead of programming every behavior by hand, you describe what you want and let a model create or modify the logic controlling the hardware.
We're a long way from every ESP32 becoming an autonomous AI device, and actual language models aren't suddenly running on $5 microcontrollers. But projects like WireClaw and ESP-Claw show how little hardware is really needed to connect AI agents to the physical world, and given how many ESP32 boards are already sitting in makers' parts bins, that's a pretty compelling place for AI agents to go next.
Links: WireClaw on GitHub · ESP-Claw on GitHub