CrewAI

Multi-agent AI orchestration framework for role-playing autonomous agents

Framework
PyPI
v1.15.16
57,288stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
91/100Excellent
Development Activity100
Maintenance100
Community76
Maturity48
Momentum40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation.How we score it →
81/100Excellent
Architecture84
Code Quality82
Innovation86
Learning Curve72

CrewAI is a Python framework for building multi-agent AI systems from scratch, independent of LangChain or other agent frameworks. It offers two complementary abstractions: Crews, where role-playing autonomous agents (each with a goal, backstory, and set of tools) collaborate on tasks with configurable process orchestration (sequential or hierarchical); and Flows, an event-driven layer for precise, low-level control over execution order, state, and conditional branching between steps.

The framework owns the application’s structure once adopted — agents, tasks, tools, and crews are declared as first-class objects and the framework drives their execution, memory, and tool invocation. It ships built-in support for memory (short-term, long-term, entity), a large tool ecosystem via the separate crewai-tools package, MCP (Model Context Protocol) integration, and OpenTelemetry-based tracing. A companion CLI scaffolds new CrewAI projects.

What You Get

  • Agent/Task/Crew primitives for declaring role-playing agents that collaborate via sequential or hierarchical processes
  • Flow, an event-driven orchestration layer for explicit, conditional step-by-step control over multi-agent pipelines
  • Built-in short-term, long-term, and entity memory plus a RAG subsystem for retrieval-augmented agent context
  • MCP (Model Context Protocol) integration and a companion crewai-tools package with a broad prebuilt tool library
  • A CLI (crewai create) for scaffolding new projects, plus OpenTelemetry-based tracing for observability

Common Use Cases

  • Building multi-step research or content-generation pipelines where specialized agents (researcher, writer, reviewer) collaborate on one output
  • Automating business processes that benefit from role-based delegation, e.g. a ‘triage agent’ routing to specialist agents
  • Building agentic systems with explicit control flow via Flows when a strict sequential/conditional pipeline is required over free-form agent collaboration
  • Prototyping and shipping production agent workflows without depending on LangChain’s abstractions

Under The Hood

Architecture - The GitHub monorepo splits into lib/crewai (the core framework: agent/, crew.py, process.py, flow/, memory/, rag/, events/), lib/crewai-core, lib/crewai-cli, lib/crewai-tools, and lib/crewai-files, all versioned together; a Crew composes Agent and Task objects and drives execution via a configurable Process (sequential or hierarchical), while Flow provides an independent event-driven layer for explicit step ordering, sharing the same LLM/memory/RAG substrate. Tech Stack - Python 3.10-3.13, built on Pydantic v2 for schema validation, openai/instructor for LLM calls, chromadb for vector storage/RAG, and OpenTelemetry (opentelemetry-api/-sdk/-exporter-otlp-proto-http) for tracing; dependency management and linting use uv, ruff, and mypy across the workspace. Code Quality - The tests/ tree mirrors the source layout closely (agents, crew, flow-adjacent pipeline, memory, tracing, rag, mcp, security, cli) with vcrpy/pytest-recording cassettes for deterministic LLM-call testing, bandit for security linting, and pytest-randomly/pytest-xdist for robust parallel test execution — a notably mature test setup for an AI framework. API Design - Declaring an agent (Agent(role=..., goal=..., backstory=...)) and composing a Crew(agents=[...], tasks=[...]) is intentionally close to natural language, keeping onboarding low, while Flow requires learning a separate decorator-based (@start, @listen) control-flow vocabulary for teams that need more determinism than free-form crew collaboration provides.

Used by 5 apps in this directory

Python
66%
Apache 2.0

Agent Control

AI Agents

295

An open-source runtime control plane for AI agents — define safety guardrails once, apply them across agents built on LangChain, CrewAI, Google ADK, or AWS Strands, and update controls without redeploying code.

View details
79
Repo Health
71
Technical
70
Dependency
Built with
Python66%
TypeScript33%
Updated yesterday
Go
42%
Apache 2.0

e2a

AI Agents · Automation

182

Give your AI agents a real, authenticated email address — with SPF/DKIM-verified inbound, HMAC-signed delivery, WebSocket fan-out, and human-in-the-loop approval built in.

View details
78
Repo Health
80
Technical
76
Dependency
Built with
Go42%
TypeScript28%
Python15%
Updated today
Python
80%
Apache 2.0

headroom

AI Development · Developer Tools

66,835

Compress everything your AI agent reads — tool outputs, logs, RAG chunks, and files — before it reaches the LLM, achieving 60–95% fewer tokens with the same answers.

View details
84
Repo Health
86
Technical
73
Dependency
Built with
Python80%
Rust14%
Updated today
Python
47%
Other

Arize Phoenix

Devops · Analytics · Monitoring

11,105

Open-source AI observability platform for tracing, evaluating, and debugging LLM applications with built-in intelligence and MCP support.

View details
90
Repo Health
88
Technical
68
Dependency
Built with
Python47%
TypeScript41%
Updated today
TypeScript
97%
MIT

Promptfoo

AI Development

24,362

An open-source CLI and library for evaluating and red-teaming LLM applications — replace trial-and-error prompt engineering with systematic evals, vulnerability scanning, and CI/CD integration.

View details
90
Repo Health
73
Technical
68
Dependency
Built with
TypeScript97%
Updated yesterday

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers

Search