KINPOD SYSTEM ARCHITECTURE & DEVELOPER GUIDE
KinPod is an open-source wearable physical body designed for autonomous AI agents (OpenClaw, Claude Code, Gemini, Hermes). Worn on the chest via a magnetic harness, it provides physical eyes, ears, voice, and an unforgeable hardware approval boundary.
Architecture Overview
The KinPod ecosystem operates across three decoupled layers:
Real-Time Duplex Audio
Pressing the physical BOOT button (GPIO 0) engages the ES7210 microphone, streaming binary 16kHz PCM frames over WebSocket. KinBridge transcribes with zero-latency streaming and replies via neural Edge-TTS through the chest speaker.
The Tribe of Kin
Support for 6 distinct agent avatars: Crab (OpenClaw), Astro (Gemini), Octo (Claude Code), Hermes (Nous Research), Muse (GPT-4o), and Dots (Local Ollama).
Hardware Specifications & Pinouts
KinPod is built on top of the Waveshare ESP32-S3 Touch AMOLED 2.06" development board, featuring an ESP32-S3R8 dual-core Xtensa LX7 SoC with 32MB Flash and 8MB Octal PSRAM.
| Peripheral Subsystem | Pins / GPIO Bus | Technical Description |
|---|---|---|
| Shared I2C0 Bus | SCL=14, SDA=15 | 400kHz shared peripheral bus managed with FreeRTOS mutex. |
| PMU AXP2101 | I2C `0x34` | Critical ALDO2 power rail set to 3.3V for AMOLED display. CC 500mA charging. |
| AMOLED 2.06" | CS=12, SCLK=38, D0-D3=4-7, RST=39 | 410×502 px high-density curved display, CO5300 QSPI controller. |
| Capacitive Touch | INT=11, RST=40 (I2C `0x5A`) | CST9220 multi-touch controller. Powers the sternum HITL approval boundary. |
| I2S0 Audio Codec | MCLK=42, BCLK=9, LRCK=45, DOUT=8, DIN=10 | 16 kHz 16-bit Duplex: ES7210 microphone ADC + ES8311 speaker DAC. |
| Power Amplifier | GPIO 46 | NS4150 Class-D 3W audio amplifier (Active-High enable). |
| PTT Button | GPIO 0 (BOOT) | Push-To-Talk tactile active-low button with 300ms short-tap rejection. |
| Haptic Feedback | GPIO 18 | Miniature ERM tactile vibration motor for physical touch feedback. |
Model Context Protocol (MCP)
KinPod exposes an official Model Context Protocol (MCP) server conforming to the open Anthropic specification. This enables OpenClaw, Claude Code, Cursor, Windsurf, and Antigravity to treat the physical wearable as a standard peripheral toolset.
{
"mcpServers": {
"kinpod": {
"command": "python",
"args": ["-m", "kinpod_mcp.server"]
}
}
}EXPOSED MCP TOOLS REFERENCE
| Tool Name | Parameters | Description | Scope |
|---|---|---|---|
| `kinpod_status` | None | Returns battery voltage (mV), Wi-Fi RSSI, link state, and active visual theme. | Read-Only |
| `kinpod_connect` | agent_id, avatar_id, title | Inhabits the wearable, switching the AMOLED display to your agent's avatar. | Telemetry |
| `kinpod_speak` | text, voice | Synthesizes audio via neural TTS and streams speech through chest speaker. | Audio Out |
| `kinpod_listen` | timeout_sec | Blocks and waits for wearer to press BOOT button, speaks, and returns transcribed text. | Audio In |
| `kinpod_get_last_speech` | None | Returns the most recent transcribed speech without blocking execution. | Read-Only |
| `kinpod_request_approval` | action, details, risk, timeout_sec | HITL Guardian: Displays modal on chest; pauses agent until human taps screen. | Security |
| `kinpod_expose_tunnel` | port | Spawns a Cloudflare tunnel for zero-configuration cellular hotspot roaming. | Network |
Human-In-The-Loop (HITL) Guardian
As AI agents become autonomous developers capable of executing shell commands, deleting databases, or conducting financial transactions, software confirmation prompts inside chat interfaces are insufficient. KinPod enforces a physical sternum killswitch.
# Synchronously pause for physical human confirmation on chest screen
result = await kinpod_request_approval(
action="deploy_prod",
details="Deploying commit 7a8b9c to production server.",
risk="HIGH",
timeout_sec=60
)
if "APPROVAL GRANTED" in result:
print("Wearer tapped APPROVE on chest screen. Proceeding.")
run_deploy()
else:
print("Action REJECTED or timed out. Aborting gracefully.")
abort_deploy()KinBridge & WebSocket Protocol
KinBridge is a high-performance Python FastAPI daemon that handles the bidirectional WebSocket connection with the ESP32-S3 wearable, local Speech-To-Text (STT), Neural TTS synthesis, and routing to OpenClaw Gateway or Gemini.
cd kinpod/server pip install -r requirements.txt # Configure language & OpenClaw Gateway token export KIN_LANG="en" export OPENCLAW_TOKEN="your_gateway_token" # Start hub listening on port 8005 python -m uvicorn kin_bridge:app --host 0.0.0.0 --port 8005
WEBSOCKET EVENT SCHEMA (/ws/kinpod)
Wearer presses BOOT (GPIO 0). Wearable sends text `ptt_start`, streams binary 16kHz PCM chunks, and finishes with `ptt_stop`.
// 1. Text control frame
{"event": "ptt_start", "kin": "crab"}
// 2. Binary frames (OpCode 0x02)
[16kHz 16-bit Mono PCM chunks]
// 3. Text control frame
{"event": "ptt_stop"}KinBridge generates TTS response, sends text `reply`, streams binary 2048-byte PCM audio chunks, and signals `tts_end`.
// 1. Text control frame
{"event": "reply", "kin": "crab", "text": "..."}
// 2. Binary audio stream
[2048-byte chunks every 30ms]
// 3. Completion event
{"event": "tts_end"}Firmware & Flashing Guide
KinPod runs native C firmware built on ESP-IDF v5.4 / v6.0 with FreeRTOS. It utilizes a 32MB custom partition table dividing flash into dual OTA banks and a 12MB SPIFFS partition for character animations.
# 1. Enter firmware directory cd kinpod/firmware # 2. Build binaries with ESP-IDF idf.py set-target esp32s3 idf.py build # 3. Flash to board on serial COM port (e.g. COM5 or /dev/ttyUSB0) idf.py -p COM5 flash monitor
USB SERIAL CONFIGURATION COMMANDS
The firmware exposes a live interactive serial command channel at 115200 baud over the native USB CDC port:
| Serial Command | Arguments | Description |
|---|---|---|
| `SET_WS <url>` | wss://agent.thekinpod.com/ws/kinpod | Stores WebSocket URL in NVS and immediately reconnects. |
| `SET_WIFI <ssid> <pass>` | MyNetwork MyPassword | Stores Wi-Fi credentials in encrypted NVS partition. |
| `GET_CONFIG` | None | Returns currently configured SSID and WebSocket URL. |
| `PAIR` | None | Displays the 4-digit pairing keypad on the AMOLED display. |
Hacker Bill of Materials (BOM) & 3D Mount
KinPod is 100% buildable using commercially available off-the-shelf components. Zero custom silicon, zero proprietary connectors.
| Component | Part Specification | Vendor / Source |
|---|---|---|
| Core MCU & AMOLED | Waveshare ESP32-S3 Touch AMOLED 2.06" | Waveshare / AliExpress / Amazon (~$34 USD) |
| Battery Cell | 3.7V 500mAh–1000mAh LiPo Cell (JST 1.25mm) | Adafruit / MakerFocus (~$6 USD) |
| Chest Magnets | Neodymium N52 Disc Magnets (10mm × 2mm, 4×) | K&J Magnetics / Amazon (~$5 USD) |
| 3D Printable Chassis | PETG / Tough Resin, 0.16mm layer height | hardware/cad/ |
Have improvements or questions?
KinPod is community-driven. File an issue, submit a PR, or join the discussion on GitHub.