CrewAI orchestrates role-based AI agent teams and Flow workflows in Python for automations that mix autonomy with explicit control.
Overview
CrewAI is a Python framework for building multi-agent automations with two complementary models. Crews group autonomous agents with roles, goals, tools, and tasks that collaborate on complex work. Flows add event-driven workflows with branching, state, and deterministic Python steps wrapped around agent calls.
Developers scaffold projects with the CrewAI CLI, define agents and tasks in JSONC files, supply model keys through environment variables, and run crews sequentially or with a hierarchical manager process. Flows combine decorators for listen, start, and router logic so production pipelines can mix LLM calls, crews, and plain code.
The stack supports tools, memory, knowledge files, checkpointing, async execution, MCP and A2A integrations, structured outputs, and human-in-the-loop review. Documentation, community courses, example repositories, and optional skills teach coding agents how to scaffold CrewAI projects correctly.
CrewAI also markets an enterprise AMP control plane for tracing, governance, and managed deployment, separate from the open-source library. Telemetry is anonymous by default and can be disabled with documented environment variables.
Key features
- Role-based agent crews
- Event-driven Flow workflows
- CLI project scaffolding and run
- Sequential and hierarchical processes
- Tool, memory, and knowledge support
- Structured outputs and human input
- MCP and A2A agent integration
- LLM provider configuration options
Use cases
- Multi-step research and report generation
- Trip planning and stock analysis demos
- Production automations with branching logic
- Teams of specialized agents per task
- Wrapping agent work in deterministic Python