Skip to content
ClickHouse Loom
Esc
↑↓navigate↵open⌘Jpreview
On this page

Self-hosted agent memory on ClickHouse

Loom runs on your own infrastructure, with Docker or on Kubernetes with its Helm chart, and stores agent memory, documents, conversations and code indexes as tables in ClickHouse. A deployment can choose Postgres at first boot for live memory and knowledge state. Data is stored only in your stores (the hosted model providers and trace sinks you configure receive what they process), and what your agents know is queryable with SQL.

What you get

Query agent memory with SQL

Use the read-only ClickHouse views to audit saved facts, trace corrections, or pull usage into a reporting job. The ClickHouse user provisioned by loom sql-access reads only its granted orgs and namespaces. Start with sql_v1_memories for current facts and sql_v1_memory_history for versions. Agents can keep using MCP or HTTP for semantic recall and writes.

Measured

A synthetic load of memories with 2.4 versions per key and 3072-dimension embeddings (two vectors per row) took about 13.6 KB per key in ClickHouse, almost all of it the embedding row; a smaller embedder takes less, and parts with few rows carry somewhat more per row until they merge. Memory at scale

Start

Quickstart · Prerequisites · Upgrades · Backup and recovery

Was this page helpful?