Skip to content
HardwareLab

zclaw

zclaw is written in C and runs on ESP32 boards with a strict all-in firmware budget target of 888 KiB or less on the default build.

Hardware:
ESP32
Difficulty:
Intermediate · Our suggestion
License:
MIT
Creator:
tnm

The smallest possible AI personal assistant for ESP32

zclaw
No photo in the source; GitHub repository card, served from HardwareLab.No demo video in the README.

By tnm

Posted

What it does

zclaw is written in C and runs on ESP32 boards with a strict all-in firmware budget target of 888 KiB or less on the default build. It supports scheduled tasks, GPIO control, persistent memory, and custom tool composition through natural language.

  • Scheduled tasks, GPIO control, persistent memory, and custom tool composition through natural language.
  • The 888 KiB cap is all-in firmware size: zclaw logic plus ESP-IDF/FreeRTOS runtime, Wi-Fi/networking, TLS/crypto, and cert bundle.
  • Chat via Telegram or a hosted web relay, with timezone-aware schedules (daily, periodic, and one-shot once).
  • GPIO, DHT, and I2C control with guardrails, and persistent memory across reboots.
  • A USB local admin console for recovery, safe mode, and pre-network bring-up.

What you need

Difficulty
Intermediate · Our suggestion
License
MIT (source)

Parts

  • ESP32 board: ESP32, ESP32-C3, ESP32-S3 or ESP32-C6
  • Seeed XIAO ESP32-C3 [optional]
AI model or service
Anthropic, OpenAI, OpenRouter or Ollama (custom endpoint) (source)

Prices, notes and sources: Parts and requirements

Parts and requirements

PartSpec / notesNeededPrice
ESP32 board: ESP32, ESP32-C3, ESP32-S3 or ESP32-C6 Classic ESP32-WROOM/ESP32 DevKit boards are supportedRequired
Seeed XIAO ESP32-C3 Recommended starter boardOptional
  • WiFi credentials and an LLM backend, model and API key (or an Ollama API URL), provisioned with ./scripts/provision.sh
  • A Telegram token and chat ID allowlist, to chat via Telegram

Full build guide

Steps

Difficulty
Intermediate · Our suggestion
  1. Run the bootstrap script, or ./install.sh in a clone
  2. Flash the firmware (secure mode encrypts credentials in flash)
  3. Provision WiFi and LLM credentials with ./scripts/provision.sh
  4. Send a test message through ./scripts/web-relay.sh

Full instructions: View original

How it works

The firmware runs on the ESP32 and you chat with it over Telegram or a hosted web relay. It calls an LLM backend (Anthropic, OpenAI, OpenRouter, or Ollama at a custom endpoint) using WiFi and LLM credentials provisioned with ./scripts/provision.sh.

LayerComponentRuns on
Firmwarezclaw (C, with ESP-IDF/FreeRTOS) ESP32, ESP32-C3, ESP32-S3 and ESP32-C6
ChatWeb relay (hosted relay + mobile chat UI) ./scripts/web-relay.sh
LLMLLM backend, model and API key (or Ollama API URL) Provider APIs, or your Ollama API URL

Setup effort

Run the one-line bootstrap or ./install.sh, flash, then provision WiFi and LLM credentials with ./scripts/provision.sh.

Limits and caveats

  • Default LLM rate limits are 100/hour and 1000/day; changing them is a compile-time edit in main/config.h.
  • Tested targets are ESP32, ESP32-C3, ESP32-S3 and ESP32-C6; test reports for other variants are welcome.

Like this build? Get the weekly builds

Every Thursday: the 5 best gadget hacks you can copy. Free.

Built something? Submit a build

The creator's config

Copied word for word from the creator's repository, at the commit linked in each source.

  • Local admin console (USB serial)

    ./scripts/monitor.sh /dev/cu.usbmodem1101
    # then type:
    /wifi status
    /wifi scan
    /bootcount
    /gpio all
    /reboot

Use-case ideas

  • Scheduled tasks, GPIO control and custom tools, set up through natural language.

Why it's interesting

zclaw calls itself the smallest possible AI personal assistant for ESP32. It is written in C with a strict all-in firmware budget target of 888 KiB, and that cap includes not just the zclaw logic but the ESP-IDF/FreeRTOS runtime, Wi-Fi and networking, TLS and crypto, and the cert bundle. The README’s size breakdown puts the app logic at about 38.4 KiB, roughly 4.6% of the image. You chat with it over Telegram or a hosted web relay, and it keeps persistent memory across reboots, runs timezone-aware schedules and controls GPIO, DHT and I2C with guardrails. Providers include Anthropic, OpenAI, OpenRouter and Ollama, and a USB local admin console works for recovery even without Wi-Fi or an LLM. Tested targets are the ESP32, ESP32-C3, ESP32-S3 and ESP32-C6, and the recommended starter board is the Seeed XIAO ESP32-C3.

Source: github.com/tnm/zclaw#readme

Hardware

  • ESP32

More ESP32 builds

Credits and links

This page is a short summary written by HardwareLab. Build steps, code and photos belong to the creator; follow “View original” for the full project.

Featured? Add this badge

Built this? Paste the badge into your README. It links back to this page.

Featured on HardwareLab

Markdown

[![Featured on HardwareLab](https://hardwarelab.dev/badge.svg)](https://hardwarelab.dev/projects/zclaw/?utm_source=badge&utm_medium=referral&utm_campaign=launch_2w)

HTML

<a href="https://hardwarelab.dev/projects/zclaw/?utm_source=badge&utm_medium=referral&utm_campaign=launch_2w"><img src="https://hardwarelab.dev/badge.svg" alt="Featured on HardwareLab" width="188" height="20"></a>