Durable memory infrastructure
Append-only, auditable memory with cryptographic provenance. Track what agents knew, retrieved, and concluded, all with proof.
#1 on LoCoMo
XMDB achieves 93.2% accuracy on LoCoMo, the most widely cited benchmark for AI agent memory.
Leaderboard
Leader
1.11 pts behind XMDB
1.51 pts behind XMDB
3.1 pts behind XMDB
3.59 pts behind XMDB
7.55 pts behind XMDB
12.88 pts behind XMDB
14.5 pts behind XMDB
19.2 pts behind XMDB
26.32 pts behind XMDB
40.3 pts behind XMDB
Leaderboard uses latest publicly posted LoCoMo scores as of February 18, 2026. XMDB is internally verified. Use the i button next to externally sourced systems for notes and links.
XMDB Category Breakdown
Architecture
XMDB uses a two-tier architecture. Simple factual queries are handled by hybrid BM25 + vector retrieval with cross-encoder reranking. Complex queries requiring synthesis across multiple sessions are automatically routed to full-context reasoning. The system uses benchmark-provided question type labels for routing; in production, a lightweight query classifier replaces this.
LoCoMo evaluates long-term conversational memory across 1,540 questions spanning 10 multi-session dialogues. Scoring uses LLM-as-judge evaluation. XMDB is internally verified; external scores are sourced from vendor benchmark pages and papers linked via the info buttons in the leaderboard.
Local-first architecture
XMDB provides durable system memory that allows AI systems to operate over long horizons without losing or silently mutating critical context. It sits beneath applications and agents as a stable memory substrate.
All memory data lives locally in SQLite, giving you full control over your data. The append-only event log is the source of truth, while derived views provide fast access to current state.
SQLite storage
Portable, reliable, no external database dependencies
Works offline
Full functionality without network connectivity
Optional sync
Encrypted sync relay when you need it
Core components
Append-only, hash-linked events with device signatures
Derives items, claims, edges, and pins from events
Query and pack with policy filtering and attestation
Track agent conclusions with confidence, sources, and temporal validity
Share memories between agents with cryptographic proof. Receiving agents verify proofs and record why they trusted the data.
{ "event_id": "evt_7f3a9b2c", "event_type": "capture", "workspace_id": "prod-ws", "scope_id": "deployments", "item_id": "itm_4d8e1f6a", "content": "Deployed v2.1.0 to production", "source_kind": "deployment", "source_ref": "github.com/org/[email protected]", "prev_hash": "sha256:8a4f2b...", "event_hash": "sha256:c3e91d...", "sig": "ed25519:Kx9mQ...", "observed_at": "2025-01-07T10:30:00Z"}Append-only event log
Every memory write creates an immutable event. Events are hash-linked to form a chain, and optionally signed with Ed25519 device keys. The log can never be silently modified.
- Per-scope hash chains for integrity verification
- Device signatures for provenance tracking
- Tombstones for logical deletes (audit-preserving)
- Revision history for item updates
Deterministic context packs
The /pack endpoint builds context packages with token budgeting, pin awareness, and cryptographic attestation. Every pack includes a hash and optional signature.
pack_hashfor content verification- Optional Ed25519 signatures
- Token budgeting respects context window limits
- Pinned items always included
# Request a context packcurl -X POST https://api.xmdb.cloud/pack \ -H "Authorization: Bearer $XMDB_API_TOKEN" \ -d '{ "workspace_id": "prod", "scope_id": "project", "q": "deployment", "token_budget": 2000, "include_pins": true }'# Response includes attestation{ "pack_text": "...", "pack_hash": "sha256:abc123...", "sig": "ed25519:...", "sig_alg": "ed25519", "chunks_included": 5, "tokens_used": 1847}Proof at every layer
Every step of agent cognition is cryptographically verifiable.
Receipts
Every context pack includes a cryptographic receipt: proof of exactly what the agent retrieved.
Beliefs
Record what agents concluded, why, and with what confidence. Query beliefs at any point in time with as_of.
Merkle proofs
Checkpoint events into Merkle trees. Generate inclusion proofs for any event without exposing the full chain.
External anchoring
Anchor Merkle roots to RFC 3161 timestamp authorities. Third-party proof that data existed at a specific time.
{ "belief_id": "bel_8a3f2c1d", "receipt_id": "rcp_4e7b9a2f", "conclusion": "User prefers dark mode", "reasoning": "Based on explicit statement in conversation", "confidence": 0.92, "source_claim_ids": ["clm_1a2b3c", "clm_4d5e6f"], "agent_id": "assistant-v1", "valid_from": "2025-01-16T10:30:00Z", "valid_to": null, "status": "active"}Tracked agent beliefs
Beliefs track agent conclusions with provenance. Query at any point in time. Invalidate when wrong.
- Linked to retrieval receipts for full traceability
- Confidence scores and reasoning captured
- Temporal validity with as_of queries
- Invalidation with full audit trail
Search & retrieval
XMDB supports multiple retrieval strategies to find relevant memory across your history.
- Full-text + vector search (hybrid retrieval) that combines keyword matching with semantic similarity
- Optional HNSW vector indexing to scale semantic search with efficient approximate nearest neighbor lookups
- Deterministic extraction + context receipts for verifiable retrieval with cryptographic attestation
API & CLI
Full HTTP API and command-line interface for all operations
API Endpoints
GET/healthzHealth checkGET/whoamiToken identityGET/v1/itemsList itemsPOST/v1/itemsCreate itemPOST/captureStore memoryPOST/querySearch memoryPOST/packContext packGET/items/historyRevisionsPOST/v1/beliefsCreate beliefGET/v1/beliefsList (as_of)POST/beliefs/:id/invalidateInvalidateGET/v1/beliefs/diffChangesPOST/v1/checkpointsCheckpointGET/checkpoints/:id/proofMerkle proofPOST/checkpoints/:id/anchorRFC 3161POST/v1/federation/shareShare bundlePOST/v1/federation/receiveReceive bundleGET/v1/federation/receiptsFed receiptsPOST/v1/trust/policiesTrust policy
CLI Commands
xmdbctl loginAuthenticatexmdbctl statusCheck connectionxmdbctl captureStore memoryxmdbctl itemsList itemsxmdbctl packBuild context packxmdbctl auditAudit bundlesxmdbctl ingestBulk importxmdbctl beliefs createCreate beliefxmdbctl beliefs listList beliefsxmdbctl beliefs invalidateInvalidatexmdbctl checkpoints createCheckpointxmdbctl checkpoints proofMerkle proofxmdbctl checkpoints verifyVerify offlinexmdbctl checkpoints anchorRFC 3161xmdbctl federation shareShare bundlexmdbctl federation receiveReceive bundlexmdbctl trust policies createTrust policy
Multi-agent support via MCP
XMDB includes a native MCP server that exposes memory tools to any MCP-compatible client. Run locally via stdio or connect to the remote endpoint at https://mcp.xmdb.cloud/mcp.
Available tools
write_memorysearch_memoryget_memory_packget_item_historyAliases
xmdb.capturexmdb.searchxmdb.packxmdb.item_historyxmdb.whoamixmdb.items_listRemote MCP endpoint
# Remote MCP endpoint (Streamable HTTP)https://mcp.xmdb.cloud/mcp# Requires MCP auth token (separate from API token)Authorization: Bearer $MCP_AUTH_TOKENLocal stdio mode (Claude Desktop)
{ "mcpServers": { "xmdb": { "command": "xmdb-mcp", "env": { "XMDB_BASE_URL": "https://api.xmdb.cloud", "XMDB_API_TOKEN": "your-api-token", "XMDB_WORKSPACE_ID": "your-workspace" } } }}Start building with durable memory
Get started in minutes with the CLI or connect your MCP clients.