Backend Setup | OpenMemory
Guide to setting up the OpenMemory backend server for production.
Backend Setup
For production use cases, you should run the OpenMemory backend as a standalone service.
Requirements
- Node.js 18+
- 2GB RAM (minimum)
- Persistent Disk (for SQLite/Vector storage)
Installation
-
Clone the repo
git clone https://github.com/caviraoss/openmemory.git cd backend -
Install dependencies
npm install --production -
Build
npm run build -
Start
npm start
Configuration
Configure via .env:
PORT=8080
STORAGE_PATH=/data/memory.sqlite
AUTH_TOKEN=your-secret-token