memvid vs agentfs
Portable AI memory and agent state storage compared
memvid packages content and retrieval structures in a portable `.mv2` file for persistent search and memory. agentfs stores an agent’s files, key-value state, and tool-call history in SQLite, with an emphasis on queryable, auditable state.

memvid: Store Persistent AI Memory in a Single File
Memvid is a Rust-based memory layer that stores content, search indexes, and metadata in a portable .mv2 file. It suits developers building agents that need local, persistent retrieval without operating a separate database service.

agentfs: Store and Audit AI Agent State in SQLite
AgentFS stores an AI agent’s files, key-value state, and tool-call history in a SQLite database. Use its SDK or CLI when you need portable, queryable agent state and filesystem-level isolation.
| memvid | agentfs | |
|---|---|---|
| Language | Rust | Rust |
| License | Apache-2.0 | — |
| Stars | 16.6k | 3.5k |
| Forks | 1.4k | 204 |
| Last analyzed | Oct 3, 2026 | Oct 13, 2026 |
Key differences
- memvid focuses on searchable memory, with full-text search and optional vector similarity; agentfs focuses on filesystem data, key-value state, and tool-call records.
- memvid uses its `.mv2` format, while agentfs uses a SQLite database that can be queried with SQL.
- memvid offers BM25 search, optional embeddings, and optional document, image, and audio capabilities; agentfs provides filesystem inspection, history queries, snapshots, and filesystem mounting options.
- Both are Rust-based and provide Python and Rust SDKs; memvid also lists a Node.js SDK, while agentfs lists TypeScript.
- memvid is Apache-2.0 licensed; agentfs is MIT licensed and labeled beta, with a README caution about relying on it with production data without backups.
Choose memvid if you…
- need persistent, portable memory with full-text retrieval and optional vector search.
- want to bundle searchable knowledge in one file without a separate database service.
- need optional PDF, image, or audio capabilities alongside text memory.
Choose agentfs if you…
- need files, key-value state, and tool-call history stored together.
- want to query agent state and history with SQL or inspect changes through a CLI.
- need to snapshot agent state or use filesystem-level isolation for multiple agents.
Compare the numbers side by side, or add more projects
This comparison is generated with AI from the OSRepos analyses of both projects. Always check each project's repository and documentation before choosing.