LongMemory social preview
vector-db4,479Apache 2.0

LongMemory

Local persistent memory store for LLM applications including claude desktop, github copilot, codex, antigravity, etc.

Updated Sep 3, 2026
Platforms
docker
Pricing
free-open-source
Status
active
License
Apache 2.0

What it does

Core capabilities at a glance

  • AI Agents
  • AI Infrastructure
  • AI Memory
  • Artificial Intelligence
  • Cognitive Architecture
  • Embeddings
  • Gemini
  • Long Term Memory

Deep dive

The full breakdown - performance, comparisons, and setup

LongMemory

LongMemory is a vector database - Local persistent memory store for LLM applications including claude desktop, github copilot, codex, antigravity, etc.

Overview

LongMemory is a cognitive memory engine for LLM applications and autonomous agents.

Your model stays stateless. Your application stops being amnesiac.

No service or external database is required for in-memory use.

Reopening the same database restores nodes, worlds, entities, edges, temporal history, grounding, and lifecycle state.

  1. Split text into chunks. 2. Embed the chunks. 3. Return the nearest vectors.

That does not establish what was true at a particular time, whether a new fact superseded an old one, which source is authoritative, who may see it, or why a result belongs in context.

  • Temporal truth: recorded time and valid time are separate. - Immutable memory: content, vectors, hashes, and provenance are not rewritten by recall or decay. - Executable graph: typed relationships participate in recall and explanation. - Governance: project, tenant, user, team, role, agent, task, and framework scope are enforced. - Lifecycle: deterministic decay, explicit reinforcement, consolidation, compression, and reconsolidation. - Evidence: recall is bounded by relevance, contradictions, grounding, permissions, and token cost.

Strict recall applies temporal, contradiction, contract, confidence, and grounding gates. Historical recall preserves superseded truth. Associative recall follows semantic, lexical, entity, activation, and graph signals. World-grounded recall requires current external evidence.

LongMemory is open-source, written primarily in TypeScript, with 4,479 GitHub stars under the Apache 2.0 license. The latest release is v1.2.3 (2025-12-12).

Key capabilities

From the project's documentation:

  • Durable local-first storage with SQLite
  • Immutable content, provenance, and temporal truth
  • Strict, historical, associative, grounded, and multilingual recall
  • Explainable evidence selection and token-bounded context
  • Governed project memory, Skills, Chat Memory, LLM-Wiki, and CodeGraph
  • One TypeScript engine across npm, CLI, HTTP, MCP, dashboard, and VS Code

Install

A quick way to get started (always check the official docs for the latest):

docker run --rm \

How it fits a local-AI stack

LongMemory runs on your own hardware, so pair it with a model and a GPU sized to your needs. Use the VRAM calculator to pick a model that fits your card, and see what you can run for hardware guidance. Related vector databases in the directory:

Sources

Stats from GitHub, 2026-09-03.

Frequently asked

Quick answers to common questions

What is LongMemory?

LongMemory is a vector-db tool for local AI workloads. Local persistent memory store for LLM applications including claude desktop, github copilot, codex, antigravity, etc.

Is LongMemory free and open source?

Yes, LongMemory has 4,479 GitHub stars and is licensed under Apache 2.0. You can self-host it for free on docker.

What platforms does LongMemory support?

LongMemory runs on docker.

What hardware do I need for LongMemory?

The hardware requirements depend on which models you run. Check our hardware directory for compatible GPUs and systems. LongMemory has 4,479 GitHub stars and an active community.

Does LongMemory support GPU acceleration?

LongMemory's GPU support depends on your specific setup. Check the documentation for details. For the best performance, pair it with an NVIDIA RTX 4090 or 5090.

What are the best alternatives to LongMemory?

Popular alternatives include other vector-db tools in our directory. Browse our full collection at /tool for comparisons, community reviews, and benchmark data to find the right fit for your workflow.

How much does LongMemory cost?

LongMemory is free-open-source. It is completely free and open source to self-host.

Pairs well with

Complementary tools, models, and hardware

Comments coming soon

Configure NEXT_PUBLIC_GISCUS_REPO_ID and NEXT_PUBLIC_GISCUS_CATEGORY_ID at giscus.app to enable.