Skip to main content

crewai-recallic: Recallic memory tools for CrewAI

Website: recallic.com

Long-term memory for CrewAI agents, backed by a self-hosted Recallic server. It gives an agent two tools: one to look up what a user told it before, and one to save what the user tells it now.

  • No LLM calls for memory. Storing and searching use Recallic's local models.
  • Across crews and runs. A fact saved in one crew run can be recalled in any later run with the same user.
  • Honest. When no stored memory answers the question, the tool tells the agent there is no record and not to guess, instead of handing it near-misses.
  • Your data stays on your server, separated per user and per agent.

This integration is Apache-2.0. The Recallic server is source-available.

Install

pip install crewai-recallic

Run Recallic (quickstart) and create a key with role service, which acts for each of your users (or use a user's own key and leave user_id out):

python -m backend.tools.keys create --user my-crewai-app --role service

Usage

import os

from crewai import Agent, Crew, Task
from crewai_recallic import recallic_tools

tools = recallic_tools(api_key=os.environ["RECALLIC_SERVICE_KEY"], user_id="alice",
                       base_url="http://localhost:8000")        # recall_memory(query), save_memory(fact)

assistant = Agent(
    role="Personal assistant",
    goal="Help Alice, using what she told you before",
    backstory="Before answering anything about Alice's life, look it up with recall_memory. "
              "When she tells you something about herself, save it with save_memory.",
    tools=tools,
    llm="openai/gpt-5-mini",
)

task = Task(description="Alice says: {message}", expected_output="A short, friendly reply.", agent=assistant)
crew = Crew(agents=[assistant], tasks=[task])

crew.kickoff(inputs={"message": "I moved to Pune in March."})
crew.kickoff(inputs={"message": "Which city did I move to?"})       # "Pune."
crew.kickoff(inputs={"message": "What is my brother's name?"})      # says it has no record

You can also make the tools one at a time:

from crewai_recallic import RecallicRecallTool, RecallicSaveTool

recall = RecallicRecallTool(api_key=key, user_id="alice", mode="cautious")
save = RecallicSaveTool(api_key=key, user_id="alice", memory_type="shared")
print(recall.run(query="Where do I work?"))
Parameter Default What it does
api_key required A Recallic key. Role service acts for the user_id you pass; a user key acts for itself.
user_id None Whose memory the tools read and write. Leave out with a user key.
base_url http://localhost:8000 Your Recallic server.
agent_id crewai Recallic agent id; each agent reads back what it wrote (and what any agent shared).
mode server's recall.mode Recall only. cautious declines more (more "I don't know"); helpful answers more counting, ordering and "how long between" questions.
limit 5 Recall only. Memories given to the agent per lookup.
memory_type private Save only (RecallicSaveTool). shared makes the fact readable by all of the user's agents.
timeout 30 Seconds per request to Recallic.

Notes

  • One user per tool instance. CrewAI does not pass per-run context (such as the current user) to a tool, so the user is fixed when the tool is made. In an app with many users, make the tools for each request: recallic_tools(api_key=key, user_id=request_user), and build the agent and crew with them.
  • Why tools and not CrewAI's memory setting. CrewAI's built-in memory hands its storage records it has already embedded and scoped with its own LLM. Recallic does the storing, matching and the "does anything answer this?" check itself without an LLM, so it fits as tools the agent calls.
  • What the agent gets back from recall_memory is the memories, newest facts first (with the date each was said), or a note that there is no record. format_memories(recall_result) gives the same text for any Recallic recall result.
  • Tool results are not cached by CrewAI, because memory changes during a run. Pass cache_function= to change that.
  • Needs Recallic server 0.2.5 or newer. Tested with crewai 1.15.

Tests

Against a running Recallic: RECALLIC_URL=http://127.0.0.1:8000 RECALLIC_SERVICE_KEY=rx_... pytest tests. They include real CrewAI Agent/Task/Crew runs with a scripted LLM.

Licence: Apache-2.0.

Metadata

Release files for crewai-recallic 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for crewai-recallic 0.1.0
File Size Uploaded Provenance Actions
crewai_recallic-0.1.0.tar.gz 10.9 kB Without provenance Details for crewai_recallic-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for crewai-recallic 0.1.0
File Interpreter ABI Platform Actions
crewai_recallic-0.1.0-py3-none-any.whl Python 3 none any Details for crewai_recallic-0.1.0-py3-none-any.whl

Total release size: 21.2 kB

Release files / crewai_recallic-0.1.0.tar.gz

Download URL crewai_recallic-0.1.0.tar.gz
Size 10.9 kB
Tags Source
SHA-256 checksum
How to use checksums
fc654758967d95dca5b510d58d16b45315feffc33bf8f424c319c16ff14de03d
BLAKE2b-256 checksum
How to use checksums
c61375ff9961dc0314eb7db25888b183390cb30f03521a9f388b0a8f7feee0df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Release files / crewai_recallic-0.1.0-py3-none-any.whl

Download URL crewai_recallic-0.1.0-py3-none-any.whl
Size 10.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3c5edda42420d89bb007683077013a305cd041fbf5d4b175a0bc4df68d1757db
BLAKE2b-256 checksum
How to use checksums
d349ea50b9190901aeb1578f80e934521c755069a3af78351a3c053abdc40376
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.10

Security for crewai-recallic 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page