DuckyClaw is a hardware oriented version of the OpenClaw. The Ideas is to explore the physical hardware with the powerful concept of OpenClaw agents.
| Category | Models/Platforms |
|---|---|
| MCUs | - Tuya T5AI Module - ESP32s |
| SoCs | - Raspberry Pi 4/5/CM4/CM5 - Linux ARM SoCs (Qualcomm/Rockchip/Allwinner etc...) |
| PCs | - Linux Ubuntu |
This project is build on top of the the TuyaOpen C SDK, which offers flexable cross ARM Cortex-M and ARM Cortex-A, and event x64 PC deployments. And also offers wide varierity ready-to-use hardware drivers and API. Makeing integreating new hardware and peferials as easy as building blocks. (Sensors, Displays, Speaker-Mic Audio, Cameras, to IoT cloud integreations)
Your autonomous AI companion. Simplify Hardware Integration, Unlock Infinite Control Possibilities
Warning
๐ง Under Active Development - This project is in heavy development and things will break. Running it now may spoil the experience we're building for you. Please visit or open Issues if you encountered any problem.
Most AI agent frameworks are powerful but cumbersome. They often come with costly subscriptions, complicated setups, and are layered on top of other frameworks and APIs. DuckyClaw offers a different path.
Built on a commercial-grade deviceโcloud AI agent foundation, DuckyClaw uniquely fuses on-device agents with the power of the cloud.
With a single TuyaOpen Key, you gain seamless access to the Tuya Cloud Platform and its next-generation deviceโcloud AI agents.
Itโs lightweight and effortlessly deployable to almost any edge hardware. From WIFI connected MCUs to System on Chip ARM, to PC Ubuntus.
| DuckyClaw | OpenClaw / MimiClaw / others | |
|---|---|---|
| Architecture | Hardware-oriented OpenClaw on TuyaOpen C SDK; deviceโcloud fusion | OpenClaw: Node.js, 24/7 desktop/server agent. MimiClaw: bare-metal C on ESP32-S3 only. Others: framework stacks (Pi, Claude Code, etc.) |
| Deployment | MCUs (Tuya T5AI, ESP32s), SoCs (RPi 4/5, ARM Linux), PC (Ubuntu); one codebase | OpenClaw: Mac mini, Pi, VPS. MimiClaw: single $5 ESP32-S3. Others: server/desktop only, no edge MCU |
| Runtime | TuyaOpen C; cross ARM Cortex-M, ARM Cortex-A, x64; no Node on MCU | OpenClaw: Node.js. MimiClaw: no OS, no Node. Others: Node.js 22+, pnpm, full OS |
| Deviceโcloud | One TuyaOpen key โ Tuya Cloud Platform + device; built-in device-cloud AI | OpenClaw: self-hosted, optional API subs. MimiClaw: local-only (SOUL.md, USER.md, MEMORY.md). Others: cloud-only or DIY |
| Channels | Telegram, Discord, Feishu via unified IM component (message bus, proxy, TLS) | OpenClaw: WhatsApp, Telegram, Discord, iMessage, Slack, etc. MimiClaw: Telegram, WebSocket, serial CLI. Others: terminal or separate UI |
| Memory | MEMORY.md + daily notes (YYYY-MM-DD.md); session manager; ported from MimiClaw-style store | OpenClaw: 24/7 persistent context, Obsidian/Raycast. MimiClaw: on-device MEMORY.md. Others: flat conversation history |
| Tools | CRON, FILE, IoT device control (Tuya); EXEC (RPi) planned; MCP-style device tools | OpenClaw: browser automation, cron, ClawHub skills. MimiClaw: ReAct + web search, time, OTA, GPIO. Others: ad-hoc or single provider |
| โจ Setup | Single TuyaOpen key; pick board (T5AI/ESP32/RPi/Linux), configure IM tokens | OpenClaw: Gateway, OAuth, multi-step. MimiClaw: flash firmware, API keys. Others: complex onboarding, many deps |
| โจ Cost | Low cost; unified key access to services | OpenClaw/MimiClaw: bring your own Claude/OpenAI. Others: Claude Pro/Max ($20โ200/mo) or API-heavy |
| โจ Device IoT Control | Native device and IoT control, controlling other device in the ecosystem (over TuyaOpen/embedded protocols) | โ (typically no built-in device control) |
| โจ Voice (ASR) Input | Hardware voice input (ASR) supported on select boards | โ (voice input not natively supported) |
DuckyClaw is inspired by the vision of making personal AI accessible, practical, and genuinely helpfulโrooted not in corporate tools, but in the idea of an always-there companion that intuitively fits into your daily life and hardware. The projectโs name and mascot of Cute Duck from Tuya, embrace the spirit of resourceful, adaptive creatures of Claw.
Why a duck and a claw? Ducks are omnipresent, adaptable, and thrive in almost any environmentโjust like DuckyClawโs software, which you can deploy from microcontrollers to desktop Linux. The "claw" symbolizes precision, dexterity, and direct command over both your real-world devices and digital agents. With TuyaOpen, hardware integration is much more flexible, allowing you to easily connect a wide range of hardware features and capabilities directly into your agent. This project isnโt about replacing peopleโitโs about building a dependable, always-learning, always-improving companion you fully control with real-life hardware interfaces.
- Personal-first, not enterprise. DuckyClaw is made for individuals and makers. Your workflows and day-to-day life come first, no bureaucracy or corporate bloat.
- Lean core, plugin power. Everything outside the essential C coreโchannels, providers, toolsโis a plugin you can swap and extend.
- Self-tuning and adaptive. Learns via real episode memory and periodic self-review, with memory fading that helps it stay relevant.
- IoT control memory. DuckyClaw remembers device states, actions, and preferences as part of IoT_MEMORY.md, allowing it to build a rich contextual history of your devices and interactions. Of how you control other devices in the Tuya ecosystem. This lets the agent adapt to your automation routines, device quirks, and personal preferences over timeโenabling smarter, more intuitive IoT control that gets better the more you use it.
- Config by conversation. No thick config files: set up and modify your agent simply by chatting, both on hardware and in the cloud.
- Distinctive personality. Each instance has its own configuration and optional Hardware layer for characterful, helpful responses.
- Builds natively on C/TuyaOpen. No Node, no Python frameworks glued on. Built from scratch for the boards and platforms you actually use.
- Rapid to start. Requires just a TuyaOpen key. Choose models and providers as neededโswitch between them with the messaging interface anytime.
- Unified model access. With a single TuyaOpen API Access Key, you can tap into the latest models from GPT, Claude, Deepseek, Qwen, and moreโchoose the best model for each task, all seamlessly hosted and managed by Tuya.
- Device and Cloud AI Agents. DuckyClaw is natively built to support both agents that run locally on your device (โdevice agentsโ) and those that operate in Claw like manner the cloud (โcloud agentsโ). This hybrid architecture enables on-device actions, voice, and IoT control while also providing access to advanced cloud intelligence, remote coordination, and online skills, MCPs. You can configure, blend, or move workloads fluidly between device and cloudโgiving you the flexibility to optimize for speed, privacy, and power as you choose.
-
Unified Messaging Input:
Seamless integration with WhatsApp, Telegram, Feishu, and more through a unified proxy IM interface. -
DeviceโCloud Hybrid AI Agent:
Centralized AI agent powered by TuyaOpen, enabling both on-device and cloud-based actions with the Claw mechanism. -
IoT Device Control:
Native control and management of Tuya IoT smart devices directly from the agent. -
Music Playback & Audio Features:
Built-in music player. -
Hardware Voice ASR Audio input with Automatic Speech Recognition (ASR)
-
MCP Device Tools:
- CRON Tool MCP: Scheduled device tasks and heartbeating.
- FILE Tool MCP: File operations and management on supported devices.
- IoT Device Control Tool MCP: Advanced management for Tuya-connected devices.
- EXEC Tool MCP: Remote code execution/injection on Raspberry Pi
-
Additional Capabilities:
- SD Card storage support
- Persistent memory via local
Agent.txtandmemory.txt - Flexible Gateway switching for device/cloud agent handoff
- Simple CLI for Tuya authentication and messaging setup
The DuckyClaw architecture combines local device agents and cloud agents under a unified system. At its core, it uses the TuyaOpen AI-Agent framework to handle messaging, automation, and control. Local hardware (like Raspberry Pi, ESP32, or Linux devices) runs its own Claw like loop agent, able to communicate directly with your devices via IoT and hardware interfaces.
git clone https://github.com/tuya/DuckyClaw.git
cd DuckyClaw
git submodule update --init- Tuya T5 MCU Guide: DuckyClaw Quick Start (T5-AI)
- Raspberry Pi Guide: DuckyClaw Quick Start (raspberry pi 5)
- ESP32 MCU Guide: DuckyClaw Quick Start (ESP32-S3)
Skill format: Skills are .md files in the skills/ directory. The agent gets a summary of them and follows the instructions. Use this structure:
# Skill Title
One-line description.
## When to use
When the user asks about X / when Y happens.
## How to use
1. Call tool_A with ...
2. Then call tool_B ...
3. Reply with ...
## Example
User: "โฆ" โ use get_current_time, then web_search "โฆ", then reply "โฆ"Add skills: put a new name.md in the skills dir (e.g. via the write_file tool), or add built-ins in skills/skill_loader.c. See existing skills there for examples.
DuckyClaw/
โโโ agent/ # Agent core logic
โ โโโ agent_loop.c/h # Claw-style agent loop (reasoning, tool calls, context)
โ โโโ context_builder.c/h # Dialogue and system context building
โโโ config/ # Board/platform configs (Kconfig selection)
โ โโโ TUYA_T5AI_BOARD_LCD_3.5_CAMERA.config # Tuya T5AI dev board
โ โโโ RaspberryPi.config # Raspberry Pi
โ โโโ ESP32S3_BREAD_COMPACT_WIFI.config # ESP32-S3
โโโ heartbeat/ # Scheduled heartbeat and keepalive
โ โโโ heartbeat.c/h
โโโ IM/ # Unified messaging layer (message bus + channels)
โ โโโ bus/ # Message bus (message_bus)
โ โโโ channels/ # Telegram / Discord / Feishu channels
โ โโโ proxy/ # HTTP proxy (TLS, cloud connectivity)
โ โโโ cli/ # Serial/local CLI
โ โโโ certs/ # Certificates and TLS config
โ โโโ im_api.h / im_platform.h / im_config.h
โ โโโ README.md # IM component docs
โโโ include/ # App-level public headers
โ โโโ app_im.h / ducky_claw_chat.h / tuya_app_config.h
โ โโโ reset_netcfg.h
โโโ memory/ # Persistent memory and sessions
โ โโโ memory_manager.c/h # Agent.txt, memory.txt, IoT memory, etc.
โ โโโ session_manager.c/h
โโโ src/ # App entry and business logic
โ โโโ tuya_app_main.c # TuyaOpen app entry, init, event loop
โ โโโ ducky_claw_chat.c # Chat flow, device/cloud agent dispatch
โ โโโ app_im.c # IMโAgent bridge
โ โโโ cli_cmd.c # CLI and config (auth, IM setup, etc.)
โ โโโ reset_netcfg.c # Network config reset
โโโ tools/ # MCP-style device tools
โ โโโ tool_cron.c/h # CRON scheduling and heartbeat
โ โโโ tool_files.c/h # FILE operations
โ โโโ tools_register.c/h # Tool registration and dispatch
โ โโโ Kconfig
โโโ dist/ # Build output (e.g. DuckyClaw_1.0.x)
โโโ app_default.config # Default Kconfig
โโโ TuyaOpen/ # TuyaOpen C SDK submodule (platform, drivers, cloud, AI, etc.)
Please report any issues and bugs by creating a new issue here, also make sure you're reporting an issue that doesn't exist. Any help to improve the project would be appreciated. Thanks! ๐โจ
Like this project? Leave a star! โญโญโญโญโญ
This project wouldn't be possible without the amazing TuyaOpen Open Source AI-Agent framework. It makes AI-Agent integreation really easy
This project is licensed under the Apache License 2.0.
- TuyaOpen - This project is build on top of this amazing hardware AIoT OS call TuyaOpen.
- OpenClaw โ original idea and inspiration
- MimiClaw - original inspiration of ESP32 local agent and skills
This project is created by TuyaOpen Team, with the help of awesome contributors


