Packages embeddings, search structure, and metadata into one portable file so agents get fast retrieval and persistent memory without a separate vector database
Overview
Memvid is a portable memory system aimed at AI agents that need long-term recall without maintaining server-based RAG stacks or external vector stores. Data, embeddings, indices, and metadata live together in a single .mv2 capsule file that can be moved across environments.
Content is organized as append-only Smart Frames inspired by video-encoding ideas: immutable units with timestamps and checksums, grouped for compression, indexing, and parallel reads. That layout supports timeline inspection, branching memory states, and crash-safe committed writes.
Retrieval combines lexical and semantic approaches when optional features are enabled, including BM25 full-text search, local ONNX text embeddings, CLIP image embeddings, Whisper transcription, and optional OpenAI API embeddings. Capsules can be encrypted, shared with rules and expiry, and integrated through SDKs or agent-facing interfaces such as MCP.
Deployments can stay local-first and offline-capable on consumer hardware, on-premises, or in private clouds while keeping the same file format. Typical uses cited include long-running agents, enterprise knowledge bases, codebase understanding, and auditable workflows that need rewindable memory states.
Key features
- Single .mv2 memory capsule file
- Append-only Smart Frame storage
- Hybrid BM25 and vector search
- Timeline and time-travel memory states
- Optional PDF, audio, and image ingestion
- Rust core with multi-language SDKs
- Local ONNX embedding models
- Password-based encrypted capsules
Use cases
- Long-running AI agent memory
- Offline-first knowledge recall
- Enterprise knowledge bases
- Customer support agents
- Auditable AI workflow debugging