{
 "kind": "api",
 "slug": "mem0",
 "path": "apis/mem0/",
 "name": "Mem0",
 "logo": "https://agentgid.com/media/avatars/mem0ai.png",
 "maker": null,
 "density": "full",
 "crumbs": [
  [
   "APIs",
   "apis/"
  ],
  [
   "Memory for agents",
   "apis/memory/"
  ]
 ],
 "lead": "Long-term memory for your AI assistant.",
 "chips": [
  {
   "label": "Memory for agents",
   "path": "apis/memory/"
  },
  {
   "label": "Official MCP server"
  }
 ],
 "primary": {
  "label": "Copy prompt for your agent",
  "copy": "Add Mem0 memory to my chatbot: on the server read MEM0_API_KEY from .env, pin mem0ai 2.2.1, add each finished conversation with the signed-in user's id, search with filters={\"user_id\": ...} before each model call, and never send the key to the browser."
 },
 "links": [
  {
   "label": "Website",
   "href": "https://mem0.ai"
  },
  {
   "label": "Pricing",
   "href": "https://mem0.ai/pricing"
  },
  {
   "label": "GitHub",
   "href": "https://github.com/mem0ai/mem0"
  }
 ],
 "track": "Outages, price changes and new versions on your dashboard",
 "verdicts": [
  {
   "key": "price",
   "label": "Price",
   "value": "Open source",
   "status": "yes",
   "sub": "Run it yourself for free",
   "quote": "First 30 days: 10,000 adds and 1,000 retrievals a month, model calls on us",
   "note": "Free tier: First 30 days: 10,000 adds and 1,000 retrievals a month with model calls on Mem0; then 50,000 adds and 10,000 retrievals a month with your own LLM key. As reported on the official pricing page, checked Nov 2, 2026.",
   "src": "https://mem0.ai/pricing"
  },
  {
   "key": "commercial",
   "label": "Commercial use",
   "value": "With conditions",
   "status": "cond",
   "sub": null,
   "quote": "sublicense, lease, sell, resell, rent, loan, distribute, transfer or otherwise allow the use of the Mem0 Technology for the benefit of any unauthorized third party",
   "note": "Allowed under the platform terms, but you may not resell or sublicense the service; on the free plan Mem0 may use stored content to train models. Data: Yes on the free plan (perpetual licence that includes training models); no on paid plans.",
   "src": "https://mem0.ai/terms"
  },
  {
   "key": "key",
   "label": "Key & sign-up",
   "value": "API key, server only",
   "status": "info",
   "sub": "Env var MEM0_API_KEY (name used in the docs' cURL and MCP examples; pass it to MemoryClient)",
   "quote": "Prefix your Mem0 API key with 'Token '.",
   "note": "API key sent as \"Authorization: Token <key>\"; the hosted MCP server also accepts browser sign-in or the key as a bearer token. The key reaches every memory in the project; keep it on the server.",
   "src": "https://docs.mem0.ai/api-reference/memory/add-memories.md"
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Official MCP server",
   "status": "yes",
   "sub": "llms.txt · OpenAPI · SDK",
   "quote": "Memories you store this way live in your Mem0 account, not on your computer.",
   "note": " Our agent check: 6 of 6 (Nov 13, 2026).",
   "src": "https://docs.mem0.ai/platform/mem0-mcp.md"
  }
 ],
 "vfoot": "Checked against the maker's official pages, pricing on Nov 2, 2026.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What Mem0 does",
   "parts": [
    {
     "t": "prose",
     "text": "Mem0 gives your chatbot or AI agent a memory that lasts between conversations. Your app sends it the chat, Mem0 picks out facts worth keeping, such as \"allergic to nuts\", and later returns the ones that fit a new question. It is an online service with a free plan, and the same engine is open source for self-hosting."
    },
    {
     "t": "list",
     "items": [
      "Mem0 is one of 6 APIs in the Memory for agents category on AgentGid.",
      "It is one of 5 that can be started for free.",
      "It ships an official MCP server, like 3 others here.",
      "Its official SDK is the 1st most downloaded in the category (788K a week)."
     ],
     "muted": true
    },
    {
     "t": "h3",
     "text": "What people build with it"
    },
    {
     "t": "uses",
     "items": [
      {
       "title": "Assistant that remembers each customer",
       "text": "Your support bot recalls a customer's past tickets and preferences, so they do not have to explain everything again.",
       "idea": false
      },
      {
       "title": "Personal details in every answer",
       "text": "Before the AI answers, fetch what it already knows about this person and add it to the prompt, so it does not ask again.",
       "idea": false
      },
      {
       "title": "Tutor that tracks progress",
       "text": "A learning app remembers what a student finds hard and what they already mastered, and adapts the next lesson.",
       "idea": false
      },
      {
       "title": "Memory for your coding assistant",
       "text": "Connect Claude Code, Cursor or another assistant to the hosted Mem0 server so it keeps notes across sessions.",
       "idea": false
      },
      {
       "title": "Game characters that remember players",
       "text": "Characters recall a player's earlier choices and style, so the game reacts to what happened before.",
       "idea": false
      },
      {
       "title": "Separate memory per agent",
       "text": "Give a planner bot and a reviewer bot their own notes about the same user, so their context does not mix.",
       "idea": false
      }
     ]
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "Mem0 popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "732K",
       "l": "SDK downloads a week",
       "d": "+20.7% on the 4-week average",
       "up": true
      },
      {
       "n": "425",
       "l": "public agent repos use its SDK"
      },
      {
       "n": "69.4K",
       "l": "GitHub stars, mem0ai/mem0"
      }
     ]
    },
    {
     "t": "small",
     "text": "SDK downloads from npm and PyPI, weekly. Numbers as of Nov 17, 2026."
    }
   ]
  },
  {
   "id": "pricing",
   "nav": "Pricing and limits",
   "h2": "Pricing",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "Free tier",
       "v": "First 30 days: 10,000 adds and 1,000 retrievals a month with model calls on Mem0; then 50,000 adds and 10,000 retrievals a month with your own LLM key"
      },
      {
       "l": "Cheapest plan",
       "v": "No monthly plan"
      },
      {
       "l": "Usage price",
       "v": "Usage-based billing past the free limits, with a monthly cap you set; Custom plan for higher limits or a contract (no public plan prices)"
      },
      {
       "l": "Plans",
       "v": "Graph memory only on Pro and above. Usage-based pricing available on request. The old self-run mem0-mcp repo is archived; the official MCP is now cloud-hosted."
      }
     ]
    },
    {
     "t": "h3",
     "text": "What one action costs"
    },
    {
     "t": "table",
     "head": [
      "Action",
      "Price"
     ],
     "num": true,
     "rows": [
      [
       "Free plan (unlimited end users; 10,000 adds and 1,000 retrievals a month for 30 days)",
       "Free"
      ],
      [
       "1,000 adds, paid to your own LLM provider with a recommended model (low end)",
       "$3.55"
      ],
      [
       "1,000 adds, paid to your own LLM provider with a recommended model (high end)",
       "$5.34"
      ]
     ]
    },
    {
     "t": "more",
     "items": [
      {
       "title": "Price history",
       "items": [
        "A year of the pricing page in the Internet Archive (11 months): the lowest monthly figure went from $19 (2025-11) to $19 (2026-10).",
        "2026-05: lowest $/month figure $19 → $79; new figures $79/mo, $250/mo; no longer shown $19/mo",
        "2026-06: free plan shown",
        "2026-08: lowest $/month figure $79 → $19; new figures $19/mo; no longer shown $79/mo, $250/mo",
        "2 changes in our catalog since Oct 9, 2026, last on Nov 2, 2026."
       ]
      }
     ]
    },
    {
     "t": "small",
     "text": "As reported on the official pricing page, checked Nov 2, 2026. Prices change: confirm before you buy.",
     "link": "mem0.ai/pricing",
     "href": "https://mem0.ai/pricing"
    }
   ]
  },
  {
   "id": "limits",
   "nav": null,
   "spy_as": "pricing",
   "h2": "Limits",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "Free (first 30 days)",
       "v": "10,000 adds and 1,000 retrievals a month",
       "src": "https://mem0.ai/pricing"
      },
      {
       "l": "Free (with your own LLM key)",
       "v": "50,000 adds and 10,000 retrievals a month",
       "src": "https://mem0.ai/pricing"
      },
      {
       "l": "Free (after 30 days, no key)",
       "v": "Searches up to 1,000 a month; new adds refused",
       "src": "https://docs.mem0.ai/platform/pricing.md"
      }
     ]
    },
    {
     "t": "small",
     "text": "From the official docs.",
     "link": "mem0.ai/pricing",
     "href": "https://mem0.ai/pricing"
    }
   ]
  },
  {
   "id": "access",
   "nav": "Access and terms",
   "h2": "Key and access",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "How it signs in",
       "v": "API key sent as \"Authorization: Token <key>\"; the hosted MCP server also accepts browser sign-in or the key as a bearer token."
      },
      {
       "l": "Environment variable",
       "v": "MEM0_API_KEY (name used in the docs' cURL and MCP examples; pass it to MemoryClient)",
       "code": true
      },
      {
       "l": "Safe in browser code",
       "v": "No, keep it on your server",
       "status": "no"
      },
      {
       "l": "Card at sign-up",
       "v": "No"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Steps only a person can do"
    },
    {
     "t": "list",
     "items": [
      "Sign up for Mem0 Platform and create an API key; decide whether the free plan's training licence is acceptable for your users' data. Read MEM0_API_KEY from .env on the server; the person pastes it there, not into the chat.",
      "Before the 30 days end, connect your own LLM key (organization owner, Settings, BYOK). No code change; adds keep working with higher free limits.",
      "For more than the free limits, turn on usage-based billing with a monthly cap, or ask for a custom plan. No code change; handle limit errors in the app."
     ]
    }
   ]
  },
  {
   "id": "terms",
   "nav": null,
   "spy_as": "access",
   "h2": "Commercial use and your data",
   "parts": [
    {
     "t": "prose",
     "text": "The Mem0 code is open source under Apache 2.0. The hosted platform has its own terms; on the free plan, Mem0 may use what you store to train AI models, and paid plans exclude that."
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In a paid app",
       "v": "With conditions",
       "status": "cond",
       "sub": "Allowed under the platform terms, but you may not resell or sublicense the service; on the free plan Mem0 may use stored content to train models.",
       "quote": "sublicense, lease, sell, resell, rent, loan, distribute, transfer or otherwise allow the use of the Mem0 Technology for the benefit of any unauthorized third party",
       "src": "https://mem0.ai/terms"
      },
      {
       "l": "To train your own AI",
       "v": "With conditions",
       "status": "cond",
       "sub": "On the free plan your stored content may be used by Mem0 to train AI models; on a paid plan it is not used for training.",
       "quote": "Mem0 will not use Customer Content of Customer's accessing the Mem0 Service on a Paid Plan to train or improve any machine learning or artificial intelligence models",
       "src": "https://mem0.ai/terms"
      },
      {
       "l": "client-work",
       "v": "With conditions",
       "status": "cond",
       "sub": "Possible, but you must have the right to upload your client's and users' content and to grant Mem0 the licences in the terms.",
       "quote": "Customer represents and warrants that it has all rights necessary to upload and use the Customer Content",
       "src": "https://mem0.ai/terms"
      },
      {
       "l": "redistribute-files",
       "v": "With conditions",
       "status": "cond",
       "sub": "The open-source code may be passed on under Apache 2.0; the hosted service may not be resold.",
       "quote": "Apache 2.0 - see the LICENSE file for details.",
       "src": "https://github.com/mem0ai/mem0/blob/main/README.md"
      },
      {
       "l": "Trains on what you send",
       "v": "Yes on the free plan (perpetual licence that includes training models); no on paid plans.",
       "quote": "For the avoidance of doubt, Mem0 will not use Customer Content of Customer's accessing the Mem0 Service on a Paid Plan to train or improve any machine learning or artificial intelligence models, except as expressly set forth in Section 5.3.",
       "src": "https://mem0.ai/terms"
      },
      {
       "l": "Keeps your data",
       "v": "Memories are kept while the account is active and deleted or de-identified when no longer needed.",
       "quote": "\"Memories\" and other inputs are retained while your account is active and are deleted or de-identified when no longer needed.",
       "src": "https://mem0.ai/privacy-policy"
      },
      {
       "l": "Where data is stored",
       "v": "Cloud providers in the United States and other countries; no region choice is described for the platform.",
       "quote": "Your personal information may be transferred to the United States or other locations where privacy laws may not be as protective as those in your state, province, or country.",
       "src": "https://mem0.ai/privacy-policy"
      }
     ]
    }
   ]
  },
  {
   "id": "errors",
   "nav": null,
   "spy_as": "access",
   "h2": "Errors to handle",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "401",
       "v": "Missing or invalid API key",
       "sub": "Check the \"Token \" prefix and MEM0_API_KEY, or create a new key in the dashboard."
      },
      {
       "l": "400",
       "v": "Validation error, such as no messages or no user, agent or run id",
       "sub": "Send messages and at least one entity id with every add."
      },
      {
       "l": "monthly limit reached",
       "v": "Calls past the monthly free limit",
       "sub": "Wait for the monthly reset, connect your own LLM key, or turn on usage-based billing with a cap."
      },
      {
       "l": "FAILED add (provider out of quota)",
       "v": "Your connected LLM provider account has no credit",
       "sub": "Add credit with the provider, then send the failed adds again; Mem0 does not retry them."
      },
      {
       "l": "401 Authentication required (MCP)",
       "v": "The MCP client is neither signed in nor sending the API key",
       "sub": "Sign in through the client's browser prompt or send MEM0_API_KEY as a bearer token."
      }
     ]
    }
   ]
  },
  {
   "id": "agent",
   "nav": "For agents",
   "h2": "Use it from an agent",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "Our agent check",
       "v": "6 of 6: llms.txt yes, OpenAPI yes, SDK yes, MCP yes, status page yes, AI assistants allowed yes",
       "sub": "Checked Nov 13, 2026."
      },
      {
       "l": "MCP server",
       "v": "Mem0 MCP (hosted at mcp.mem0.ai)",
       "sub": "npx mcp-add \\\n  --name mem0-mcp \\\n  --type http \\\n  --url \"https://mcp.mem0.ai/mcp\" \\\n  --clients \"claude code\""
      },
      {
       "l": "npm",
       "v": "npm install mem0ai",
       "code": true
      },
      {
       "l": "PyPI",
       "v": "pip install mem0ai",
       "code": true
      }
     ]
    },
    {
     "t": "h3",
     "text": "Instructions in its docs to check first"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "The docs say",
       "v": "“Install the CLI, then mint a key without email, dashboard, or OTP”",
       "sub": "Never create an account for the person. Ask them to sign up and paste the key into .env themselves."
      },
      {
       "l": "The docs say",
       "v": "“If you're an AI agent (Claude Code, Cursor, Codex, Cline, Aider, Windsurf, or any other coding tool), run the four commands below. You don't need a human to set Mem0 up for you.”",
       "sub": "The commands install a global CLI and sign up an account under the agent's name; ask the person first and let them sign up."
      },
      {
       "l": "The docs say",
       "v": "“Mem0 Platform (managed) is the recommended path”",
       "sub": "Vendor steering; check with the person whether the free plan's training licence is acceptable before choosing hosted over self-hosted."
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "Mem0",
       "me": true,
       "facts": [
        "Free (open source)",
        "Free tier",
        "Official MCP"
       ]
      },
      {
       "name": "Zep",
       "why": "Pick Zep for context-graph memory that ingests chats and business data and returns relevant facts.",
       "path": "apis/zep/",
       "facts": [
        "from $25 per 10,000 credits",
        "Free tier",
        "Official MCP"
       ]
      },
      {
       "name": "Supermemory",
       "why": "Pick Supermemory for a memory and retrieval service that builds per-user memory graphs from text, files and connectors.",
       "path": "apis/supermemory/",
       "facts": [
        "$0.005 / 1k requests",
        "Free tier",
        "Official MCP"
       ]
      },
      {
       "name": "Letta",
       "why": "Pick Letta when you want whole stateful agents (formerly MemGPT) that edit their own long-term memory.",
       "path": "apis/letta/",
       "facts": [
        "Free (open source)",
        "Free tier",
        "Official MCP"
       ]
      }
     ],
     "more": "All memory for agents APIs",
     "more_path": "apis/memory/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "prompt",
     "text": "Add Mem0 memory to my chatbot: on the server read MEM0_API_KEY from .env, pin mem0ai 2.2.1, add each finished conversation with the signed-in user's id, search with filters={\"user_id\": ...} before each model call, and never send the key to the browser."
    },
    {
     "t": "steps",
     "items": [
      {
       "text": "Create a Mem0 Platform account and copy an API key from the dashboard.",
       "code": null,
       "src": "https://docs.mem0.ai/platform/quickstart.md"
      },
      {
       "text": "Install the Python or JavaScript package.",
       "code": "pip install mem0ai",
       "src": "https://docs.mem0.ai/llms.txt"
      },
      {
       "text": "Create the client with the key, then add and search memories for one user.",
       "code": "from mem0 import MemoryClient\n\nclient = MemoryClient(api_key=\"your-api-key\")",
       "src": "https://docs.mem0.ai/platform/quickstart.md"
      }
     ]
    },
    {
     "t": "h3",
     "text": "First request"
    },
    {
     "t": "tabs",
     "label": "First request",
     "items": [
      {
       "tab": "Request",
       "code": "curl -X POST https://api.mem0.ai/v3/memories/search/ \\\n  -H \"Authorization: Token $MEM0_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"query\": \"What are my dietary restrictions?\",\n    \"filters\": {\"user_id\": \"user123\"}\n  }'",
       "intro": "From the Platform quickstart, step 4 (cURL); the response is trimmed. The memories were added in step 3."
      },
      {
       "tab": "Response",
       "code": "{\n  \"results\": [\n    {\n      \"id\": \"14e1b28a-2014-40ad-ac42-69c9ef42193d\",\n      \"memory\": \"Allergic to nuts\",\n      \"user_id\": \"user123\",\n      \"categories\": [\"health\"],\n      \"score\": 0.87\n    },\n    ...\n  ]\n}"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Mistakes to avoid"
    },
    {
     "t": "mistakes",
     "items": [
      {
       "dont": "client.search(query, user_id=\"alice\") in the current SDK",
       "fix": "client.search(query, filters={\"user_id\": \"alice\"})",
       "why": "Reads take the user, agent, app and run ids inside the filters object."
      },
      {
       "dont": "Passing output_format, api_version, async_mode or enable_graph from older examples",
       "fix": "Upgrade to the current major and follow the migration guide",
       "why": "These parameters were removed in the current major version."
      },
      {
       "dont": "Searching for a memory right after add and treating an empty result as a bug",
       "fix": "Follow the add's event_id until it succeeds, then search",
       "why": "Adds are queued and processed in the background."
      },
      {
       "dont": "Searching with AND on user_id and agent_id for memories saved with only a user_id",
       "fix": "Filter only on the ids the memories were saved with",
       "why": "The other ids are null on those memories, so the AND filter matches nothing."
      },
      {
       "dont": "Calling Mem0 from browser code with the API key",
       "fix": "Call Mem0 from your server and keep MEM0_API_KEY out of committed files",
       "why": "The key gives access to all memories in the workspace."
      }
     ]
    }
   ]
  },
  {
   "id": "faq",
   "nav": "Questions",
   "h2": "Questions",
   "parts": [
    {
     "t": "faq",
     "items": [
      {
       "q": "Is there a free plan?",
       "a": "Yes, with unlimited end users. For 30 days Mem0 pays the model calls; then you bring your own LLM key for higher free limits.",
       "evidence": {
        "url": "https://docs.mem0.ai/platform/pricing.md",
        "quote": "For your first 30 days, Mem0 pays for the model calls, with limits of 10,000 adds and 1,000 retrievals a month."
       }
      },
      {
       "q": "What happens at a monthly limit?",
       "a": "Calls past the limit fail until next month, unless you turn on usage-based billing with a monthly cap (needs your own LLM key).",
       "evidence": {
        "url": "https://docs.mem0.ai/platform/pricing.md",
        "quote": "Calls past the limit return an error until your limits reset next month."
       }
      },
      {
       "q": "How much does usage past the free limits cost?",
       "a": "The rate is shown in the dashboard when you turn usage-based billing on; the public pages list no unit price.",
       "evidence": {
        "url": "https://docs.mem0.ai/platform/pricing.md",
        "quote": "The rate is shown when you turn it on, and those extra calls stop when you reach your monthly cap."
       }
      },
      {
       "q": "Can I run it myself?",
       "a": "Yes. Use the open-source library in your app or a self-hosted server with Docker; by default it calls OpenAI models.",
       "evidence": {
        "url": "https://docs.mem0.ai/open-source/overview.md",
        "quote": "You own the stack, the data, and every component, and you choose where each one runs."
       }
      },
      {
       "q": "Does the text go to my AI provider?",
       "a": "Yes. With your own key, added text is sent to that provider under your account and its terms.",
       "evidence": {
        "url": "https://docs.mem0.ai/platform/pricing.md",
        "quote": "The text you add is sent to your provider under your account and its terms."
       }
      }
     ]
    }
   ]
  }
 ],
 "glance": [
  [
   "Maker",
   "Mem0"
  ],
  [
   "Category",
   "Memory for agents"
  ],
  [
   "Price",
   "Free (open source)"
  ],
  [
   "Official SDK",
   "npm mem0ai, PyPI mem0ai"
  ],
  [
   "Latest SDK",
   "2.2.1 on npm"
  ],
  [
   "Agent check",
   "6 of 6"
  ],
  [
   "Pricing checked",
   "Nov 2, 2026"
  ]
 ],
 "good": [
  "On the free plan you give Mem0 a lasting right to use your stored content, including to train AI models. Paid plans exclude training.",
  "For the first 30 days Mem0 pays the AI calls. After that you connect your own OpenAI, Anthropic, Azure or OpenRouter key to keep adding.",
  "Without your own AI key after 30 days, saved memories stay and search still works, but new memories are refused."
 ],
 "checked_line": "Read by AgentGid from 21 official pages, card checked Nov 10, 2026; usage numbers update daily."
}