Mnemosyne is now an OpenSource Collective on OpenCollective.Support us
Mnemosyne

Memory for

The universal memory layer for any AI agent. SQLite-backed, local-first, one pure-Python dependency. One pip install. That is all.

<1msQuery latency
0Dependencies
3k+GitHub stars
100%Local & private
Mnemosyne - An open-source memory engine born from Hermes. Sub-ms recall | Product Hunt
Interactive Demo

Try Mnemosyne in your browser

100% client-side simulation. Zero LLM calls. Zero server cost. Chat with Mnemo, store memories, run consolidation, watch the knowledge graph grow. Your data stays in your browser — come back tomorrow and it'll still be here.

This is a simulation. Install the real Mnemosyne for your agent.

Simple

Three lines. Infinite memory.

No cloud accounts, no services to run, no Docker. Import, remember, recall. Configuration is optional.

  • pip install mnemosyne-memory
  • Zero external services required
  • Works offline, always
  • Works with Hermes, Claude Code, Cursor, Codex, OpenWebUI, OpenClaw + MCP
from mnemosyne import remember, recall

# Store a memory
remember(
    "User prefers dark mode",
    importance=0.9,
    scope="global"
)

# Retrieve relevant context
results = recall("user preferences")
# => [{"content": "User prefers dark mode", ...}]
Features

Everything you need. Nothing you do not.

Built from the ground up for AI agents that need fast, reliable, persistent memory.

Sub-Millisecond Latency

Direct SQLite access delivers &lt;1ms queries. No network overhead. No HTTP roundtrips.

100% Private

All data stays on your machine. No cloud services. No data leaves your device, ever.

Native Vector Search

sqlite-vec integration for semantic search. Hybrid ranking: 50% vector + 30% FTS + 20% importance.

Beam Architecture

Three-tier memory: working_memory for hot context, episodic_memory for long-term, scratchpad for reasoning.

Auto Consolidation

Old working memories are automatically summarized and moved to episodic storage via sleep cycles. Configurable auto_sleep intervals.

Hybrid Search

Combines vector similarity, full-text search, and importance scoring for the best recall accuracy.

Streaming & DeltaSync

Real-time incremental memory updates via DeltaSync. Stream results as they arrive — no more waiting for full batches.

Smart Filtering

ignore_patterns blocks noisy or irrelevant content from entering memory. Keep your context window clean and focused.

Speed

Numbers that speak

Measured on CPU with sqlite-vec + FTS5. No GPU required.

Write12msat 1K entries
Search45msat 1K entries
Vector search15msat 1K entries
FTS5 search5msat 1K entries

BEAM Benchmark (ICLR 2026)

Measured on v3.0.0 in May 2026 against the published ICLR 2026 baselines. The end-to-end score is LLM-as-judge at 100K. The scale and abstention figures are pure retrieval.

100K Context65.2%End-to-end QA at 100K, LLM-as-judge, v3.0.0
Retrieval to 10M20%Recall@10 holds flat while the corpus grows by two orders of magnitude
Abstention100%Declines to answer rather than inventing one when the corpus has nothing
Compare

Mnemosyne vs. cloud memory providers

See exactly what you gain — and what you trade — when you switch.

FeatureMnemosyneHonchoZepMem0
CostFree forever$$$ Paid (credits)$$$ Paid (Flex+)Freemium ($0-$249/mo)
HostingLocal - your machineCloud onlyCloud / BYOCCloud only
Privacy100% local, zero exfilExternal API callsExternal API callsExternal API calls
Offline modeYes - airplane modeNoNoNo
Setuppip installDocker + API keysDocker + PostgresAPI key + signup
Vector storesqlite-vec (built-in)pgvector (external)pgvector (external)pgvector (external)
Full-text searchFTS5 (built-in)Separate serviceSeparate serviceSeparate service
Auth requiredNoneSupabase authOAuth / API keyAPI key
Rate limitsUnlimitedPlan-dependentCredit-basedPlan-dependent
Data ownershipYou own the SQLite fileVendor-hostedVendor-hostedVendor-hosted
Export / importOne JSON fileLimitedLimitedLimited
DependenciesPython stdlib + ONNXDocker, PostgresDocker, Postgrespip + API key
Memory architectureBEAM (3-tier)Session + factsGraph RAG + factsSession + facts
Auto-consolidationSleep cycles built-inManual / paidManualManual
Temporal triplesNative with validityNoNoNo
BEAM-100K65.2% (100K, v3.0.0)63.0% (BEAM paper)Not publishedNot published

Switching from Honcho

You gain

No network hop, no monthly bill, 100% offline, no Docker, no credit system

You lose

Cloud dashboard, managed scaling, team sharing

Switching from Zep

You gain

No PostgreSQL to maintain, no deployment overhead, instant cold start

You lose

Graph RAG viz, SOC 2 certs, managed BYOC

Switching from Mem0

You gain

Sub-millisecond everything, no rate limits, no vendor lock-in, full data portability

You lose

Managed platform, 90K+ community, YC ecosystem

Switching from Hindsight

You gain

Zero dependency, no network calls, SQLite-native, BEAM architecture

You lose

Cloud sync, managed inference, web dashboard

The bottom line

  • Speed: no HTTP roundtrip, because there is no server. Memory operations are local SQLite reads and writes.
  • Privacy: Data never leaves your machine. No API calls. No telemetry.
  • Cost: Zero ongoing cost. No credits. No tiers. No "contact sales."
  • Simplicity: One pip install. No Docker. No config. No signup.

Trade-off: you manage your own backup (one SQLite file). No hosted team collaboration; Mnemosyne is built for individual agents and single-machine deployments.

Beam

Bilevel Episodic-Associative Memory (Beam)

Three SQLite tables working in harmony. Working memory for hot context auto-injected into prompts. Episodic memory for long-term storage with native vector + FTS5 search. Scratchpad for temporary agent reasoning.

Working Memory

Hot, recent context — auto-injected into prompts. Session-scoped by default, global scope available.

Episodic Memory

Long-term storage with sqlite-vec + FTS5. Hybrid ranking for semantic + text search.

Scratchpad

Temporary agent reasoning workspace. Cleared per session.

# Working memory — auto-injected
beam.remember("User prefers dark mode")

# Episodic — long-term with embedding
beam.remember(
    content="Detailed project context...",
    source="conversation",
    importance=0.8
)

# Hybrid recall across both tiers
results = beam.recall("user preferences")

# Consolidation — move old to episodic
beam.sleep()  # Compress & summarize
Trusted

Built for production

Been running it today (replaced mem0) and so far I am really impressed. Well done on building this!

Community userMigrated from mem0

Mnemosyne replaced our entire memory infrastructure. From 50ms average latency to local-first. Unreal.

Production deploymentMulti-platform deployment

The Beam architecture just makes sense. Working memory for context, episodic for long-term, automatic consolidation.

Open source communityGitHub contributors
Begin

Give your agent a memory

Join the growing number of developers who have replaced cloud memory services with something faster, simpler, and completely private.