Claude Code config

LongMemory

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

4,562 stars 513 forksConfig & memory Source

Install

Install
npm install --global longmemory

Found in the project README. Check it for setup steps after installing.

From source
git clone https://github.com/CaviraOSS/LongMemory.git

From the README

LongMemory
Durable, temporal, governed memory for AI agents. Not just RAG. Not just a vector database. Local-first and self-hosted.

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

- 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
- Native integrations for agent hosts, automation tools, and Python frameworks

Your model stays stateless. Your application stops being amnesiac.

1. Use It in 10 Seconds

Install as a library

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

For optional evidence-grounded answers with your own model, use the exported
answer_from_evidence adapter. It accepts authorized evidence, validates cited
excerpts, and makes at most one model call; ordinary recall is unchanged.
See docs/answering.md for policies, limits, and integration.

Persist with SQLite

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

Install the CLI

Call a self-hosted server from Python

The Python package is a zero-dependency HTTP client. The Hydrograph engine remains in the self-hosted TypeScript service. See docs/python-sdk.md.

2. Run as a Service

From source

The API listens on http://127.0.0.1:7331 by default.

Docker

Docker Compose

Include the dashboard:

- API and MCP: http://127.0.0.1:7331
- Dashboard: http://127.0.0.1:3000
- Health: http://127.0.0.1:7331/health

3. Why LongMemory

Most systems called memory are retrieval…
Read the full README on GitHub

Details

Language
TypeScript
License
Apache-2.0
Last updated
18 October 2026
Topics
aiai-agentsai-infrastructureai-memoryartificial-intelligencecognitive-architectureembeddingsgeminillmlong-term-memorylongmemorymemory

FAQ

What is LongMemory?

Local persistent memory store for LLM applications including claude desktop, github copilot, codex, antigravity, etc. It is a config for Claude Code, from CaviraOSS/LongMemory on GitHub.

How do I install LongMemory?

Run npm install --global longmemory, then follow the setup in the README.

Is LongMemory popular?

CaviraOSS/LongMemory has 4,562 GitHub stars and 513 forks, and is included in 1 curated Claude Code list. It was last updated on 18 October 2026.

More config & memory

Browse the most popular Claude Code mods, all config & memory, or the skills and MCP server directories.