What it is used for

CrewAI suits work that is too layered for a single agent acting alone. Its official documentation gives complex research as an example, where a Flow manages the state of the process while a Crew performs the research itself. Another documented pattern is an application backend: the Flow handles incoming requests, a Crew generates the content, and the Flow saves the result to a database.

For simple automation, the documentation says a single Flow with ordinary coding tasks is enough, with no Crew involved at all. CrewAI is therefore not only about having many agents. It lets builders choose, step by step, where plain workflow control is sufficient and where a step genuinely needs a team of agents thinking and collaborating on their own.

How to use it

CrewAI is a tool for developers rather than end users, and its projects are written in Python. Installation uses a package tool called uv. A create command then scaffolds a new project: a crew.jsonc file holds the team setup and task order, while each agent gets its own file in the agents folder describing its role, goal, backstory, and tools.

The access key for the language model, usually called an API key, belongs in a .env file so it stays out of the code. When the project runs through the crewai run command, the tool asks for any placeholder values that are still missing. A Crew can also be started directly from code with the kickoff method, which begins execution following the process defined for it.

Practitioner level

At the practitioner level, the first real choice is how a Crew works through its tasks. A sequential process runs tasks one after another in a straight line. A hierarchical process appoints a manager agent that coordinates the team, delegates work, and validates outcomes before moving on, and it requires a dedicated manager language model or a custom manager agent.

Other features become relevant at this level. Memory lets a Crew store short term, long term, and entity memories from its executions. Planning makes the Crew draft a plan for its tasks before starting work. Checkpointing saves the crew state after key events, so a long run that gets interrupted can resume from the last saved point instead of starting over.

Expert level

At the expert level, attention shifts to Flows as the backbone of the whole application. Developers mark the entry points of a flow with the @start decorator and make later steps listen for the output of earlier ones with @listen. This event driven pattern supports conditional logic, loops, and branching, while the flow state persists data across steps and across separate executions.

Crew results arrive in a structured output object that can be read as raw text, as JSON, or as a Pydantic data model, together with a summary of token usage. Execution can also run asynchronously, meaning the surrounding program does not have to wait for one Crew to finish before doing other work, and output can be streamed for live monitoring.

Limits and risks

CrewAI gives agents freedom to make their own decisions, and that freedom means results can vary between runs and still need human review. Every agent step also calls a paid language model, so cost and running time grow with the number of agents, tasks, and exchanges inside the team.

The remaining limits are practical. Using CrewAI well requires Python programming skills and carefully designed roles and tasks, because an agent team is only as good as the division of labour it is given. Its documentation is also still moving: new projects use JSON based files, while the older Python and YAML pattern remains supported, so examples from different sources may not look alike.