HiClaw System Architecture

HiClaw is an all-in-one system that bundles an AI Gateway, Matrix messaging server, object storage, and an agent framework into a single deployable unit. This page explains how every component fits together.

Architecture Overview

The HiClaw architecture follows a layered design where a human interacts through an IM client, and the Manager Agent orchestrates Worker Agents behind a unified gateway.

Human (Browser / Mobile)
    |  (Element Web / Any Matrix Client)
    v
Higress AI Gateway (port 18080)
├── Tuwunel Matrix Server  (6167)
├── MinIO Object Storage   (9000)
├── Element Web            (8088)
└── LLM + MCP Server Routing

Manager Agent (OpenClaw)
├── Creates Workers
├── Manages Tasks
└── Monitors Health

Worker Agents (OpenClaw)
├── Pull config from MinIO
├── Communicate via Matrix
└── Execute tasks

Higress AI Gateway

The Higress all-in-one gateway is the single entry point for all HiClaw traffic. It handles:

This design is central to the HiClaw security model — all sensitive credentials live inside the gateway, never in worker containers.

Tuwunel Matrix Server

HiClaw uses Tuwunel (a conduwuit fork) as its Matrix homeserver. Matrix provides:

The Manager and Workers communicate exclusively through Matrix rooms, ensuring full transparency. Every message is visible to the human admin.

MinIO File Storage

HiClaw uses MinIO as a centralized HTTP file system for agent workspaces:

OpenClaw Agent Framework

Both the Manager and Worker agents run on OpenClaw, a fork of an open-source agent framework enhanced with:

Complete Tech Stack

ComponentTechnologyPurpose
AI GatewayHigress (all-in-one)LLM proxy, MCP hosting, auth, routing
Matrix ServerTuwunel (conduwuit fork)Instant messaging between agents and humans
Matrix ClientElement WebBrowser-based IM interface
File StorageMinIO + mc mirrorCentralized HTTP file system with real-time sync
Agent FrameworkOpenClaw (fork)Agent runtime with Matrix plugin, skills, heartbeat
MCP ToolsmcporterWorker CLI for calling MCP Server tools
RuntimeDocker / PodmanContainer orchestration for Manager and Workers
Base OSUbuntu 22.04From Higress all-in-one base image
Node.js22.xRuntime for OpenClaw and AI CLI tools
Build / TestMakefile + BashUnified build interface; GitHub Actions CI/CD
Supported LLM Providers: Alibaba Cloud Bailian (default), OpenAI-compatible (DeepSeek, Claude, etc.), and Qwen models — switchable at runtime via the model-switch skill.