Open-source AI memory framework

AI memory that forgets intelligently

A cognitive science-based memory framework for AI agents. Runs 100% local at $0 or with cloud APIs. Weibull forgetting, triple-path retrieval, 10-stage pipeline.

Memory should work like memory

The Problem

Other memory solutions store everything forever. Your agent drowns in noise. Context windows fill with stale facts. Retrieval degrades as data grows. The more your agent remembers, the worse it performs.

The Mnemo Way

Mnemo models human memory: important memories consolidate, trivial ones fade, frequently recalled knowledge strengthens. Built on decades of cognitive science research, not naive vector search.

10-Stage Memory Pipeline

From raw conversation to durable, retrievable memory in milliseconds.

Episodic Semantic Preference Procedural Relationship Reflection 6 Channels Classify Stage 1 Dedup & Contradict Weibull Decay Init Storage Embed + Write LanceDB Vectors Graphiti Knowledge Graph Retrieval (Read) Vector Search BM25 Full-text Graph Traverse RRF + Rerank

Built different, by design

Every feature grounded in cognitive science and real-world agent workloads.

Weibull Decay

Stretched-exponential forgetting with tier-specific beta parameters. Memories fade naturally unless reinforced through recall.

Triple-Path Retrieval

Vector similarity, BM25 full-text, and knowledge graph traversal fused with Reciprocal Rank Fusion for robust recall.

Contradiction Detection

Three-layer LLM detection pipeline. When facts conflict, old versions auto-expire and new truths consolidate.

Scope Isolation

Per-agent memory with configurable access rules. Each agent operates in its own namespace with controlled sharing.

Cross-encoder Rerank

Voyage rerank-2 precision ranking ensures the most relevant memories surface first, every time.

Cognitive Science

Spaced repetition, emotional salience scoring, and spreading activation. Memory that learns how to remember.

Ablation-Validated

35 ablation tests prove every module earns its place. No cargo-cult features — each component has measurable, verified impact.

Run it yourself, or let us run it for you

Core is free and fully functional. Cloud adds adaptive intelligence and zero-ops hosting.

Self-hosted

Core (Free)

$0 · MIT License

  • npm install @mnemoai/core
  • Weibull decay + tier lifecycle
  • Vector + BM25 + Knowledge Graph
  • Cross-encoder rerank
  • Contradiction detection
  • Multi-backend (LanceDB, Qdrant, Chroma, PGVector)
  • $0 with Ollama, or BYO cloud API keys
Full framework. You run it, you own it.
Cloud

Mnemo Cloud

Free tier · Hosted API

  • Everything in Core
  • Adaptive retrieval (pool + score + frequency)
  • 6-category intelligent extraction
  • Extraction-time contradiction detection
  • Session deduplication
  • Zero setup — one API call to start
  • Automatic backup + monitoring
POST https://api.m-nemo.ai/v1/store — done.
Enterprise

Custom

Contact us

  • Everything in Cloud
  • On-prem deployment
  • Custom integrations
  • Dedicated support engineer
  • SLA guarantees
  • Training and onboarding
For teams with custom requirements.

Simple, transparent pricing

Self-host for free. Or use Mnemo Cloud for zero-ops.

Core

Self-hosted, full framework

Free
Forever. MIT License.
  • npm install @mnemoai/core
  • Weibull decay + lifecycle
  • Vector + BM25 + rerank
  • Contradiction detection
  • Multi-backend support
  • $0 with Ollama
  • GitHub Issues support
Get Started

Enterprise

Custom deployment and SLAs

Contact Us
Custom terms
  • Everything in Cloud
  • On-prem deployment
  • Custom integrations
  • Dedicated support
  • SLA guarantees
  • Training and onboarding
Contact Sales

Self-hosted Core: you bring your own API keys. Run 100% locally with Ollama for $0, or use cloud providers (~$5-45/mo). Ecosystem: Vercel AI SDK, REST Server, Python SDK.

Up and running in 60 seconds

100% Local ($0)
# Install
npm install @mnemoai/core

# Pull Ollama model
ollama pull bge-m3

# Done! Use preset in your code:
const mnemo = await createMnemo({
  preset: 'ollama',
  dbPath: './memory-db'
});
Cloud APIs (recommended)
# Install
npm install @mnemoai/core

# Auto-detect from env var
const mnemo = await createMnemo({
  dbPath: './memory-db'
});

# Or use a preset
const mnemo = await createMnemo({
  preset: 'openai',
  dbPath: './memory-db'
});
agent.ts
import { createMnemo } from '@mnemoai/core';

// Initialize — auto-detect, preset, or full config
const mnemo = await createMnemo({
  preset: 'openai',  // or 'ollama', 'voyage', 'jina'
  dbPath: './memory-db',
});

// Store a memory
await mnemo.store({
  text: 'User prefers dark mode and concise responses',
  category: 'preference',
});

// Retrieve — decay, dedup, and ranking applied automatically
const memories = await mnemo.recall('user preferences');

console.log(memories);
// [{ text: "User prefers dark mode...", score: 0.94, category: "preference" }]

Feature comparison

How Mnemo compares to other AI memory frameworks on architecture and features.

FeatureMnemoMem0ZepLetta
Weibull DecayYesNoNoNo
Triple-Path RetrievalVec+BM25+GraphVector onlyVector+temporalVector only
Contradiction Detection3-layer LLMBasicNoNo
Cross-encoder RerankVoyage/Jina/OllamaNoNoNo
100% Local ($0)Ollama presetNoNoPartial
Open SourceMITOpen core + SaaSPaidFreemium
Preset Config (1 line)4 presetsNoNoNo
LOCOMO Benchmark85.2% (Cloud) / 46.4% (Core)~31.7%*
Ablation Validated35 testsNoNoNo
MCP ServerBuilt-inNoNoNo

*Tested under identical conditions: same LOCOMO dataset, same GPT-4.1 judge, same scoring rubric. Open-source benchmark harness — reproduce it yourself.