Durable, temporal, governed memory for AI agents.
Longmemory is a local-first, self-hosted memory engine for LLM applications — not just a vector store. It tracks what's true now, what used to be true, and why, across four distinct recall modes.
Longmemory is a local-first, self-hosted memory engine for LLM applications — not just a vector store. It tracks what's true now, what used to be true, and why, across four distinct recall modes.
Every write lands as an immutable node with executable edges, worlds, and entities, not a flat row in a vector index.
Strict, historical, associative, and world-grounded recall run against the same substrate, so each query gets the retrieval contract it actually needs.
Import history straight from coding agents and chat tools, then keep ingesting documents and events through the same pipeline.
Give coding and workflow agents durable project memory, with governed assets that stay consistent across every session.
Swap between OpenAI, Gemini, NVIDIA NIM, AWS Bedrock, Ollama, or a local HTTP endpoint without rewriting your pipeline.
SQLite keeps nodes, edges, worlds, and temporal history on disk, so recall survives restarts without a separate database service.
Confidence decays on a deterministic schedule and strengthens on explicit reinforcement, so memory never needs manual tuning.
Confidence decays deterministically, reinforcement is explicit, and every change leaves a provenance trail back to its trigger.
Each memory ages on a predictable curve with a configurable floor, so retrieval stays explainable instead of mysterious.
Reinforcement events restore strength on demand, driven by real signals from conversations or tool outcomes, never a hidden background job.
Every reinforcement and decay step links back to its trigger, so agents can explain why a memory is still in play.
Simple, intuitive API that gets you from zero to production-ready memory in just a few lines of code
Equip chat products with persistent preferences, tone awareness, and long-tail recollection so they sound brilliantly personal.
Launch companion agents that accumulate rituals, goals, and collaborative context while staying effortlessly organized.
An open-source project licensed under the Apache License 2.0.
(c) 2026 Longmemory, CaviraOSS and contributors.