Skip to main content

oliviadb-crewai

CrewAI memory storage in OliviaDB (OliviaDBStorage, the StorageBackend protocol of the unified Memory): one document per memory record with CrewAI's embedding, scopes as namespace paths, vector search. Tested with crewai 1.15.47 on Python 3.13.

Install

pip install oliviadb-crewai

Python 3.10 to 3.13 (CrewAI's range).

Example

A server from the core image (docker run -d -p 8443:8443 -v oliviadb-data:/data ghcr.io/oliviadb/oliviadb), its API key in OLIVIADB_API_KEY and its certificate in oliviadb-ca.pem (docker cp <container>:/data/tls/server.pem oliviadb-ca.pem):

import hashlib
import os

from crewai.memory.unified_memory import Memory
from oliviadb import OliviaDbClient
from oliviadb_crewai import OliviaDBStorage


def embed(texts: list[str]) -> list[list[float]]:
    """Any embedder works (CrewAI's providers, or a function like this offline stand-in)."""
    out = []
    for t in texts:
        v = [0.0] * 64
        for w in t.lower().split():
            v[int(hashlib.sha1(w.encode()).hexdigest(), 16) % 64] += 1.0
        n = sum(x * x for x in v) ** 0.5 or 1.0
        out.append([x / n for x in v])
    return out


client = OliviaDbClient("https://localhost:8443", api_key=os.environ["OLIVIADB_API_KEY"], ca_file="oliviadb-ca.pem")
memory = Memory(storage=OliviaDBStorage(client, root=("crewai", "crew")), embedder=embed, llm="none")
memory.remember("The customer Acme prefers invoices in EUR.", scope="/customers/acme", categories=["billing"])
for match in memory.recall("which currency for Acme invoices", depth="shallow"):
    print(round(match.score, 3), match.record.content)

Licence: Apache-2.0.

Metadata

Release files for oliviadb-crewai 0.1.1

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

Source distribution (sdist)

Source distribution for oliviadb-crewai 0.1.1
File Size Uploaded Provenance Actions
oliviadb_crewai-0.1.1.tar.gz 5.6 kB With provenance Details for oliviadb_crewai-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for oliviadb-crewai 0.1.1
File Interpreter ABI Platform Actions
oliviadb_crewai-0.1.1-py3-none-any.whl Python 3 none any Details for oliviadb_crewai-0.1.1-py3-none-any.whl

Total release size: 10.0 kB

Release files / oliviadb_crewai-0.1.1.tar.gz

Download URL oliviadb_crewai-0.1.1.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ed86db640d82d7c8db20b2e25eaefaaf2c44dd4339fd34e5392e51b5ba847d0f
BLAKE2b-256 checksum
How to use checksums
f024d185975bdac5e000991631e4fd1b8de438e390a4d8b358a7d1f884bd68b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.

Transparency log

Release files / oliviadb_crewai-0.1.1-py3-none-any.whl

Download URL oliviadb_crewai-0.1.1-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
219546542285eef2b635acc9e0787e6dcb3bf2e7689857c9e57ebec491ea70a1
BLAKE2b-256 checksum
How to use checksums
756d511342e2248d5bb6dff675115fa94cee8f1b0762b846d4d0a28617f4ef6b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.

Transparency log

Security for oliviadb-crewai 0.1.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for oliviadb_crewai-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 4, 2026.

Transparency log

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.

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