Environment Variables | OpenMemory

Complete reference of environment variables for configuring OpenMemory Backend Server.

Environment Variables

Configure the OpenMemory Backend Server using these environment variables.

Core

VariableDescriptionDefault
OM_PORTServer port8080
OM_API_KEYMaster API key for authentication-
OM_LOG_LEVELLogging verbosity (debug, info, warn, error)info

Database

VariableDescriptionDefault
OM_DB_TYPEDatabase type (sqlite, postgres)sqlite
OM_DB_PATHPath to SQLite file./data/memory.sqlite
OM_DB_URLPostgreSQL connection string-

Embeddings

VariableDescriptionDefault
OM_EMBED_PROVIDERProvider (openai, gemini, ollama, local)openai
OM_OPENAI_API_KEYOpenAI API Key-
OM_GEMINI_API_KEYGoogle Gemini API Key-
OM_OLLAMA_URLOllama URLhttp://localhost:11434

Memory Tier

VariableDescriptionDefault
OM_TIERCognitive tier (fast, smart, deep)smart
© 2025 OpenMemory · MIT License