Get started with CrewAI - Install, configure, and build your first AI crew
Python >=3.10 and <3.14
. Here’s how to check your version:uv
as its dependency management and package handling tool. It simplifies project setup and execution, offering a seamless experience.
If you haven’t installed uv
yet, follow step 1 to quickly get it set up on your system, else you can skip to step 2.
Install uv
curl
to download the script and execute it with sh
:
curl
, you can use wget
:
irm
to download the script and iex
to execute it:
Install CrewAI 🚀
crewai
CLI:
PATH
warning, run this command to update your shell:chroma-hnswlib==0.7.6
build error (fatal error C1083: Cannot open include file: 'float.h'
) on Windows, install Visual Studio Build Tools with Desktop development with C++.crewai
is installed, run:
crewai
, run:
YAML
template scaffolding for a structured approach to defining agents and tasks. Here’s how to get started:
Generate Project Scaffolding
crewai
CLI command:
Customize Your Project
File | Purpose |
---|---|
agents.yaml | Define your AI agents and their roles |
tasks.yaml | Set up agent tasks and workflows |
.env | Store API keys and environment variables |
main.py | Project entry point and execution flow |
crew.py | Crew orchestration and coordination |
tools/ | Directory for custom agent tools |
knowledge/ | Directory for knowledge base |
agents.yaml
and tasks.yaml
to define your crew’s behavior.
.env
.
Run your Crew