CrewAI

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

Framework
PyPI
v1.15.22
59,107 stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
91 /100 Excellent
Development Activity 100
Maintenance 100
Community 76
Maturity 48
Momentum 40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation. How we score it →
81 /100 Excellent
Architecture 84
Code Quality 82
Innovation 86
Learning Curve 72

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 6 apps in this directory

Python
67%
Apache 2.0

Agent Control

AI Agents

314

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
74
Repo Health
71
Technical
67
Dependency
Built with
Python 67%
TypeScript 32%
Updated 4 days ago
Go
46%
Apache 2.0

e2a

AI Agents · Automation

191

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
79
Repo Health
80
Technical
72
Dependency
Built with
Go 46%
TypeScript 27%
Python 13%
Updated 4 days ago
Python
82%
Apache 2.0

headroom

AI Development · Developer Tools

73,966

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
85
Repo Health
86
Technical
69
Dependency
Built with
Python 82%
Rust 12%
Updated 5 days ago
Python
49%
Other

Arize Phoenix

Analytics · Devops · Monitoring

11,641

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
67
Dependency
Built with
Python 49%
TypeScript 42%
Updated 4 days ago
TypeScript
97%
MIT

Promptfoo

AI Development

25,506

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
TypeScript 97%
Updated 4 days ago
Rust
79%
Apache 2.0

TensorZero

Ab Testing Experimentation · AI Development · Monitoring

11,717

TensorZero unifies the LLM gateway, observability, evaluation, optimization, and experimentation stack behind a single OpenAI-compatible API, built in Rust for sub-millisecond p99 latency.

View details
53
Repo Health
87
Technical
69
Dependency
Built with
Rust 79%
TypeScript 15%
Updated 3 months ago

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