Skip to content
Agent Stack
  • AI SDK
  • AI Gateway
  • Sandbox
  • Passport
  • Connect
  • eve
Core Platform
  • Security
  • Content Delivery
  • Fluid Compute
  • Observability
  • Workflows
  • CI/CD
Tools
  • Next.js
  • Vercel Agent
  • Vercel Plugin
  • Open Source
  • Domains↗
  • v0↗
Learn
  • Docs
  • About
  • Blog
  • Changelog
  • Knowledge Base
Build
  • AI Apps
  • Web Apps
  • Marketing Sites
  • Platforms
  • Commerce
Explore
  • Customers
  • Marketplace
  • Partner Finder
  • AWS
  • Community↗
EnterprisePricing
Contact
Log InSign Up
Dashboard

Products

Agent Stack

  • AI SDK
  • AI Gateway
  • Sandbox
  • Passport
  • Connect
  • eve

Core Platform

  • Security
  • Content Delivery
  • Fluid Compute
  • Observability
  • Workflows
  • CI/CD

Tools

  • Next.js
  • Vercel Agent
  • Vercel Plugin
  • Open Source
  • Domains↗
  • v0↗
Resources

Learn

  • Docs
  • About
  • Blog
  • Changelog
  • Knowledge Base

Build

  • AI Apps
  • Web Apps
  • Marketing Sites
  • Platforms
  • Commerce

Explore

  • Customers
  • Marketplace
  • Partner Finder
  • AWS
  • Community↗
Enterprise
Pricing
Sign UpLog In
Contact

eve Memory Agent

eve agent template with long-term memory powered by Mem0. Deploy from the Vercel Marketplace.

DeployView Demo
Template Thumbnail

Mem0 eve template

An eve agent template with long-term memory powered by Mem0. eve is Vercel's framework for durable backend AI agents; this template wires Mem0 into an eve agent so it remembers facts and preferences about each user across conversations, getting more helpful over time instead of starting from scratch.

Deploy

Deploy clones this repo and installs the Mem0 integration, which sets MEM0_API_KEY on your project automatically. Model access uses the Vercel AI Gateway through your linked project.

How it works

The agent has two Mem0-backed tools:

  • remember — saves a durable fact or preference (mem0.add).
  • recall_memories — searches long-term memory for relevant facts (mem0.search).

The instructions (agent/instructions.md) tell the model to recall before answering and to remember durable facts. Memory is scoped per user via ctx.session.auth.current.principalId (see agent/lib/mem0.ts).

Auth

The chat channel (agent/channels/eve.ts) ships with placeholderAuth(), the safe default: local development works, your own Vercel deployments and the eve TUI can reach the agent, and anonymous browser traffic is blocked in production.

Add your auth provider (Auth.js, Clerk, vercelOidc()) to open it to real users. Memory is scoped per authenticated user via principalId, so each user gets their own memory automatically once a provider is in place. For a throwaway public demo where everyone shares one memory, swap placeholderAuth() for none().

Run locally

npm install
vercel env pull # pulls MEM0_API_KEY from your Vercel project
# set AI_GATEWAY_API_KEY, or link a Vercel project for model access
npm run dev # opens the eve development REPL

Try it: tell the agent something ("I'm vegetarian and allergic to nuts"), start a new session, and ask "what can I eat?" — it recalls what you told it.

Learn more

  • Mem0 on Vercel
  • Mem0 quickstart
  • eve documentation

License

Apache-2.0. See LICENSE.

GitHub
Ownermem0ai
Repositoryeve-mem0-template
Use Cases
AI
Stack
eve

Related Templates

eve Software Factory

Software factory built on eve: AI agents work each stage of the development loop, and people make the judgment calls.
eve Software Factory thumbnail

eve Sanity Copilot

Give your team a Sanity copilot in Slack. It runs GROQ, edits schemas, manages releases, and asks before it touches production.
eve Sanity Copilot thumbnail

eve GitHub Maintainer

GitHub maintainer eve agent for your inbox. Weekly issue digests you reply to, PR summaries, Linear handoffs, and @mention answers.
eve GitHub Maintainer thumbnail

Agent Stack

  • AI SDK
  • AI Gateway
  • Sandbox
  • Workflows
  • ConnectNew
  • PassportNew
  • eveNew

Core Platform

  • CI/CD
  • Content Delivery
  • Fluid Compute
  • Observability

Security

  • Platform Security
  • WAF
  • Bot Management
  • BotID

Tools

  • Vercel DropNew
  • Vercel Agent
  • Vercel PluginNew
  • Agent Skills
  • Domains
  • v0

Frameworks

  • eveNew
  • Next.js
  • Nuxt
  • SvelteKit
  • Nitro
  • Turborepo
  • Tanstack Start
  • FastAPI
  • All frameworks

SDKs

  • Vercel SDK
  • Workflow SDKNew
  • Flags SDK
  • Chat SDKNew
  • Queues SDKNew
  • Streamdown

Build

  • AI Apps
  • Web Apps
  • Marketing Sites
  • Platforms
  • Commerce
  • Platform Engineers
  • Design Engineers

Learn

  • Docs
  • Blog
  • Changelog
  • Knowledge Base
  • Academy
  • Articles
  • Community
  • Is Agentic

Explore

  • Customers
  • Marketplace
  • Templates
  • Partner Finder
  • Vercel + AWS

Company

  • About
  • Careers
  • Press
  • Events
  • Startups
  • Shipped on Vercel
  • Open Source Program
  • Enterprise
  • Pricing
  • Help

Legal & Trust

  • Privacy Policy
  • Terms of Service
  • Cookie Policy
  • DPA
  • Acceptable Use Policy
  • Legal (all documents)
  • Trust Center
  • Status

Social

  • GitHub
  • X
  • LinkedIn
  • YouTube
  • Instagram
  • VercelVercel
DeployView Demo

Loading status…

Select a display theme: