db0 is the unified data SDK for AI agent systems —
state, memory, tool caching, guardrails and observability
through a single interface.
import { DB0 } from "@db0/sdk" // choose backend — swap without changing app code const db = new DB0({ backend: 'postgres' }) // 'sqlite' | 'memory' // one harness — shared context across all components const harness = db.harness({ agentId, sessionId, userId })
| db0 | Mem0 | LangGraph | DIY Stack | |
|---|---|---|---|---|
| Cross-session memory | ✓ | ✓ | Partial | Manual |
| Execution state / checkpointing | ✓ | ✗ | ✓ | Manual |
| Tool result caching | ✓ | ✗ | ✗ | Manual |
| Guardrails + audit log | ✓ | ✗ | Partial | Manual |
| Cross-agent observability | ✓ | ✗ | ✗ | ✗ |
| Framework-agnostic | ✓ | ✓ | ✗ | ✓ |
| Single SDK for all of the above | ✓ | ✗ | ✗ | ✗ |
Join developers who are done stitching Redis, pgvector, and Postgres together.