CrewAI Memory: Persistent Recall Across Executions
Intermediate · 30 minutes · 5 tasks, checked automatically · 100 points
In this lab you will enable CrewAI's built-in memory system so that a crew retains knowledge from one Python run and can recall it in a completely separate second run. You will configure short-term, long-term, and entity memory, run the crew twice with different prompts, and verify that the second run demonstrates recall of facts established in the first. All inference runs locally on qwen2.5:3b — no external API keys required.
What you’ll learn
- Install CrewAI and configure it to use a local qwen2.5:3b model via the OpenAI-compatible endpoint
- Enable short-term, long-term, and entity memory on a Crew so facts persist to disk between Python processes
- Prove cross-execution recall by running the crew twice and confirming the second run references knowledge stored in the first
How this lab works
- Start the lab: One click starts a sandbox with a local model and the agent’s toolbox: no API key and no token bill.
- Work through 5 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work inspects the agent, its config and its output, and says what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Runs: Locally, against a model on your computer: no API key, no tokens
- Model: qwen2.5:3b
- Open source: github.com/crewAIInc/crewAI
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop (or Podman / Rancher Desktop) installed and running
- A model sandbox started in the Agent Playground
Topics: crewai, memory, long-term-memory, sqlite, persistence, agents, qwen2.5, local-llm
Create a free account to start this lab.
Keep going
- Install, Inspect, and Disable an OpenClaw Plugin from ClawHub
- OpenClaw Message Queue Channel: Agent-Powered Request/Reply
- Shape Agent Behaviour with SOUL.md, USER.md and AGENTS.md
- Hermes Session Memory: Full-Text Search and Fact Recall
- Hierarchical CrewAI: Manager Agent Delegating to Specialists
- Human-in-the-Loop: Interrupt Before a Destructive Step