LongMemory

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

What is LongMemory?

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

Overview of LongMemory

What it is

LongMemory is a cognitive memory engine for LLM applications and autonomous agents. It provides durable, temporal, and governed memory that is local-first and self-hosted. It is not just a retrieval-augmented generation (RAG) system or a vector database; it models temporal truth, immutable content, provenance, and governance directly. The engine is written in TypeScript and can be used as a library, CLI, HTTP service, MCP server, dashboard, or VS Code extension. It includes native integrations for agent hosts, automation tools, and Python frameworks.

Key features

  • Hydrograph memory substrate with immutable nodes, executable edges, worlds, entities, facets, and traces.
  • Temporal reasoning with point-in-time truth, event ordering, supersession, and stale-evidence controls.
  • Multilingual memory with script detection, code switching, transliteration, and cross-language embeddings.
  • Project memory for architecture, decisions, tasks, conventions, failures, handoffs, and code impact.
  • Governed assets for Chat Memory, Skills, LLM-Wiki, and CodeGraph with lifecycle and ACL policy.
  • Session porter for Claude Code, Codex, OpenCode, Gemini CLI, Copilot Chat, Cline, and raw harness logs.
  • Connectors for repositories, local files, Markdown, web content, feeds, cloud documents, and provider APIs.

Use cases

LongMemory is designed for LLM applications and autonomous agents that need durable, temporal, and governed memory. Use cases include project memory for architecture, decisions, tasks, and conventions; chat memory for conversational context; skills memory for reusable agent capabilities; LLM-Wiki for knowledge bases; and CodeGraph for code understanding. It can be used in agent hosts, automation tools, and Python frameworks.

Getting started

bashnpm install longmemory``````tsimport { createMemory } from 'longmemory';const memory = await createMemory();await memory.ingest({ user_id: 'alice', text: 'I prefer TypeScript for backend services',});const result = await memory.recall({ text: 'What language does Alice prefer?', mode: 'strict',});console.log(result);await memory.close();For CLI installation: npm install --global longmemory then longmemory init.

License and pricing

LongMemory is open source under the Apache-2.0 license. Pricing is not stated; the project is listed as open source.

Based on the project's public README and repository metadata.

Add this badge to your README

Featured on YunoDB Badge styles & help

Maintain this project? Show that it is featured on YunoDB.

Markdown[![Featured on YunoDB](https://yunodb.com/badge/caviraosslongmemory.svg)](https://yunodb.com/tools/caviraosslongmemory?utm_source=github&utm_medium=badge)
HTML<a href="https://yunodb.com/tools/caviraosslongmemory?utm_source=github&utm_medium=badge"><img src="https://yunodb.com/badge/caviraosslongmemory.svg" alt="Featured on YunoDB" height="20"></a>