📢 Announcing our research paper: Mem0 achieves 26% higher accuracy than OpenAI Memory, 91% lower latency, and 90% token savings! Read the paper to learn how we're revolutionizing AI agent memory.

Setting Up OpenMemory

Getting started with OpenMemory is straight forward and takes just a few minutes to set up on your local machine. Follow these steps:

Getting started

First clone the repository and then follow the instructions:

# Clone the repository
git clone https://github.com/mem0ai/mem0.git
cd mem0/openmemory

# Create the backend .env file with your OpenAI key
pushd api && echo "OPENAI_API_KEY=your_key_here" > .env && popd

# Build the Docker images
make build

# Start all services (API server, vector database, and MCP server components)
make up 

# Start the frontend
cp ui/.env.example ui/.env
make ui

You can configure the MCP client using the following command (replace username with your username):

npx install-mcp i "http://localhost:8765/mcp/cursor/sse/username" --client cursor

The OpenMemory dashboard will be available at http://localhost:3000. From here, you can view and manage your memories, as well as check connection status with your MCP clients.

Once set up, OpenMemory runs locally on your machine, ensuring all your AI memories remain private and secure while being accessible across any compatible MCP client.

Getting Started Today