Skip to main content

Install

Verify installation:
memvid --version

Global Flags

FlagDescription
-v, --verboseDebug output (repeat to increase)
--embedding-model MODELEmbedding model (bge-small, bge-base, nomic, gte-large, openai, openai-large)
--parallel-segmentsEnable parallel segment building
--jsonOutput as JSON (available on most commands)

Core Workflows

# Create a memory file
memvid create data.mv2 --tier free --size 1GB

# Ingest documents with embeddings
memvid put data.mv2 --input docs/whitepaper.pdf --title "Whitepaper" --label docs --embedding --vector-compression

# Search
memvid find data.mv2 --query "hybrid search" --top-k 5 --json

# Ask with citations
memvid ask data.mv2 --question "What changed last release?" --top-k 6 --mode hybrid --json

# Timeline and replay
memvid timeline data.mv2 --limit 20 --as-of-frame 150

# Inspect a frame
memvid view data.mv2 --frame-id 10 --page 1

# Stats and maintenance
memvid stats data.mv2
memvid verify data.mv2 --deep
memvid doctor data.mv2 --vacuum --rebuild-lex-index --rebuild-vec-index

API Reference

File Operations

CommandPurposeKey Flags
createCreate new .mv2 file--tier, --size, --no-lex, --no-vector
openInspect metadata--json
statsShow file statistics--json

Data Operations

CommandPurposeKey Flags
putAppend from file or stdin--input, --uri, --title, --embedding, --vector-compression
put-manyBatch ingest--input batch.json, --compression-level
api-fetchFetch from HTTP + ingest--config, --mode, --dry-run
updateReplace payload/metadata--frame-id, --uri, --input, --title
deleteRemove a frame--frame-id, --uri, --yes

Search Operations

CommandPurposeKey Flags
findLexical/hybrid search--query, --mode, --top-k, --scope
vec-searchSearch with vector input--vector, --embedding
askRetrieval + synthesis--question, --mode, --top-k, --sources

Timeline & View

CommandPurposeKey Flags
timelineChronological list--limit, --since, --until, --reverse
whenTemporal phrase resolution--on, --tz, --anchor, --window
viewRender a frame--frame-id, --uri, --page, --play

Memory Cards & Enrichment

CommandPurposeKey Flags
enrichExtract memory cards--engine, --incremental, --json
memoriesView memory cards--entity, --slot, --json
stateGet entity state (O(1))--json
factsAudit extracted facts--entity, --json
exportExport facts--format, --entity

Tables

CommandPurposeKey Flags
tables importImport tables from PDF--input, --embed-rows
tables listList all tables--json
tables exportExport table data--table-id, --format

Maintenance

CommandPurposeKey Flags
verifyCheck file integrity--deep
doctorRepair and optimize--vacuum, --rebuild-lex-index, --rebuild-vec-index
whoCheck file lock--json
nudgeRelease stale lock

Tickets & Capacity

CommandPurposeKey Flags
tickets syncSync from dashboard--memory-id, --api-key
tickets applyApply ticket manually--ticket
tickets listList current tickets--json
plan showShow current plan--json

Sessions

CommandPurposeKey Flags
session startStart recording--name
session endEnd recording
session listList sessions--json
session replayReplay session--adaptive, --top-k
Embeddings are off by default in the CLI to save space. Add --embedding (and optionally --vector-compression) when you want vectors.

Environment Variables

VariablePurposeDefault
MEMVID_API_KEYDashboard API key for ticket syncn/a
MEMVID_API_URLControl plane base URLproduction URL
MEMVID_CACHE_DIRTicket cache directory~/.cache/memvid
MEMVID_MODELS_DIRModel cache directory~/.memvid/models
MEMVID_OFFLINESkip model downloads0
MEMVID_EMBEDDING_MODELDefault embedding modelbge-small
MEMVID_LLM_CONTEXT_BUDGETMax chars to send to LLMsunset
MEMVID_PARALLEL_SEGMENTSForce parallel builderunset
OPENAI_API_KEYOpenAI API keyn/a
ANTHROPIC_API_KEYAnthropic API keyn/a
GEMINI_API_KEYGoogle Gemini API keyn/a

Error Codes

CodeNameDescription
MV001CapacityExceededStorage limit reached
MV002TicketInvalidInvalid ticket signature
MV004LexIndexDisabledLexical search not enabled
MV007FileLockedFile locked by another process
MV010FrameNotFoundRequested frame doesn’t exist
MV011VecIndexDisabledVector search not enabled
MV014VecDimensionMismatchWrong embedding dimension
MV015EmbeddingFailedEmbedding generation failed
See Error Reference for complete documentation.

Tips

  • Use --json on any command for structured output
  • Replay filters: --as-of-frame and --as-of-ts are available on find, ask, and timeline
  • Locks: mutation commands accept --lock-timeout and --force for stale writers
  • doctor and verify are safe read-only when run with --plan-only or --deep