CodeDocs Vault

OpenClaw Architecture Documentation

A comprehensive guide to the internals of the OpenClaw codebase.

Documents

Document Description
Tech Stack Languages, frameworks, key dependencies, and rationale
Architecture Core components, responsibilities, data flow, and interactions
Entry Points & Execution Flow Where execution starts, main code paths, state transitions
The Agentic Loop Deep dive into the core AI agent execution cycle
Design Patterns Patterns used, notable tradeoffs, clever implementation details
Key Files Map Essential files, responsibilities, and important prompts
Memory System How persistent memory works — storage, embeddings, hybrid search, QMD
Context Management Session persistence, history limiting, compaction, transcript repair
Autonomous Behavior Heartbeats, cron jobs, webhooks, and proactive agent triggers