Skip to content

zevorn/rt-claw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RT-Claw — Making AI Assistants Cheap

中文 | English

Real-Time Claw — an OpenClaw-inspired intelligent assistant for embedded devices.

Multi-RTOS support via OSAL. Build swarm intelligence with networked nodes.

Core Idea

rt-claw brings intelligence from the cloud to the edge through low-cost embedded nodes and swarm networking. Each node can sense the world, collaborate with others, and execute control tasks in real time.

Features

  • LLM Chat Engine — interactive conversation with Claude API over HTTP
  • Tool Use — LLM-driven hardware control (GPIO, system info) via function calling
  • OSAL — write once, run on FreeRTOS and RT-Thread with zero code changes
  • Gateway — thread-safe message routing between services
  • Networking — Ethernet + HTTP client on ESP32-C3 QEMU; WiFi on real hardware
  • Swarm (planned) — node discovery, heartbeat, task distribution

Architecture

+---------------------------------------------------+
|                rt-claw Application                |
|  gateway | swarm | net | ai_engine | tool_use    |
+---------------------------------------------------+
|               claw_os.h  (OSAL API)               |
+-----------------+---------------------------------+
| FreeRTOS (IDF)  |          RT-Thread              |
+-----------------+---------------------------------+
| ESP32-C3        |  QEMU vexpress-a9               |
| WiFi / BLE      |  Ethernet / UART                |
+-----------------+---------------------------------+

Supported Platforms

Platform RTOS Build System Status
ESP32-C3 ESP-IDF + FreeRTOS CMake (idf.py) Networking + AI working on QEMU
QEMU vexpress-a9 RT-Thread SCons Boot verified

Quick Start

ESP32-C3 (ESP-IDF + QEMU)

# Prerequisites: ESP-IDF v5.x, Espressif QEMU
source $HOME/esp/esp-idf/export.sh
cd platform/esp32c3
idf.py set-target esp32c3
idf.py build
idf.py qemu monitor         # QEMU
idf.py -p /dev/ttyUSB0 flash monitor  # real hardware

QEMU vexpress-a9 (RT-Thread)

# Prerequisites: arm-none-eabi-gcc, qemu-system-arm, scons
cd platform/qemu-a9-rtthread
scons -j$(nproc)
../../tools/qemu-run.sh

Project Structure

rt-claw/
├── osal/                        # OS Abstraction Layer
│   ├── include/claw_os.h       #   Unified RTOS API
│   ├── freertos/                #   FreeRTOS implementation
│   └── rtthread/                #   RT-Thread implementation
├── src/                         # Platform-independent core
│   ├── claw_init.*              #   Boot entry point
│   ├── claw_config.h            #   Project configuration
│   ├── core/gateway.*           #   Message routing
│   ├── services/ai/             #   LLM chat engine (Claude API)
│   ├── services/net/            #   Network service
│   ├── services/swarm/          #   Swarm intelligence
│   └── tools/                   #   Tool Use framework (GPIO, system)
├── platform/
│   ├── esp32c3/                 # ESP-IDF project (CMake)
│   └── qemu-a9-rtthread/       # RT-Thread BSP (SCons)
├── vendor/
│   ├── freertos/                # FreeRTOS-Kernel (submodule)
│   └── rt-thread/               # RT-Thread (submodule)
├── docs/
│   ├── en/                      # English documentation
│   └── zh/                      # Chinese documentation
├── scripts/                     # Code style & dev tools
└── tools/                       # Build & launch scripts

Documentation

License

MIT

About

rt-claw — turning thousands of tiny devices into one real-time intelligence.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors