# zdstudios/aios architecture

> Architecture diagram of the GitHub repository zdstudios/aios, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/zdstudios/aios
- Repository: https://github.com/zdstudios/aios
- Video tour (about a minute): https://gitdiagram.com/zdstudios/aios/video

## Overview

The AI OS combines independent agent projects behind a shared setup command and web Control Room. The principal workflow is: configure and wire the agents, start the services, then use the Hub to chat, inspect health, and share interactive UI. The README documents the Hub and its integrations, but the provided tree does not include Hub implementation files; those relationships are therefore cited to the README rather than inferred from source. Optional upstream services are shown separately.

Main entry points: [`aios.py`](https://github.com/zdstudios/aios/blob/main/aios.py) (Setup and wiring), [`crewAI-main/crewAI-main/lib/crewai/src/crewai/knowledge/storage/knowledge_storage.py`](https://github.com/zdstudios/aios/blob/main/crewAI-main/crewAI-main/lib/crewai/src/crewai/knowledge/storage/knowledge_storage.py) (CrewAI crews), [`openclaw-main/openclaw-main/apps/ios/Sources/Voice/TalkModeManager.swift`](https://github.com/zdstudios/aios/blob/main/openclaw-main/openclaw-main/apps/ios/Sources/Voice/TalkModeManager.swift) (openclaw gateway), [`hermes-agent-main/hermes-agent-main/hermes_cli/console_engine.py`](https://github.com/zdstudios/aios/blob/main/hermes-agent-main/hermes-agent-main/hermes_cli/console_engine.py) (Hermes agent)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_control["Control and setup"]
  node_control_script["AIOS control<br/>[aios.py]"]
  node_setup["Setup and wiring<br/>[aios.py]"]
  node_startup["Stack startup<br/>[aios.py]"]
end

subgraph group_hub["Control Room"]
  node_control_room["AIOS Hub"]
  node_chat["Unified chat"]
  node_health["Service health"]
  node_agent_tabs["Agent dashboards"]
  node_canvas["Shared Canvas"]
  node_generative_ui["Generative UI"]
end

subgraph group_agents["Agent services"]
  node_brain["Brain orchestrator"]
  node_crewai["CrewAI crews"]
  node_opencode["opencode coding"]
  node_hermes["Hermes agent<br/>[console_engine.py]"]
  node_openclaw["openclaw gateway"]
  node_claude_api["Claude Code API<br/>[claude_manager.py]"]
  node_other_agents["Other agent services"]
end

subgraph group_shared["Shared integrations"]
  node_openui["OpenUI standard"]
  node_shared_skills["LifeOS skills<br/>[InstallEngine.ts]"]
  node_fabric["Fabric patterns<br/>[main.go]"]
  node_caveman["Caveman mode<br/>[engine.go]"]
  node_ruflo["Ruflo tools"]
end

node_user(("User"))

node_user -->|"runs commands"| node_control_script
node_control_script -->|"runs setup"| node_setup
node_control_script -->|"starts stack"| node_startup
node_startup -->|"launches"| node_control_room
node_user -->|"opens dashboard"| node_control_room
node_control_room -->|"offers"| node_chat
node_chat -->|"routes chat"| node_brain
node_chat -->|"routes chat"| node_crewai
node_chat -->|"routes chat"| node_opencode
node_chat -->|"broadcasts chat"| node_other_agents
node_control_room -->|"shows status"| node_health
node_control_room -->|"embeds dashboards"| node_agent_tabs
node_control_room -->|"hosts widgets"| node_canvas
node_crewai -->|"posts widgets"| node_canvas
node_control_room -->|"renders UI"| node_generative_ui
node_openclaw -->|"renders natively"| node_generative_ui
node_setup -->|"mounts skills"| node_shared_skills
node_setup -->|"mounts context"| node_openui
node_setup -->|"wires integration"| node_fabric
node_setup -->|"wires integration"| node_caveman
node_setup -->|"wires integration"| node_ruflo
node_brain -.->|"connects agents"| node_hermes
node_brain -.->|"connects agents"| node_openclaw
node_brain -.->|"connects agents"| node_claude_api

click node_control_script "https://github.com/zdstudios/aios/blob/main/aios.py"
click node_setup "https://github.com/zdstudios/aios/blob/main/aios.py"
click node_startup "https://github.com/zdstudios/aios/blob/main/aios.py"
click node_crewai "https://github.com/zdstudios/aios/blob/main/crewAI-main/crewAI-main/lib/crewai/src/crewai/knowledge/storage/knowledge_storage.py"
click node_hermes "https://github.com/zdstudios/aios/blob/main/hermes-agent-main/hermes-agent-main/hermes_cli/console_engine.py"
click node_openclaw "https://github.com/zdstudios/aios/blob/main/openclaw-main/openclaw-main/apps/ios/Sources/Voice/TalkModeManager.swift"
click node_claude_api "https://github.com/zdstudios/aios/blob/main/claude-code-api-main/claude_code_api/core/claude_manager.py"
click node_shared_skills "https://github.com/zdstudios/aios/blob/main/LifeOS-main/LifeOS-main/LifeOS/Tools/InstallEngine.ts"
click node_fabric "https://github.com/zdstudios/aios/blob/main/fabric-main/cmd/fabric/main.go"
click node_caveman "https://github.com/zdstudios/aios/blob/main/caveman-main/engine/engine.go"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_control_script,node_setup,node_startup,node_user toneBlue
class node_control_room,node_chat,node_health,node_agent_tabs,node_canvas,node_generative_ui toneAmber
class node_brain,node_crewai,node_opencode,node_hermes,node_openclaw,node_claude_api,node_other_agents toneMint
class node_openui,node_shared_skills,node_fabric,node_caveman,node_ruflo toneRose
```

## Components

### Control and setup

- [AIOS control](https://github.com/zdstudios/aios/blob/main/aios.py): `aios.py`
- [Setup and wiring](https://github.com/zdstudios/aios/blob/main/aios.py): `aios.py`
- [Stack startup](https://github.com/zdstudios/aios/blob/main/aios.py): `aios.py`

### Control Room

- **AIOS Hub**
- **Unified chat**
- **Service health**
- **Agent dashboards**
- **Shared Canvas**
- **Generative UI**

### Agent services

- **Brain orchestrator**
- [CrewAI crews](https://github.com/zdstudios/aios/blob/main/crewAI-main/crewAI-main/lib/crewai/src/crewai/knowledge/storage/knowledge_storage.py): `crewAI-main/crewAI-main/lib/crewai/src/crewai/knowledge/storage/knowledge_storage.py`
- **opencode coding**
- [Hermes agent](https://github.com/zdstudios/aios/blob/main/hermes-agent-main/hermes-agent-main/hermes_cli/console_engine.py): `hermes-agent-main/hermes-agent-main/hermes_cli/console_engine.py`
- [openclaw gateway](https://github.com/zdstudios/aios/blob/main/openclaw-main/openclaw-main/apps/ios/Sources/Voice/TalkModeManager.swift): `openclaw-main/openclaw-main/apps/ios/Sources/Voice/TalkModeManager.swift`
- [Claude Code API](https://github.com/zdstudios/aios/blob/main/claude-code-api-main/claude_code_api/core/claude_manager.py): `claude-code-api-main/claude_code_api/core/claude_manager.py`
- **Other agent services**

### Shared integrations

- **OpenUI standard**
- [LifeOS skills](https://github.com/zdstudios/aios/blob/main/LifeOS-main/LifeOS-main/LifeOS/Tools/InstallEngine.ts): `LifeOS-main/LifeOS-main/LifeOS/Tools/InstallEngine.ts`
- [Fabric patterns](https://github.com/zdstudios/aios/blob/main/fabric-main/cmd/fabric/main.go): `fabric-main/cmd/fabric/main.go`
- [Caveman mode](https://github.com/zdstudios/aios/blob/main/caveman-main/engine/engine.go): `caveman-main/engine/engine.go`
- **Ruflo tools**

### Other components

- **User**

## Connections

- User → AIOS control: runs commands
- AIOS control → Setup and wiring: runs setup
- AIOS control → Stack startup: starts stack
- Stack startup → AIOS Hub: launches
- User → AIOS Hub: opens dashboard
- AIOS Hub → Unified chat: offers
- Unified chat → Brain orchestrator: routes chat
- Unified chat → CrewAI crews: routes chat
- Unified chat → opencode coding: routes chat
- Unified chat → Other agent services: broadcasts chat
- AIOS Hub → Service health: shows status
- AIOS Hub → Agent dashboards: embeds dashboards
- AIOS Hub → Shared Canvas: hosts widgets
- CrewAI crews → Shared Canvas: posts widgets
- AIOS Hub → Generative UI: renders UI
- openclaw gateway → Generative UI: renders natively
- Setup and wiring → LifeOS skills: mounts skills
- Setup and wiring → OpenUI standard: mounts context
- Setup and wiring → Fabric patterns: wires integration
- Setup and wiring → Caveman mode: wires integration
- Setup and wiring → Ruflo tools: wires integration
- Brain orchestrator → Hermes agent: connects agents
- Brain orchestrator → openclaw gateway: connects agents
- Brain orchestrator → Claude Code API: connects agents
