Skip to main content

One file. All your AI memory.

Ship a single .mv2 file that holds your data, indexes, and crash recovery. Copy it, sync it, commit it to git. No embeddings required. No servers. No infrastructure. Just one file.
npm install -g memvid-cli

memvid create knowledge.mv2
echo "Alice works at Anthropic as a Senior Engineer." | memvid put knowledge.mv2
memvid find knowledge.mv2 --query "who works at AI companies"
memvid state knowledge.mv2 "Alice"
# { employer: 'Anthropic', role: 'Senior Engineer' }

Why Memvid?

Single File Storage

Everything in one portable .mv2 file. No databases, no Docker, no cloud dependencies.

Hybrid Search

Combines BM25 lexical search with vector similarity. Best of both worlds.

O(1) Entity Lookups

Ask “What’s Alice’s job?” and get instant answers via Memory Cards (SPO triplets).

Time-Travel Debugging

Record sessions, replay with different parameters, debug retrieval quality.

Memvid vs Alternatives

CapabilityMemvidPineconeChromaDBWeaviate
Single file.mv2Cloud onlySQLite + filesDocker
OfflineYesNoLimitedNo
Hybrid searchBM25 + vectorsVectors onlyVectors onlyBM25 + vectors
Entity lookupsO(1) via SlotIndexNoNoNo
Time-travelBuilt-inNoNoNo
Crash safetyEmbedded WALCloudManualCloud

Quick Start

Ready to build? Start with the 5-Minute Quickstart for a complete walkthrough.

Core Capabilities

Combine keyword matching with semantic understanding:
# Lexical search (fast, exact matching)
memvid find knowledge.mv2 --query "budget" --mode lex

# Semantic search (meaning-based)
memvid find knowledge.mv2 --query "financial outlook" --mode sem

# Hybrid search (combines both - default)
memvid find knowledge.mv2 --query "Q4 projections"

Memory Cards (Entity Extraction)

Extract structured facts and query them instantly:
# Extract facts from documents
memvid enrich knowledge.mv2 --engine rules

# Query entity state (O(1) lookup)
memvid state knowledge.mv2 "Alice"
# employer: Anthropic
# role: Senior Engineer
# location: San Francisco

LLM-Powered Q&A

Ask natural language questions with sourced answers:
export OPENAI_API_KEY=sk-...
memvid ask knowledge.mv2 --question "What is Alice's role?" --use-model openai
# Answer: Alice is a Senior Engineer at Anthropic in San Francisco.
# Sources: [Meeting Notes, Team Directory]

Time-Travel Debugging

Record and replay sessions to debug retrieval:
memvid session start knowledge.mv2 --name "qa-test"
memvid find knowledge.mv2 --query "test query"
memvid session end knowledge.mv2

# Replay with different parameters
memvid session replay knowledge.mv2 --session abc123 --top-k 10

Framework Integrations

Use Memvid with your favorite AI frameworks:

Start Exploring