Self-host Basic Memory
v1.0.0- Stars
- 4 542
What is Basic Memory?
Basic Memory is an open-source, local-first knowledge base designed for AI conversations. It enables users and AI assistants to collaboratively build, edit, and search a semantic knowledge graph stored as plain Markdown files on your disk. The project integrates seamlessly with AI tools like Claude, Codex, Cursor, ChatGPT, and VS Code via the Model Context Protocol (MCP), allowing AI to read, write, and traverse your knowledge base in real time.
Key Features
- Local-First & Privacy-Focused: All data is stored as Markdown files on your machine, ensuring full control and privacy. No cloud dependency is required, though optional cloud sync is available for cross-device access.
- Semantic Knowledge Graph: Notes are structured with observations (categorized facts) and relations (links between notes), creating a traversable graph that both humans and AI can navigate.
- Two-Way Sync: AI and humans write to the same files, with real-time synchronization keeping everything in step. Edits made in Obsidian, VS Code, or any text editor are instantly visible to AI tools.
- MCP-Native: Works with any AI client or IDE that supports the Model Context Protocol, including Claude Desktop, Claude Code, Codex, Cursor, and ChatGPT.
- Semantic & Hybrid Search: Find notes by meaning, not just keywords, using a combination of full-text and vector search (powered by FastEmbed embeddings).
- Schema System: Infer, validate, and diff the structure of your knowledge base with commands like
schema_infer,schema_validate, andschema_diff. - Progressive Tool Discovery: Every MCP tool is annotated with behavior hints (e.g., read-only, destructive, idempotent), allowing AI agents to discover and use the right tool without trial-and-error.
Self-Hosting & Deployment
Basic Memory is fully self-hostable and can be run locally or deployed on your own infrastructure. It supports:
- CLI Installation: Install via
uv tool install basic-memory(requires Python). - Docker & Docker Compose: Pre-built images are available for easy deployment, with volumes for persistent configuration and knowledge directories.
- PostgreSQL & SQLite: Supports both PostgreSQL (with pgvector for semantic search) and SQLite (default, embedded).
- Cloud Sync (Optional): Route specific projects through Basic Memory Cloud for cross-device sync, snapshots, and team collaboration.
Use Cases
- Personal Knowledge Management: Build a durable, AI-enhanced knowledge base for research, notes, and project history.
- AI Collaboration: Give AI assistants like Claude or Cursor persistent memory, so they remember context across conversations.
- Team Knowledge Bases: Share a single, synchronized knowledge graph across a team, with real-time collaboration and access control.
- Offline & Air-Gapped Workflows: Keep all data local for privacy-sensitive or air-gapped environments.
Why Basic Memory?
Most LLM conversations are ephemeral, with context lost after each session. Basic Memory solves this by:
- Structured Markdown Files: Knowledge is stored in plain Markdown, readable by humans and AI alike.
- Real Two-Way Flow: AI and humans edit the same files, with sync ensuring consistency.
- No Vendor Lock-In: Your notes are yours—export, backup, or migrate anytime.
- Open Source: Released under AGPL-3.0, with a fully open development process.
Basic Memory is ideal for developers, researchers, teams, and anyone who wants to build a durable, AI-native knowledge base that grows smarter over time.
Basic Memory alternatives
openchronicle-mcpOpenChronicle is a self-hosted, open-source memory database for LLM agents with persistent keyword and semantic memory, project namespacing, and MCP support.Compareopenchronicle-mcp with Basic Memory
memory-osSelf-hosted, open-source memory stack for Hermes Agent: seven layers adding Qdrant vector search, SQLite fact storage with trust scores, and automatic context injection.Comparememory-os with Basic Memory
signetaiSelf-hosted memory layer for AI agents. Captures transcripts, builds a knowledge graph via Dreaming, and lets you inspect every memory with full provenance.Comparesignetai with Basic Memory
kiwi-memSelf-hosted memory gateway giving AI companions human-like long-term memory that fades, strengthens, sleeps, compresses — OpenAI/Anthropic compatible, Docker.Comparekiwi-mem with Basic Memory
agent-second-brainSelf-hosted voice-first assistant capturing Telegram notes into an Obsidian vault via a persistent Claude Code session — runs on your VPS for ~$25/month.Compareagent-second-brain with Basic Memory
MemorwiseSelf-hosted NotebookLM alternative for document chat with any LLM. Drop in files/links — local RAG Q&A, knowledge graphs, flashcards, quizzes, audio. One command.CompareMemorwise with Basic Memory
CORECORE is a self-hosted personal AI OS: a temporal memory graph, a task engine with approval, scratchpad, voice and messaging access, plus Claude Code and Codex sessions.CompareCORE with Basic Memory
HindsightOpen-source agent memory server with retain, recall and reflect APIs, a web control plane and a built-in MCP endpoint; self-hosted via Docker, pip or Helm.CompareHindsight with Basic Memory
Should you self-host Basic Memory?
Basic Memory scores 69/100 on selfhost.directory (how scoring works) and ranks #8 of 42 in Knowledge Management. It has 4 542 GitHub stars, +435 in the last 30 days.
It shipped 17 stable releases in the past year. The latest, v1.0.0, came out on 29 October 2026. New versions land roughly every 4 days.
Setup is moderate: expect some configuration beyond a single command. It is AGPL-3.0-licensed and written mostly in Python.
Its closest alternative on selfhost.directory is Project N.O.M.A.D. (86/100, 43 054 stars). It scores higher overall, so compare the two before you pick. See Basic Memory vs Project N.O.M.A.D. side by side.
Basic Memory README
Claude, Codex, or Cursor connected in 30 seconds. No Python, no JSON, no
terminal. $15.00/mo locked in for life (12.50/mo yearly pricing). 7-day free
trial — cancel any time before day 7 if it's not for you. Beta pricing —
sign up now and your rate never goes up. OSS users: code BMFOSS takes
another 20% off for 3 months.
More in Knowledge Management
BookStackOpen-source, self-hosted documentation wiki built with PHP and MySQL that organises content into books, chapters and pages, with search, role permissions, SSO and MFA.
botmemBotmem is a self-hosted, open-source personal memory layer that ingests emails, messages, photos, and locations into a unified schema with semantic search for AI agents.
brain-dbSelf-hosted memory database for AI agents with fused semantic, lexical, graph, and temporal retrieval. Single Rust core, binary wire protocol, Apache-2.0.
brain_dogfoodBrain Dogfood is a self-hosted, open-source personal knowledge server with AI summaries, D3.js knowledge graph, per-note encryption, and desktop shortcuts.
brain.mdSelf-hosted markdown notes with MCP server for AI agents. Single Bun binary, local vector search via WASM ONNX, per-folder permissions, optional auth. AGPL.
BusabaseSelf-hosted open-source workspace where AI agents and people share typed records, documents, reusable skills, and internal tools with built-in review workflows.
by2kbby2kb is a self-hosted CLI turning Bilibili/YouTube URLs into Markdown transcripts, abstracts, and study notes via local Whisper or cloud ASR.
CodeX.docsSelf-hosted, open-source docs app on Editor.js. Nested documents, static rendering, SEO URLs, responsive UI — no database required.
CodiMDSelf-hosted, open-source collaborative markdown notes — the community edition of HackMD — with per-note permissions, PDF export and SAML, LDAP or OAuth sign-in.
cogneeCognee is the open-source AI memory platform for agents. Give your AI agents persistent long-term memory with small models for free
ColanodeOpen-source, local-first chat-and-docs workspace that stands in for Slack and Notion; self-hosted via Docker Compose or Helm with Postgres, Redis and object storage.
ConnapseConnapse is a self-hosted, open-source knowledge backend giving AI agents persistent, searchable memory via hybrid search, MCP server, and storage connectors.



0 comments