Skip to main content

crewai-hydradb

HydraDB as external memory for CrewAI agents. Your crews recall relevant history on each task and persist their outputs into HydraDB, so memory survives across runs.

Install

pip install crewai-hydradb   # once published; for local dev: pip install -e .

Prerequisites

  • Python >= 3.10
  • A HydraDB account: API key + tenant ID (hydradb.com)
  • crewai >= 1.0, < 1.11

CrewAI version compatibility

This integration implements CrewAI's Storage interface (crewai.memory.storage.interface.Storage) wired via ExternalMemory, which exists in CrewAI 1.0-1.10 (verified present in 1.5, removed in 1.11). CrewAI 1.11+ restructured memory around a new embedding-based StorageBackend protocol that expects the backend to store and search raw embedding vectors - a poor fit for HydraDB's text-query recall. On 1.11+, use HydraDB over MCP instead (hydra-db/hydradb-mcp), which exposes HydraDB's own retrieval without a vector-store contract.

Quick start

from crewai import Crew
from crewai.memory.external.external_memory import ExternalMemory
from hydradb_crewai import HydraDBClient, HydraDBStorage

client = HydraDBClient(api_key="sk_live_...", tenant_id="your-tenant")

crew = Crew(
    agents=[...],
    tasks=[...],
    external_memory=ExternalMemory(storage=HydraDBStorage(client)),
)
crew.kickoff()

Notes

  • Public API only. save writes via the public knowledge path (app_knowledge → /context/ingest); search uses POST /query. The memory-family write route is not publicly exposed, so outputs are stored as knowledge (default kind="knowledge").

How it works

CrewAI's ExternalMemory delegates to a Storage implementation:

CrewAI call HydraDB
save(value, metadata) - after a task completes ingest as HydraDB knowledge (app_knowledge)
search(query, limit, score_threshold) - before a task hybrid recall from HydraDB

This mirrors the pattern used by Mem0, Honcho, and Hindsight.

Test

pip install -e ".[test]"
pytest

License

Apache-2.0 - Copyright (c) 2026 HydraDB

Metadata

Release files for crewai-hydradb 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 crewai-hydradb 0.1.1
File Size Uploaded Provenance Actions
crewai_hydradb-0.1.1.tar.gz 11.0 kB Without provenance Details for crewai_hydradb-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 22.3 kB

Release files / crewai_hydradb-0.1.1.tar.gz

Download URL crewai_hydradb-0.1.1.tar.gz
Size 11.0 kB
Tags Source
SHA-256 checksum
How to use checksums
841b4f806e3ac69817486225792c1e86372e0c5a098d468ab383bc0c3335fa7f
BLAKE2b-256 checksum
How to use checksums
8322314f87b75ed5ba5d398457c3f8d73ac2519d872ab52f46fc45c608d873cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

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

Download URL crewai_hydradb-0.1.1-py3-none-any.whl
Size 11.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5ddf3539c2b3341d138f473f08e9df6455aebc6d23d776ef47a4a12bc1d37e9d
BLAKE2b-256 checksum
How to use checksums
8e9b033ff84e7bc8e3c91db348dd8d11a48db160f74c7aada8890c5172fa3eca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Security for crewai-hydradb 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.

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.

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