A database that fits in one file, inspired by video codecs
Memvid packages embeddings, search indexes, and metadata into a single .mv2 file so AI agents can carry long-term memory without infrastructure.

What it does
Memvid is a Rust-based memory layer that stores an agent’s knowledge — text, vectors, metadata, even audio and image embeddings — in a single self-contained .mv2 file. You write to it append-only, search it locally, and pass it around like a document. No server, no vector database, no network calls unless you want them.
The interesting bit The architecture borrows from video encoding: immutable “Smart Frames” written sequentially, with compression and indexing grouped for efficient parallel reads. This gives you crash safety, time-travel queries over past memory states, and a file format that behaves like a rewindable timeline rather than a mutable database.
Key highlights
- Single-file portability: data, embeddings, search structure, and metadata in one
.mv2capsule - Append-only, immutable frames with checksums — no corruption of existing data on writes
- Optional feature flags for BM25 text search (
lex), HNSW vector search (vec), CLIP image search (clip), Whisper transcription (whisper), and encryption - Local ONNX embeddings (BGE, Nomic, GTE) with manual model download; cloud API fallback available
- SDKs for Rust, Python, Node.js, plus a CLI — though the core is Rust
Caveats
- Benchmark claims (+35% SOTA, 1,372× throughput) are stated without published methodology detail in the README; treat as marketing until independently verified
- Local embedding models require manual
curldownloads to~/.cache/memvid/— not zero-config - The “video processing” GitHub topic is a stretch; this is inspired by video codecs, not actual video storage
Verdict Worth a look if you’re building offline-first or edge-deployed agents and want to eliminate RAG pipeline complexity. Skip it if you need multi-writer concurrency, horizontal scaling, or already have a vector database you’re happy babysitting.
Frequently asked
- What is memvid/memvid?
- Memvid packages embeddings, search indexes, and metadata into a single .mv2 file so AI agents can carry long-term memory without infrastructure.
- Is memvid open source?
- Yes — memvid/memvid is open source, released under the Apache-2.0 license.
- What language is memvid written in?
- memvid/memvid is primarily written in Rust.
- How popular is memvid?
- memvid/memvid has 16.2k stars on GitHub and is currently accelerating.
- Where can I find memvid?
- memvid/memvid is on GitHub at https://github.com/memvid/memvid.