█

AI/TLDR

Buy me a coffee
Buy me a coffee

ESP-Claw

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

Agent Frameworks & BuildersOpen source
Latest
v0.1.0
Updated
12 Jun 2026
Language
C
License
Apache-2.0

What's new

v0.1.012 Jun 2026

First tagged release: agent loop with multi-provider tool calling and sub-agents, synchronous and asynchronous Lua execution, 20+ supported boards via Board Manager, Web Config, the mcp_server_point application, Skills Lab and LVGL UI from Lua.

IN SHORT

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.

Updated Markdown version ↗

Overview

ESP-Claw running on an ESP32-S3 breadboard build with an LCD showing Wi-Fi connected, an LED ring, a temperature sensor and a servo
The reference breadboard build: an ESP32-S3 board wired to a display, an RGB LED ring, a sensor and a servoESP-Claw README ↗

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.

Comparison of the traditional code-compile-flash-debug ESP workflow with ESP-Claw's chat-driven workflow that deploys to the device from a conversation
Chat Coding versus the traditional code, compile, flash and debug cycleESP-Claw README ↗

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
ESP-Claw architecture diagram: IM platforms on top, claw modules, event router, LLM and Lua capabilities, Board Manager and ESP-IDF in the middle, LLM providers at the bottom
Architecture from the v0.1.0 release notes, from IM platforms down to ESP-IDFESP-Claw v0.1.0 release notes ↗

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.

bashbash
pip install esp-bmgr-assist
git clone https://github.com/espressif/esp-claw.git
cd esp-claw/application/edge_agent

Select 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.

bashbash
idf.py bmgr -c ./boards -l
idf.py bmgr -c ./boards -b esp32_S3_DevKitC_1

Configure, build and flash

menuconfig is optional — it exposes the App Claw Config, agent stage notification verbosity and console output channel settings.

bashbash
idf.py menuconfig
idf.py build
idf.py flash monitor

Adjust 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.

ToolStarsWhat it does
DeepSeek Harness★ 289kDeepSeek 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★ 188kOne of the earliest autonomous agent projects, now a platform for building and running agents from reusable blocks and workflows.
DeerFlow★ 86kByteDance'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.5kLightweight 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.6kA 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.3kA fast Python framework (formerly Phidata) for building agents with memory, tools, and multimodal inputs, plus a runtime for deploying them in production.
AgentGPT★ 36.3kAgentGPT 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.4kEspressif's "Chat Coding" agent framework that runs the agent loop on an ESP32 chip and lets you program the device by chatting with it