Skip to main content

Memory

Carina separates short-lived conversation context from durable workspace memory. The runtime retrieves relevant records for each turn and applies workspace, tenant, and access boundaries before including them in agent context.

Memory backends and retention policies depend on the deployment configuration.

Memory backends

Episodic memory is pluggable. Configure with CARINA_MEMORY_BACKEND.

BackendEnvNotes
builtin (default)CARINA_MEMORY_BACKEND=builtinPostgres + pgvector, or SQLite in local mode
postgresDirect Postgres storeSame tables as builtin full mode
sqliteCARINA_LOCAL_MODE=trueFile at ~/.carina/data/memory.sqlite
honchoHONCHO_API_KEY, HONCHO_URLHoncho API
mem0MEM0_API_KEY or MEM0_URLMem0 cloud or OSS
carina memory backends
carina memory use honcho
carina memory test

Implementation: src/memory/backends/. RAG vectors remain on Postgres when available; episodic recall routes through the active backend.