Local Memory

•
1
•

Provide local-first, offline long-term memory for AI agents using SQLite and vector search without cloud dependencies.

Local Memory is a lightweight, local-first long-term memory engine designed for AI agents and coding assistants like Claude Code, Cursor, and Cline. It stores context, past decisions, and conversation history in a standalone local SQLite database with zero cloud dependencies or telemetry. The system automatically switches between exact code matching, SQLite FTS5 full-text search, and semantic search (via local embeddings or TF-IDF fallbacks), ensuring agents retain durable knowledge across sessions while keeping sensitive data completely private on the user's machine.

Key Features

01Automatic tri-mode search switching between exact code matching, FTS5 keyword indexing, and semantic search
02Local vector search utilizing either NumPy matrix cache or in-database sqlite-vec extensions
03Provides context-window results returning neighboring chunks around each match to minimize round trips
04Supports stdio, plain REST, and streamable-http MCP transports with zero extra networking requirements
05Complete data sovereignty with local file storage, offline operation, and no outbound network calls unless explicitly configured
061 GitHub stars

Use Cases

01Maintaining architectural decisions, conventions, and bug fixes across developer sessions in Claude Code or Cursor
02Building offline-capable, privacy-sensitive AI agents that cannot transmit conversational context to third-party cloud APIs
03Indexing local technical notes, standup logs, or project documentation for fast agent-accessible retrieval