What is ESP-Claw?
ESP-Claw is Espressif's open-source "Chat Coding" AI agent framework for IoT devices. It sits in the Agent Frameworks & Builders category of the Agents & Automation tools and is open-source, written in C and licensed Apache-2.0. To get started: flash from the browser.
Overview

ESP-Claw is Espressif's open-source "Chat Coding" AI agent framework for IoT devices. Instead of writing firmware for every behaviour, you talk to the device through an instant-messaging app, and the agent running on the chip turns the request into Lua scripts that it loads dynamically. The project describes it as bringing the agent runtime down onto Espressif chips, so the board stops being a passive executor of commands and handles the loop of sensing, deciding and acting itself. It is written in C, inspired by the OpenClaw concept, and draws on MimiClaw for its ESP32 agent loop and IM communication.

The language model is reached over the network: ESP-Claw speaks both OpenAI-style and Anthropic-style APIs, with native support for OpenAI GPT, Alibaba Cloud Bailian Qwen, Anthropic Claude and DeepSeek models plus custom endpoints. Because the device writes its own code, the README recommends models with strong tool use and instruction following. The rest of the agent lives in the firmware: an event router that can trigger the agent loop from any event, structured long-term memory that stays on the device, MCP support as both server and client, a scheduler, web search, file access and Lua bindings to peripherals such as GPIO, I2C, UART, displays, cameras and sensors.
The firmware is organised as an example application (application/edge_agent) on top of reusable components, and every module can be trimmed or extended with your own. Board support comes through Espressif's Board Manager, which covers development boards built on the ESP32-S3, ESP32-P4, ESP32-C5 and ESP32-S31, from a plain breadboard build to the M5Stack CoreS3. The first tagged release, v0.1.0, shipped in June 2026 under the Apache-2.0 licence.
What it does
- Chat as creation: define device behaviour from Telegram, QQ, Feishu or WeChat, with the agent generating and dynamically loading Lua scripts
- Event-driven agent loop — any device event can trigger it, with responses the project puts in the millisecond range
- Structured long-term memory with summary-tag retrieval, kept on the device rather than in the cloud
- MCP communication as both server and client, so standard MCP devices and tools can be connected
- Lua access to peripherals (GPIO, I2C, UART, ADC, LCD, camera, audio, BLE and more, depending on the board) plus LVGL UI drawing and a Skills Lab for sharing skills
- Board Manager support for 20+ ESP32-series boards, browser-based one-click flashing and a local Web Config console

Getting started
Supported boards can be flashed straight from the browser with no toolchain; other boards, and custom builds, go through ESP-IDF. The docs list at least 8 MB of flash and 8 MB of PSRAM as the hardware requirement. You also need an API key for a supported LLM provider and a bot for one of the supported chat apps.
Flash from the browser
Connect the board with a USB data cable (on the breadboard build, use the UART port), open the web flasher at https://esp-claw.com/en/flash/ in Chrome or Edge (Firefox is not supported for web flashing), click Connect, pick your board and flash. In the same flow you enter the Wi-Fi SSID and password, the LLM API key (GPT, Qwen, Claude or DeepSeek), the chat-app credentials (a Telegram bot token, QQ Bot ID and secret, Feishu App ID and secret, or a WeChat QR scan) and optionally a Tavily key for web search; the device restarts when flashing completes.
Or build from source with ESP-IDF
Install ESP-IDF v5.5.4 following Espressif's get-started guide, then add the Board Manager helper and clone the repo.
pip install esp-bmgr-assist
git clone https://github.com/espressif/esp-claw.git
cd esp-claw/application/edge_agentSelect your board
List the board definitions and pick one. Board Manager sets the chip target from the board, so idf.py set-target is not needed.
idf.py bmgr -c ./boards -l
idf.py bmgr -c ./boards -b esp32_S3_DevKitC_1Configure, build and flash
menuconfig is optional — it exposes the App Claw Config, agent stage notification verbosity and console output channel settings.
idf.py menuconfig
idf.py build
idf.py flash monitorAdjust settings in the Web Config console
Once Wi-Fi is up, the device serves a configuration console at http://esp-claw.local/ or http://<device-ip>/, or over its SoftAP (SSID esp-claw-XXXXXX). It covers chat, status, Wi-Fi and timezone, LLM and IM settings, files, memory and which capabilities are enabled. The console assumes a trusted network — do not expose it to the public internet.
Commands and code are distilled from the project's own documentation — always check the official repo for the latest.
When to use it
- Prototype a smart sensor, light or servo gadget by describing the behaviour in a chat instead of writing and reflashing firmware
- Give a low-cost ESP32 board a messaging-app interface that can report sensor readings and act on schedules or events
- Connect a microcontroller to an MCP ecosystem, exposing its peripherals as tools or calling other MCP devices
- Build a custom edge-agent product on Espressif hardware by trimming the framework's components and adding your own
How ESP-Claw compares
ESP-Claw alongside other open-source agent frameworks & builders tools AI/TLDR tracks, ranked by GitHub stars.
| Tool | Stars | What it does |
|---|---|---|
| DeepSeek Harness | ★ 289k | DeepSeek AI's open-source agent harness (dsh), built on Cordis, where models, tools, skills, sessions, sandboxes, storage and the UI are all plugins composed through profiles. |
| AutoGPT | ★ 188k | One of the earliest autonomous agent projects, now a platform for building and running agents from reusable blocks and workflows. |
| DeerFlow | ★ 86k | ByteDance's open-source super agent harness built on LangGraph: skills, sub-agents, sandboxes, a filesystem and long-term memory for long-horizon research, coding and content tasks. |
| nanobot | ★ 50.5k | Lightweight self-hosted personal AI agent framework in Python, with a WebUI, terminal and chat-app channels, tools, long-term memory, MCP and scheduled automations. |
| LangGraph | ★ 45.6k | A library from the LangChain team for building stateful, graph-based agent workflows with explicit control over steps, memory, and human-in-the-loop checkpoints. |
| Agno | ★ 43.3k | A fast Python framework (formerly Phidata) for building agents with memory, tools, and multimodal inputs, plus a runtime for deploying them in production. |
| AgentGPT | ★ 36.3k | AgentGPT lets you name a custom AI, give it a goal, and watch it plan tasks, run them, and learn from the results, all from a web browser. |
| ESP-Claw | ★ 2.4k | Espressif's "Chat Coding" agent framework that runs the agent loop on an ESP32 chip and lets you program the device by chatting with it |
