OpenAgentFlow

OpenAgentFlow Logo

OpenAgentFlow Documentation

What OpenAPI is for REST APIs, OpenAgentFlow (.oaf) is for AI agent workflows.

OpenAgentFlow Demo

Welcome to the OpenAgentFlow documentation. OpenAgentFlow is an open, portable specification and compiler for defining executable multi-agent AI workflows using a clean, human-readable text format.


Getting Started

New to OpenAgentFlow? Start here:


Core Concepts

Understand how OpenAgentFlow works under the hood:


Language Reference


Components

Deep dives into each compiler module:


CLI


Guides


Examples


API Reference


Specifications

The formal language specifications live in the spec/ directory:

Document Description
SPEC.md Core language syntax and constructs
GRAMMAR.md Formal EBNF grammar
SEMANTICS.md 3-phase semantic validation rules
IR.md Intermediate Representation schema

Project Status

Phase Status
Phase 1 — Specification ✅ Complete
Phase 2 — Compiler MVP ✅ Complete
Phase 3 — Runtime Integration ✅ Complete
Phase 4 — State Initialization ✅ Complete
Phase 4.5 — Multi-Provider, Auth & Tooling ✅ Complete
Phase 5 — Additional Adapters 🔲 Planned
Phase 6 — Developer Tooling 🔲 Planned

OpenAgentFlow is open-source under the MIT License.