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 servers. No infrastructure. Just one file.
create() will OVERWRITE existing files! Note the different parameter order:
  • create(path, kind) — path first, creates NEW file (deletes existing data)
  • use(kind, path) — kind first, opens EXISTING file (preserves data)
Always check if the file exists first. See examples above.

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


Quick Start

CLI

Node.js

Python

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

Core Capabilities

Combine keyword matching with semantic understanding:

Memory Cards (Entity Extraction)

Extract structured facts and query them instantly:

LLM-Powered Q&A

Ask natural language questions with sourced answers:

Time-Travel Debugging

Record and replay sessions to debug retrieval:

Framework Integrations

Use Memvid with your favorite AI frameworks:

LangChain

Vector store adapter

LlamaIndex

Index and retriever

Vercel AI

RAG pipeline

OpenAI

Function calling

Start Exploring

5-Minute Quickstart

Build your first AI memory with search and Q&A

CLI Reference

Complete command reference for all 38+ commands

Node.js SDK

Full API reference with TypeScript types

Python SDK

Complete Python API with examples

Core Concepts

Deep dive into .mv2 format, indexes, and architecture

Embedding Providers

OpenAI, Gemini, Mistral, Cohere, and local models