CrewAICrewAI 1.15 · Python 3.10 to 3.13
0%
1
Curious builder0 XP earned · 300 to level 2
0 daysFinish a lesson to begin
Badge collection0 of 6 unlocked
32 small wins to finish your pathNext lesson

Installation and setup

CrewAI installs with pip as one package. A hosted model needs a key, and some providers need one more package; the model you write needs neither.

crewai 1.15.22

The crewai package brings the agent, task, crew and flow classes, and OpenAI's SDK, which CrewAI also uses to reach OpenRouter. Other providers, such as Anthropic and Gemini, need one more package.

pip install "crewai==1.15.22"

Check which version Python finds:

Example
from importlib.metadata import version

print(version("crewai"))

CrewAI also ships a crewai command that generates a project folder of YAML files and classes. Plain Python files are used below, so every lesson is one script you can run; the generated layout is the same pieces in a different shape.

What CrewAI sends by default

CrewAI collects anonymous usage data, such as agent roles and tool names, and sends it to its own servers. Setting CREWAI_DISABLE_TELEMETRY to true turns that off. Two more variables keep a run offline: CREWAI_TRACING_ENABLED=false declines the trace upload a first run offers, and CREWAI_DISABLE_VERSION_CHECK=true stops the check against PyPI that a verbose run makes. The model you write in lesson 3 sets all three.

A hosted model from a free providerOptional

Every lesson runs on the stand-in model from lesson 3. To use a hosted model instead, set its key as an environment variable and, for some providers, install one more package. Lesson 27 makes the switch with LLM.

ProviderKeyVariableExtra package and model string
OpenRouterFree models end in :free, openrouter.ai/keysOPENROUTER_API_KEYnone, "openrouter/google/gemma-4-31b-it:free"
GeminiFree, aistudio.google.com/apikeyGEMINI_API_KEYcrewai[google-genai], "gemini/gemini-3.6-flash"
GroqFree, console.groq.com/keysGROQ_API_KEYcrewai[litellm], "groq/qwen/qwen3.6-27b"
export OPENROUTER_API_KEY=sk-or-...
Try it yourself
  • Run pip show crewai and find openai and pydantic in its Requires line.

Little by little, you're building something great.