Step 1: Install VS Code
To begin working with Crew AI, you'll need a code editor. VS Code is a popular and versatile option that is available for free
. Download and install VS Code to set up your development environment.
Step 2: Set Up Your Working Directory
Create a new folder on your computer to serve as your working directory. This folder will house all the files related to your Crew AI project.
Step 3: Clone the Crew AI Examples
To get started quickly, clone the Crew AI examples repository from GitHub
. This repository provides a set of pre-built examples that you can use as a starting point for your projects.
- Install Git: If you don't have Git installed, download and install it from the official website.
-
Clone the repository: Open your terminal or command Prompt and navigate to your working directory. Then, run the following command:
git clone https://github.com/joaomdmoura/CrewAI-examples
This command will download the Crew AI examples repository to your local machine.
Step 4: Configure Your Environment
Navigate to the trip_planner
folder within the cloned repository. Locate the .env
file and rename it to .env
if it is not already named correctly. Open the .env
file and add your API keys for Serper, Browserless, and OpenAI. This configuration allows your AI agents to access the necessary resources for performing their tasks.

Step 5: Install Dependencies
To ensure that your Crew AI project runs smoothly, you need to install the necessary dependencies
. Use the following command in your terminal to install the required packages:
poetry install --no-root
This command will install all the packages listed in the Poetry.lock
file, ensuring that your project has access to the correct versions of all dependencies.
Step 6: Run the Script
With your environment configured and dependencies installed, you can now run the Crew AI script. Use the following command:
poetry run python main.py
This command will execute the main.py
file, initiating the Crew AI workflow. You'll be prompted to provide input such as your location, city preferences, date range, and interests. The AI agents will then collaborate to generate a personalized travel itinerary.