Template name
Build an eve agent with Mem0 memory to save user facts and preferences, recall relevant context, and scope memory by user.

eve Mem0 Agent is a template for developers building assistants that remember user facts and preferences across conversations. It connects an eve AI agent to Mem0 through tools for saving and retrieving memories. Add your authentication provider to give each user a separate memory scope, then adapt the instructions to your application.
Build a personal assistant that can use information from earlier conversations when responding to a new request. A user might share a preference for concise answers or describe a work goal. The agent can save that fact and retrieve it in a later session when it relates to the question.
Two tools connect the agent to Mem0. remember saves a durable fact or preference through mem0.add. recall_memories searches for relevant saved facts through mem0.search. The instructions ask the model to recall context before answering personal questions and to save information that will remain useful across sessions.
Memory access uses the authenticated session's principalId. Both tools derive the memory scope from that identity, so the model doesn't choose another user's ID as a tool argument. This connects personalization to the identity supplied by your authentication provider.
Mem0 stores facts and searches for relevant context, which suits artificial intelligence agents whose responses depend on what a user has shared before. This template supplies the tool calls and connects their memory scope to the eve session. You can build AI agents around that pattern without writing the initial Mem0 integration yourself.
Use the starter when you want Mem0 to hold user memory and you plan to add application authentication. The included tools focus on durable facts and preferences. Saving those facts serves a different purpose from preserving every message in a chat interface. Compare the storage and retrieval choices in the guide to choosing an eve memory provider if you are deciding where long-term context should live.
eve is an open-source AI agent framework with durable execution. Its instructions and tools live in project files that you can version in Git. In this template, Mem0 supplies the long-term memory through the two tools; framework durability is a separate execution concern.
Model access runs through Vercel AI Gateway, using an API key or a linked Vercel project. Adapt agent/instructions.md while keeping the memory integration.
You need MEM0_API_KEY for the memory service and either AI_GATEWAY_API_KEY or a linked Vercel project for model access. Follow the template's setup instructions to install dependencies and pull your project's environment variables for local development.
The chat channel includes placeholderAuth(). Local development, the eve TUI, and your own Vercel deployments can reach the agent, but anonymous browser requests are blocked in production. Add an authentication provider before opening the agent to users who need separate memories.
For a disposable public demo, none() allows unauthenticated access with shared memory. Everyone using that demo shares the same memory scope. It does not provide per-user authentication.
The remember tool sends a durable fact or preference to Mem0, and recall_memories searches the saved information for context relevant to a request. The agent's instructions guide it to retrieve memories before personal answers and save facts worth using again. This behavior depends on the model calling the tools.
The memory tools use the authenticated session's principalId for their Mem0 scope. Their inputs accept a fact or search query, not a user ID chosen by the model. Your authentication provider must supply the identity for per-user memory.
No. The supplied chat authentication blocks anonymous browser traffic in production while allowing local development and access from the eve TUI or your own Vercel deployments. Replace the placeholder with application authentication for user access. Choosing none() instead creates a public demo with shared memory.
Set MEM0_API_KEY so the memory tools can call Mem0. Model requests also need AI Gateway access, provided by AI_GATEWAY_API_KEY or your linked Vercel project. Pull the project's environment variables when running locally.
Choose this template when you want Mem0 to store and search user facts across sessions, and you can connect each user to an authenticated identity. It fits applications where preferences or ongoing goals should inform later responses. Choose your memory backend separately from decisions about chat-history storage and the application's sign-in experience.

Build a TanStack Start chat with eve, interactive cards, sortable tables, follow-up forms, and conversations with shareable URLs.

Investigate incidents in Slack with an eve agent that tests hypotheses against Datadog, GitHub, and Vercel data and cites sources.

Build a Slack assistant that remembers personal preferences and channel conventions, with automatic recall and private Blob storage.