Video Tutorial
Watch this video tutorial for a step-by-step demonstration of the installation process:Text Tutorial
Python Version RequirementsCrewAI requires If you need to update Python, visit python.org/downloads
Python >=3.10 and <3.14. Here’s how to check your version:OpenAI SDK RequirementCrewAI 0.175.0 requires
openai >= 1.13.3. If you manage dependencies yourself, ensure your environment satisfies this constraint to avoid import/runtime issues.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.
1
Install uv
-
On macOS/Linux:
Use
curlto download the script and execute it withsh:If your system doesn’t havecurl, you can usewget: -
On Windows:
Use
irmto download the script andiexto execute it:If you run into any issues, refer to UV’s installation guide for more information.
2
Install CrewAI 🚀
-
Run the following command to install
crewaiCLI:If you encounter aPATHwarning, run this command to update your shell:If you encounter thechroma-hnswlib==0.7.6build error (fatal error C1083: Cannot open include file: 'float.h') on Windows, install Visual Studio Build Tools with Desktop development with C++. -
To verify that
crewaiis installed, run: -
You should see something like:
-
If you need to update
crewai, run:
Installation successful! You’re ready to create your first crew! 🎉
Creating a CrewAI Project
We recommend using theYAML template scaffolding for a structured approach to defining agents and tasks. Here’s how to get started:
1
Generate Project Scaffolding
-
Run the
crewaiCLI command: -
This creates a new project with the following structure:
2
Customize Your Project
-
Your project will contain these essential files:
File Purpose agents.yamlDefine your AI agents and their roles tasks.yamlSet up agent tasks and workflows .envStore API keys and environment variables main.pyProject entry point and execution flow crew.pyCrew orchestration and coordination tools/Directory for custom agent tools knowledge/Directory for knowledge base -
Start by editing
agents.yamlandtasks.yamlto define your crew’s behavior. -
Keep sensitive information like API keys in
.env.
3
Run your Crew
- Before you run your crew, make sure to run:
- If you need to install additional packages, use:
- To run your crew, execute the following command in the root of your project:
Enterprise Installation Options
For teams and organizations, CrewAI offers enterprise deployment options that eliminate setup complexity:
CrewAI AMP (SaaS)
- Zero installation required - just sign up for free at app.crewai.com
- Automatic updates and maintenance
- Managed infrastructure and scaling
- Build Crews with no Code
CrewAI Factory (Self-hosted)
- Containerized deployment for your infrastructure
- Supports any hyperscaler including on prem deployments
- Integration with your existing security systems
Explore Enterprise Options
Learn about CrewAI’s enterprise offerings and schedule a demo
