C4 model elements
Understand C4 model people, software systems, containers, and components, including their hierarchy, syntax, metadata, and examples.
Use C4 AI Instructions with an external AI assistant, then copy its generated AAL into a new C4 Architecture project. Inspect diagnostics and explicitly Save.
Person
A human actor who interacts with the system. People exist at the top level and appear in context views.
person <id> "<name>"person Customer "Customer"
Software System
A high-level software system or application. Systems contain containers. External systems may carry a System-level semantic type (e.g. crm, identity, coresystem).
system <id> "<name>" [external <semanticType>]system Okta "Okta" external identity
Container
A deployable unit within a system — an app, API, database, or service. Containers belong to systems and can contain components. May carry a Container-level semantic type.
container <id> "<name>" [<semanticType>]container API "Application API" api
Component
A modular unit within a container — a controller, service, repository, adapter, or other architectural responsibility. Components belong to containers. May carry a Component-level semantic type.
component <id> "<name>" [<semanticType>]component PolicyRepository "Policy Repository" repository