CrewAI
What it is
CrewAI is an open-source framework for orchestrating autonomous AI agents and building multi-agent systems. Its own documentation describes it as the leading open-source framework for orchestrating autonomous AI agents and building complex workflows. Instead of one agent doing everything, you build a crew: a team of agents, each with a role, a goal, and tools, working together on a set of tasks.
CrewAI combines two ideas. Crews are the units of work: teams of agents that collaborate to solve a task. Flows are the backbone: structured, event-driven workflows that manage state, control execution, and decide what happens next. The docs recommend starting with a Flow for any production application, and using a Crew inside a Flow step when a task needs a team of agents and autonomy.
Each agent is defined by a role, a goal, and a backstory. The backstory gives the agent context and personality, which shapes how it approaches its work. Agents can use tools, keep memory of interactions, delegate tasks when allowed, and produce structured outputs validated with Pydantic.
Who made it
CrewAI is made by CrewAI, Inc. The framework is open source on GitHub, and the documentation is at docs.crewai.com.
- Official docs: https://docs.crewai.com
- GitHub: https://github.com/crewAIInc/crewAI
What it does
CrewAI is used for research, content creation, data analysis, customer support triage, lead research, and other work that benefits from splitting a job between specialists. A typical crew might have a researcher who gathers information, an analyst who checks it, and a writer who turns it into a report. Each agent works on its own tasks, and the crew combines the results.
Crews can run in two main ways. In a sequential process, tasks run one after another in a set order. In a hierarchical process, a manager agent coordinates the crew, delegates tasks, and checks outcomes before moving on. A hierarchical crew needs a manager language model, which you set with manager_llm.
How it works
You define agents, tasks, and a crew. An agent has a role, such as researcher, a goal, such as find recent funding news, and a backstory. A task describes what to do, what the expected output looks like, and which agent should do it. The crew brings the agents and tasks together and chooses a process: sequential by default, or hierarchical with a manager.
When you kick off a crew, each agent works through its tasks, using its tools and memory. Agents can delegate to each other when delegation is allowed. The crew returns a CrewOutput object that includes the final task output, token usage, and the individual task outputs, so you can see what each agent produced.
New projects created with crewai create crew <name> use JSONC configuration: a crew.jsonc file for crew settings and tasks, plus one file per agent in an agents/ folder. Older projects use YAML files and Python decorators such as @CrewBase, @agent, @task, and @crew. Both patterns are documented, and you can also define a crew directly in code without configuration files.
How to start
- Install CrewAI. The docs recommend installing with
uv; check the Installation page at docs.crewai.com for the current command. - Set your model API key as an environment variable, for example
OPENAI_API_KEY. Each agent can use its own model, or fall back to the crew default. - Create a project with
crewai create crew <name>, which scaffolds the project layout for you. - Edit the generated agent files in
agents/to set each agent’s role, goal, and backstory, and editcrew.jsoncto list the agents and tasks. - Give each agent tools. Start with read-only tools, such as web search, before adding tools that write or send anything.
- Run the crew from the quickstart example in the docs, read the output, and check each agent’s contribution before you change the process to hierarchical or add a manager.
- When the crew works, wrap it in a Flow so you can control state, add branching, and handle API requests or scheduled runs.
Read the Introduction, Installation, and Quickstart pages in the official docs first — they show the current project layout, which changed with the JSONC format.
Who it is for
CrewAI is for developers and teams who want to model work as a team of specialists rather than a single agent. It suits research, analysis, and content workflows, and teams that want role-based agents with clear goals and outputs. It is a good fit if you like the idea of a researcher, an analyst, and a writer working together, and you want the framework to handle collaboration, memory, and output. It needs Python and some coding; it is not a no-code builder.
Watch out for
Costs add up: every agent call uses model tokens, and a hierarchical crew adds a manager’s calls on top. Set a maximum number of iterations — the default is 20 per agent — and test with a small task before running a large crew. Delegation is off by default, so turn it on only when you want an agent to hand work to another. Finally, CrewAI’s configuration format has changed: new projects use JSONC, older tutorials use YAML. Check which format your installed version expects before copying an example.
Source
- Official docs: https://docs.crewai.com
- GitHub: https://github.com/crewAIInc/crewAI