Skip to main content

CrewAI + Memanto

CrewAI Give your CrewAI agents persistent, cross-session memory powered by Memanto using the official crewai-memanto package. By default, CrewAI agents lose context when a crew run ends. With Memanto, agents can store facts, decisions, and preferences � and recall them in future runs.
Important: We recommend explicitly setting memory=False on your CrewAI Crew objects. This prevents CrewAI from auto-injecting its own temporary LanceDB memory tools, which can confuse agents when mixed with Memanto’s persistent memory tools.

How It Works

Each agent in your crew gets access to three tools: one to store memories, one to search them, and one to get a synthesized answer directly from memory. Memanto handles the semantic layer � no vector DB setup required.

Prerequisites

Install

Quick Start

The crewai-memanto package provides pre-built tools that wrap Memanto’s SDK. You don’t need to make HTTP requests manually.

Available Tools

The create_memanto_tools function returns a dictionary containing these pre-built CrewAI tools:

remember (MemantoRememberTool)

Allows agents to store a piece of information in long-term memory.
  • Smart Categorization: The tool schema has definitions for all 13 Memanto memory types (e.g., fact, preference, observation) baked directly into the prompt. The LLM intrinsically understands how to categorize what it discovers without you needing to explicitly define the types in your CrewAI Task description.
  • Confidence Scoring: The agent is forced to actively evaluate its certainty on every memory it stores, assigning a mandatory confidence score between 0.0 (unverified) and 1.0 (objective fact).
  • Capacity: Agents can store up to 10,000 characters per memory block.

recall (MemantoRecallTool)

Allows agents to search long-term memory for relevant information using semantic search. Best used when the agent needs raw memory items to reason over.

answer (MemantoAnswerTool)

Uses Memanto’s built-in RAG to synthesize a response directly from stored memories � no extra LLM call needed from your agent.
Tip: Use answer when the agent needs a ready-to-use response, such as for a final task output or a direct reply to a user, and use recall when they just need the raw data.

Persistent Memory Across Runs

Because memories live in Memanto (not in-process), they persist between separate crew runs. Additionally, the integration handles all backend infrastructure automatically � you never need to manually provision databases or namespaces; the integration auto-creates the required secure Moorcheh namespaces the moment you initialize MemantoSetup.
No extra configuration needed � the agent_id ties memories together across runs.

Next Steps