Skip to main content
Spin up Mem0 with the Node SDK in just a few steps. You’ll install the package, initialize the client, add a memory, and confirm retrieval with a single search.

Prerequisites

  • Node.js 18 or higher
  • (Optional) OpenAI API key stored in your environment when you want to customize providers

Install and run your first memory

1

Install the SDK

2

Initialize the client

3

Add a memory

4

Search memories

Output
Using Mem0? Star us on GitHub to help more developers discover memory for AI apps.
By default the Node SDK uses local-friendly settings (OpenAI gpt-5-mini, text-embedding-3-small, in-memory vector store, and SQLite history). Pass a config to swap any of them.

Configure providers

Pass a config object to new Memory() to use your own LLM, embedder, and vector store:
For the full provider catalog, history stores, and every config option, see Configuration.

What’s next?

Memory operations

Search, update, and manage memories with the full CRUD API.

Configure for production

Swap in your own LLM, embedder, and vector store.

Add to your framework

Wire Mem0 into LangChain, CrewAI, LangGraph, and 20+ more.
If you have any questions, please feel free to reach out:

Discord

Join our community

GitHub

Ask questions on GitHub

Support

Talk to founders