Show HN: A local-first memory store for LLM agents (SQLite)

https://news.ycombinator.com/rss Hits: 3
Summary

OpenMemory VS Code Extension • Report Bug • Request Feature • Discord server Long‑term memory for AI systems. Self‑hosted. Local‑first. Explainable. Scalable. A full cognitive memory engine — not a vector database. Add Memory to AI/Agents in one line. 🔥 Spread the Word! Why OpenMemory? Traditional Vector DBs require extensive setup, cloud dependencies, and vendor lock-in: # The old way: Pinecone + LangChain (12+ lines) import os import time from langchain . chains import ConversationChain from langchain . memory import VectorStoreRetrieverMemory from langchain_community . vectorstores import Pinecone from langchain_openai import ChatOpenAI , OpenAIEmbeddings os . environ [ "PINECONE_API_KEY" ] = "sk-..." os . environ [ "OPENAI_API_KEY" ] = "sk-..." time . sleep ( 3 ) # Wait for cloud initialization embeddings = OpenAIEmbeddings () pinecone = Pinecone . from_existing_index ( embeddings , index_name = "my-memory" ) retriever = pinecone . as_retriever ( search_kwargs = dict ( k = 2 )) memory = VectorStoreRetrieverMemory ( retriever = retriever ) conversation = ConversationChain ( llm = ChatOpenAI (), memory = memory ) # Usage (requires explicit chain call) conversation . predict ( input = "I'm allergic to peanuts" ) OpenMemory needs just 3 lines: # The new way: OpenMemory (3 lines) from openmemory import OpenMemory om = OpenMemory ( mode = "local" , path = "./memory.db" , tier = "deep" , embeddings = { "provider" : "ollama" }) om . add ( "User allergic to peanuts" , userId = "user123" ) results = om . query ( "allergies" , filters = { "user_id" : "user123" }) # Returns: [{"content": "User allergic to peanuts", "score": 0.89, ...}] ✅ Zero cloud setup • ✅ Local SQLite • ✅ Works offline • ✅ No vendor lock-in ⚡ Standalone Mode (New!) OpenMemory now works without a backend server. Run the full cognitive engine directly inside your Node.js or Python application. Zero Config : npm install and go. : and go. Local Storage : Data lives in a local SQLite file. : Data lives in a l...

First seen: 2025-12-18 15:13

Last seen: 2025-12-18 17:13