# CrewAI

> A free Python kit. A crew of agents, each with a role, shares one job.

**Field:** Software Development  
**Category:** AI Engineering  
**Also known as:** Crew AI, CrewAI Framework, CrewAI Flows

## Think of it like

It is like a school project team. One child reads, one writes, and one draws.

## Definition

CrewAI is an open-source Python framework for teams of AI agents that work together. Each agent gets a role, a goal and a backstory, which shape how it acts. You give tasks to agents, and a crew runs them one after another or under a manager. Flows sit around crews and control the steps, the saved state and the branches. It suits jobs that split well into parts, like research and then writing.

## Example

Lucy makes a crew of two. A researcher agent finds facts about e-bikes. Then a writer agent turns them into a blog post.

## Example code

```python
from crewai import Agent

researcher = Agent(
    role="Senior Data Researcher",
    goal="Uncover new developments in electric bikes",
    backstory="You find the most relevant information and present it clearly.",
)
```

Each agent must have a role, a goal and a backstory.

## Why it matters

Splitting a big job between agents with clear roles is easy to read and to change. Each agent can be tested on its own part.

## Common mistake

Making a crew for a job one agent can do. Each extra agent adds model calls, cost and more places for things to go wrong.

## Three principles

- **Roles.** Role, goal and backstory.
- **Tasks and crews.** Work handed out to agents.
- **Flows.** Steps and state around crews.

## Related terms

- [LLM Framework](https://learn.benibix.com/term/development/llm-framework)
- [OpenAI Agents SDK](https://learn.benibix.com/term/development/openai-agents-sdk)
- [LangGraph](https://learn.benibix.com/term/development/langgraph)
- [Multi-Agent System](https://learn.benibix.com/term/ai/multi-agent-system)
- [AI Agent](https://learn.benibix.com/term/ai/ai-agent)
- [Python](https://learn.benibix.com/term/development/python)
- [Open Source Software](https://learn.benibix.com/term/development/open-source)

![A table of five frameworks, with columns for framework, language and what each is built around. Vercel AI SDK, TypeScript, streaming chat screens. OpenAI Agents SDK, Python and TypeScript, agents handing work to each other. CrewAI, Python, a crew of agents, each with a role. Pydantic AI, Python, answers as typed, checked data. DSPy, Python, tuning prompts from examples. A strip along the bottom says all of them call model APIs underneath.](https://learn.benibix.com/diagrams/dev6-agent-frameworks.svg)

---

Source: https://learn.benibix.com/term/development/crewai
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-20
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
