CrewAI integration for the Dakera AI memory platform
Project description
crewai-dakera
Persistent, semantically-recalled memory for CrewAI agents, powered by Dakera.
Your CrewAI crews remember everything — across sessions, across restarts. Dakera handles embedding, storage, and retrieval server-side with no local model required.
Quick Start
Step 1 — Run Dakera
Dakera is a self-hosted memory server. Spin it up with Docker:
docker run -d \
--name dakera \
-p 3300:3300 \
-e DAKERA_ROOT_API_KEY=dk-mykey \
ghcr.io/dakera-ai/dakera:latest
For a production setup with persistent storage, use Docker Compose:
# Download and start
curl -sSfL https://raw.githubusercontent.com/Dakera-AI/dakera-deploy/main/docker-compose.yml \
-o docker-compose.yml
DAKERA_API_KEY=dk-mykey docker compose up -d
# Verify it's running
curl http://localhost:3300/health
Full deployment guide: github.com/Dakera-AI/dakera-deploy
Step 2 — Install the integration
pip install crewai-dakera
Step 3 — Add memory to your crew
from crewai import Crew, Agent, Task
from crewai.memory import LongTermMemory
from crewai_dakera import DakeraStorage
storage = DakeraStorage(
api_url="http://localhost:3300",
api_key="dk-mykey",
agent_id="my-crew",
)
crew = Crew(
agents=[...],
tasks=[...],
memory=True,
long_term_memory=LongTermMemory(storage=storage),
)
result = crew.kickoff(inputs={"topic": "AI trends"})
Your crew now persists everything it learns across runs.
Installation
# Core + integration
pip install crewai-dakera
# With CrewAI (if not already installed)
pip install "crewai-dakera[crewai]"
Requirements: Python ≥ 3.10, a running Dakera server (see Step 1 above)
Configuration
| Parameter | Type | Default | Description |
|---|---|---|---|
api_url |
str |
— | Dakera server URL (e.g. http://localhost:3300) |
api_key |
str |
"" |
API key set via DAKERA_ROOT_API_KEY |
agent_id |
str |
— | Logical identifier for this crew's memory |
min_importance |
float |
0.0 |
Minimum importance score for recalled memories |
top_k |
int |
5 |
Number of memories to surface per turn |
Use environment variables to avoid hardcoding credentials:
import os
from crewai_dakera import DakeraStorage
storage = DakeraStorage(
api_url=os.environ["DAKERA_URL"],
api_key=os.environ["DAKERA_API_KEY"],
agent_id="research-crew",
)
Examples
Research crew with persistent memory
from crewai import Agent, Task, Crew, Process
from crewai.memory import LongTermMemory, ShortTermMemory, EntityMemory
from crewai_dakera import DakeraStorage
dakera = DakeraStorage(
api_url="http://localhost:3300",
api_key="dk-mykey",
agent_id="research-crew",
)
researcher = Agent(
role="Senior Researcher",
goal="Uncover groundbreaking insights in {topic}",
backstory="An expert researcher with decades of experience.",
verbose=True,
)
writer = Agent(
role="Content Writer",
goal="Craft compelling reports based on research findings",
backstory="A skilled writer who turns complex ideas into clear prose.",
verbose=True,
)
research_task = Task(
description="Research the latest developments in {topic}",
expected_output="A detailed research report",
agent=researcher,
)
write_task = Task(
description="Write a blog post based on the research",
expected_output="A polished 500-word article",
agent=writer,
)
crew = Crew(
agents=[researcher, writer],
tasks=[research_task, write_task],
process=Process.sequential,
memory=True,
long_term_memory=LongTermMemory(storage=dakera),
verbose=True,
)
# First run — learns and stores findings
result = crew.kickoff(inputs={"topic": "quantum computing"})
print(result.raw)
# Second run — recalls prior research automatically
result = crew.kickoff(inputs={"topic": "quantum computing advances"})
print(result.raw)
Custom importance scoring
storage = DakeraStorage(
api_url="http://localhost:3300",
api_key="dk-mykey",
agent_id="my-crew",
min_importance=0.6, # only surface high-quality memories
top_k=10,
)
How it works
- After each task, CrewAI calls
DakeraStorage.save()with the result - Dakera embeds the content server-side (no local model needed) and stores it with a semantic vector
- Before the next task, CrewAI calls
DakeraStorage.search()— Dakera performs hybrid search (vector + BM25) and returns the most relevant past memories - Memories decay gracefully over time based on access patterns — frequently-accessed memories stay prominent
Related packages
| Package | Framework | Language |
|---|---|---|
langchain-dakera |
LangChain | Python |
llamaindex-dakera |
LlamaIndex | Python |
autogen-dakera |
AutoGen | Python |
@dakera-ai/langchain |
LangChain.js | TypeScript |
Links
- Dakera Server — self-hosted memory server
- Dakera Python SDK — low-level API client
- Documentation
- All integrations
License
MIT © Dakera AI
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file crewai_dakera-0.1.1.tar.gz.
File metadata
- Download URL: crewai_dakera-0.1.1.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64b9eae392cba642e5a8659491d8282c519aae873b6b164806b9f5099a904444
|
|
| MD5 |
a2033176617c74e4cac3531fb2be4c97
|
|
| BLAKE2b-256 |
84fb01248154b188f929a5f9ed784fd7d6adb90f8301826d1f0c243800cdda9c
|
Provenance
The following attestation bundles were made for crewai_dakera-0.1.1.tar.gz:
Publisher:
release.yml on Dakera-AI/dakera-crewai
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
crewai_dakera-0.1.1.tar.gz -
Subject digest:
64b9eae392cba642e5a8659491d8282c519aae873b6b164806b9f5099a904444 - Sigstore transparency entry: 1524918071
- Sigstore integration time:
-
Permalink:
Dakera-AI/dakera-crewai@8ff2aa63bc7ce572468031de495cf93aab93429f -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/Dakera-AI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@8ff2aa63bc7ce572468031de495cf93aab93429f -
Trigger Event:
release
-
Statement type:
File details
Details for the file crewai_dakera-0.1.1-py3-none-any.whl.
File metadata
- Download URL: crewai_dakera-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cacc47c279135d350c4b3511de997f15e224da1373dd3464d3414a61b3ceffa3
|
|
| MD5 |
bbb5e78ca3971db371d6a85cfc8779ad
|
|
| BLAKE2b-256 |
65cb1a936840422c1cd33451666e4cf0a30d260bcdd43fcc148a453198d47114
|
Provenance
The following attestation bundles were made for crewai_dakera-0.1.1-py3-none-any.whl:
Publisher:
release.yml on Dakera-AI/dakera-crewai
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
crewai_dakera-0.1.1-py3-none-any.whl -
Subject digest:
cacc47c279135d350c4b3511de997f15e224da1373dd3464d3414a61b3ceffa3 - Sigstore transparency entry: 1524918119
- Sigstore integration time:
-
Permalink:
Dakera-AI/dakera-crewai@8ff2aa63bc7ce572468031de495cf93aab93429f -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/Dakera-AI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@8ff2aa63bc7ce572468031de495cf93aab93429f -
Trigger Event:
release
-
Statement type: