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.
savewrites via the public knowledge path (app_knowledge→/context/ingest);searchusesPOST /query. The memory-family write route is not publicly exposed, so outputs are stored as knowledge (defaultkind="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.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| crewai_hydradb-0.1.2.tar.gz | 14.7 kB | Without provenance | Details for crewai_hydradb-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| crewai_hydradb-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for crewai_hydradb-0.1.2-py3-none-any.whl |
Total release size: 26.0 kB
Release files / crewai_hydradb-0.1.2.tar.gz
| Download URL | crewai_hydradb-0.1.2.tar.gz |
|---|---|
| Size | 14.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d32a72302e839f80e582e772bec20c5c679b583743431c0bfdfce8fe52bc68fe
|
|
BLAKE2b-256 checksum How to use checksums |
7aea7c4d51f6c14cff6d88b7ffdee1eabd2800407349cd31d7cf018998240b15
|
| 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.2-py3-none-any.whl
| Download URL | crewai_hydradb-0.1.2-py3-none-any.whl |
|---|---|
| Size | 11.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ce981ba4164a526e5c6bb009de4757877b4174180f08eecb0fe96ce7e56a37ab
|
|
BLAKE2b-256 checksum How to use checksums |
769eb1ed39119d66af21b7052e6475422fdebeee6f3ba6224b97e9c76ad7ca88
|
| 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.2
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.