[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-590":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":23,"hasPages":23,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":40,"readmeContent":41,"aiSummary":42,"trendingCount":16,"starSnapshotCount":16,"syncStatus":43,"lastSyncTime":44,"discoverSource":45},590,"mem0","mem0ai\u002Fmem0","mem0ai","Universal memory layer for AI Agents","https:\u002F\u002Fmem0.ai",null,"Python",58352,6702,233,121,0,88,646,2918,467,45,"Apache License 2.0",false,"main",[26,27,28,29,30,31,32,33,34,35,36,37,38,39],"agents","ai","ai-agents","application","chatbots","chatgpt","genai","llm","long-term-memory","memory","memory-management","python","rag","state-management","2026-06-12 02:00:15","\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fmem0ai\u002Fmem0\">\n    \u003Cimg src=\"docs\u002Fimages\u002Fbanner-sm.png\" width=\"800px\" alt=\"Mem0 - The Memory Layer for Personalized AI\">\n  \u003C\u002Fa>\n\u003C\u002Fp>\n\u003Cp align=\"center\" style=\"display: flex; justify-content: center; gap: 20px; align-items: center;\">\n  \u003Ca href=\"https:\u002F\u002Ftrendshift.io\u002Frepositories\u002F11194\" target=\"blank\">\n    \u003Cimg src=\"https:\u002F\u002Ftrendshift.io\u002Fapi\u002Fbadge\u002Frepositories\u002F11194\" alt=\"mem0ai%2Fmem0 | Trendshift\" width=\"250\" height=\"55\"\u002F>\n  \u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fmem0.ai\">Learn more\u003C\u002Fa>\n  ·\n  \u003Ca href=\"https:\u002F\u002Fmem0.dev\u002FDiG\">Join Discord\u003C\u002Fa>\n  ·\n  \u003Ca href=\"https:\u002F\u002Fmem0.dev\u002Fdemo\">Demo\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fmem0.dev\u002FDiG\">\n    \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FDiscord-%235865F2.svg?&logo=discord&logoColor=white\" alt=\"Mem0 Discord\">\n  \u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fpepy.tech\u002Fproject\u002Fmem0ai\">\n    \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fpypi\u002Fdm\u002Fmem0ai\" alt=\"Mem0 PyPI - Downloads\">\n  \u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fmem0ai\u002Fmem0\">\n    \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fcommit-activity\u002Fm\u002Fmem0ai\u002Fmem0?style=flat-square\" alt=\"GitHub commit activity\">\n  \u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fpypi.org\u002Fproject\u002Fmem0ai\" target=\"blank\">\n    \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fpypi\u002Fv\u002Fmem0ai?color=%2334D058&label=pypi%20package\" alt=\"Package version\">\n  \u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fmem0ai\" target=\"blank\">\n    \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fv\u002Fmem0ai\" alt=\"Npm package\">\n  \u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fwww.ycombinator.com\u002Fcompanies\u002Fmem0\">\n    \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FY%20Combinator-S24-orange?style=flat-square\" alt=\"Y Combinator S24\">\n  \u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fmem0.ai\u002Fresearch\">\u003Cstrong>📄 Benchmarking Mem0's token-efficient memory algorithm →\u003C\u002Fstrong>\u003C\u002Fa>\n\u003C\u002Fp>\n\n## New Memory Algorithm (April 2026)\n\n| Benchmark | Old | New  | Tokens  | Latency p50  |\n| --- | --- | --- | --- | --- |\n| **LoCoMo** | 71.4 | **91.6** | 7.0K  | 0.88s  |\n| **LongMemEval** | 67.8 | **93.4** | 6.8K  | 1.09s  |\n| **BEAM (1M)** | — | **64.1** | 6.7K  | 1.00s  |\n| **BEAM (10M)** | — | **48.6** | 6.9K  | 1.05s  |\n\nAll benchmarks run on the same production-representative model stack. Single-pass retrieval (one call, no agentic loops).\n\n**What changed:**\n- **Single-pass ADD-only extraction** -- one LLM call, no UPDATE\u002FDELETE. Memories accumulate; nothing is overwritten.\n- **Agent-generated facts are first-class** -- when an agent confirms an action, that information is now stored with equal weight.\n- **Entity linking** -- entities are extracted, embedded, and linked across memories for retrieval boosting.\n- **Multi-signal retrieval** -- semantic, BM25 keyword, and entity matching scored in parallel and fused.\n\nSee the [migration guide](https:\u002F\u002Fdocs.mem0.ai\u002Fmigration\u002Foss-v2-to-v3) for upgrade instructions. The [evaluation framework](https:\u002F\u002Fgithub.com\u002Fmem0ai\u002Fmemory-benchmarks) is open-sourced so anyone can reproduce the numbers.\n\n## Research Highlights\n- **91.6 on LoCoMo** -- +20 points over the previous algorithm\n- **93.4 on LongMemEval** -- +26 points, with +53.6 on assistant memory recall\n- **64.1 on BEAM (1M)** -- production-scale memory evaluation at 1M tokens\n- [Read the full paper](https:\u002F\u002Fmem0.ai\u002Fresearch)\n\n# Introduction\n\n[Mem0](https:\u002F\u002Fmem0.ai) (\"mem-zero\") enhances AI assistants and agents with an intelligent memory layer, enabling personalized AI interactions. It remembers user preferences, adapts to individual needs, and continuously learns over time—ideal for customer support chatbots, AI assistants, and autonomous systems.\n\n### Key Features & Use Cases\n\n**Core Capabilities:**\n- **Multi-Level Memory**: Seamlessly retains User, Session, and Agent state with adaptive personalization\n- **Developer-Friendly**: Intuitive API, cross-platform SDKs, and a fully managed service option\n\n**Applications:**\n- **AI Assistants**: Consistent, context-rich conversations\n- **Customer Support**: Recall past tickets and user history for tailored help\n- **Healthcare**: Track patient preferences and history for personalized care\n- **Productivity & Gaming**: Adaptive workflows and environments based on user behavior\n\n## 🚀 Quickstart Guide \u003Ca name=\"quickstart\">\u003C\u002Fa>\n\n| | Library | Self-Hosted Server | Cloud Platform |\n|---|---------|-------------------|----------------|\n| **Best for** | Testing, prototyping | Teams running on their own infrastructure | Zero-ops production use |\n| **Setup** | `pip install mem0ai` | `docker compose up` | Sign up at [app.mem0.ai](https:\u002F\u002Fapp.mem0.ai?utm_source=oss&utm_medium=readme) |\n| **Dashboard** | -- | [Yes](https:\u002F\u002Fdocs.mem0.ai\u002Fopen-source\u002Fsetup) | Yes |\n| **Auth & API Keys** | -- | Yes | Yes |\n| **Advanced Features** | -- | Teasers | All included |\n\nJust testing? Use the library. Building for a team? Self-hosted. Want zero ops? Cloud.\n\n### Library (pip \u002F npm)\n\n```bash\npip install mem0ai\n```\n\nFor enhanced hybrid search with BM25 keyword matching and entity extraction, install with NLP support:\n\n```bash\npip install mem0ai[nlp]\npython -m spacy download en_core_web_sm\n```\n\nInstall sdk via npm:\n\n```bash\nnpm install mem0ai\n```\n\n### Self-Hosted Server\n\n> **Note:** Self-hosted auth is on by default. Upgrading from a pre-auth build? Set `ADMIN_API_KEY`, register an admin through the wizard, or `AUTH_DISABLED=true` for local dev only. See [upgrade notes](https:\u002F\u002Fdocs.mem0.ai\u002Fopen-source\u002Fsetup#upgrade-notes).\n\n```bash\n# Recommended: one command — start the stack, create an admin, issue the first API key.\ncd server && make bootstrap\n\n# Manual: start the stack and finish setup via the browser wizard.\ncd server && docker compose up -d    # http:\u002F\u002Flocalhost:3000\n```\n\nSee the [self-hosted docs](https:\u002F\u002Fdocs.mem0.ai\u002Fopen-source\u002Foverview) for configuration.\n\n### Cloud Platform\n\n1. Sign up on [Mem0 Platform](https:\u002F\u002Fapp.mem0.ai?utm_source=oss&utm_medium=readme)\n2. Embed the memory layer via SDK or API keys\n\n### CLI\n\nManage memories from your terminal:\n\n```bash\nnpm install -g @mem0\u002Fcli   # or: pip install mem0-cli\n\nmem0 init\nmem0 add \"Prefers dark mode and vim keybindings\" --user-id alice\nmem0 search \"What does Alice prefer?\" --user-id alice\n```\n\nSee the [CLI documentation](https:\u002F\u002Fdocs.mem0.ai\u002Fplatform\u002Fcli) for the full command reference.\n\n### Agent Skills\n\nTeach your AI coding assistant (Claude Code, Codex, Cursor, Windsurf, OpenCode, OpenClaw, and any tool that supports the skills standard) how to build with Mem0. Two categories:\n\n**Reference skills — always on** (SDK knowledge loaded into the assistant's context):\n\n```bash\nnpx skills add https:\u002F\u002Fgithub.com\u002Fmem0ai\u002Fmem0 --skill mem0\nnpx skills add https:\u002F\u002Fgithub.com\u002Fmem0ai\u002Fmem0 --skill mem0-cli\nnpx skills add https:\u002F\u002Fgithub.com\u002Fmem0ai\u002Fmem0 --skill mem0-vercel-ai-sdk\n```\n\n**Pipeline skills — run on demand** (execute an end-to-end workflow in an existing repo):\n\n```bash\nnpx skills add https:\u002F\u002Fgithub.com\u002Fmem0ai\u002Fmem0 --skill mem0-integrate\nnpx skills add https:\u002F\u002Fgithub.com\u002Fmem0ai\u002Fmem0 --skill mem0-test-integration\n```\n\nUse `\u002Fmem0-integrate` to wire Mem0 into an existing repo via a test-first pipeline, then `\u002Fmem0-test-integration` to verify. See the [skills catalog](.\u002Fskills\u002F) or [Vibecoding with Mem0](https:\u002F\u002Fdocs.mem0.ai\u002Fvibecoding) for the full picture.\n\n### Basic Usage\n\nMem0 requires an LLM to function, with `gpt-5-mini` from OpenAI as the default. However, it supports a variety of LLMs; for details, refer to our [Supported LLMs documentation](https:\u002F\u002Fdocs.mem0.ai\u002Fcomponents\u002Fllms\u002Foverview).\n\nMem0 uses `text-embedding-3-small` from OpenAI as the default embedding model. For best results with hybrid search (semantic + keyword + entity boosting), we recommend using at least [Qwen 600M](https:\u002F\u002Fhuggingface.co\u002FAlibaba-NLP\u002Fgte-Qwen2-1.5B-instruct) or a comparable embedding model. See [Supported Embeddings](https:\u002F\u002Fdocs.mem0.ai\u002Fcomponents\u002Fembedders\u002Foverview) for configuration details.\n\nFirst step is to instantiate the memory:\n\n```python\nfrom openai import OpenAI\nfrom mem0 import Memory\n\nopenai_client = OpenAI()\nmemory = Memory()\n\ndef chat_with_memories(message: str, user_id: str = \"default_user\") -> str:\n    # Retrieve relevant memories\n    relevant_memories = memory.search(query=message, filters={\"user_id\": user_id}, top_k=3)\n    memories_str = \"\\n\".join(f\"- {entry['memory']}\" for entry in relevant_memories[\"results\"])\n\n    # Generate Assistant response\n    system_prompt = f\"You are a helpful AI. Answer the question based on query and memories.\\nUser Memories:\\n{memories_str}\"\n    messages = [{\"role\": \"system\", \"content\": system_prompt}, {\"role\": \"user\", \"content\": message}]\n    response = openai_client.chat.completions.create(model=\"gpt-5-mini\", messages=messages)\n    assistant_response = response.choices[0].message.content\n\n    # Create new memories from the conversation\n    messages.append({\"role\": \"assistant\", \"content\": assistant_response})\n    memory.add(messages, user_id=user_id)\n\n    return assistant_response\n\ndef main():\n    print(\"Chat with AI (type 'exit' to quit)\")\n    while True:\n        user_input = input(\"You: \").strip()\n        if user_input.lower() == 'exit':\n            print(\"Goodbye!\")\n            break\n        print(f\"AI: {chat_with_memories(user_input)}\")\n\nif __name__ == \"__main__\":\n    main()\n```\n\nFor detailed integration steps, see the [Quickstart](https:\u002F\u002Fdocs.mem0.ai\u002Fquickstart) and [API Reference](https:\u002F\u002Fdocs.mem0.ai\u002Fapi-reference).\n\n## 🔗 Integrations & Demos\n\n- **ChatGPT with Memory**: Personalized chat powered by Mem0 ([Live Demo](https:\u002F\u002Fmem0.dev\u002Fdemo))\n- **Browser Extension**: Store memories across ChatGPT, Perplexity, and Claude ([Chrome Extension](https:\u002F\u002Fchromewebstore.google.com\u002Fdetail\u002Fonihkkbipkfeijkadecaafbgagkhglop?utm_source=item-share-cb))\n- **Langgraph Support**: Build a customer bot with Langgraph + Mem0 ([Guide](https:\u002F\u002Fdocs.mem0.ai\u002Fintegrations\u002Flanggraph))\n- **CrewAI Integration**: Tailor CrewAI outputs with Mem0 ([Example](https:\u002F\u002Fdocs.mem0.ai\u002Fintegrations\u002Fcrewai))\n\n## 📚 Documentation & Support\n\n- Full docs: https:\u002F\u002Fdocs.mem0.ai\n- Community: [Discord](https:\u002F\u002Fmem0.dev\u002FDiG) · [X (formerly Twitter)](https:\u002F\u002Fx.com\u002Fmem0ai)\n- Contact: founders@mem0.ai\n\n## Citation\n\nWe now have a paper you can cite:\n\n```bibtex\n@article{mem0,\n  title={Mem0: Building Production-Ready AI Agents with Scalable Long-Term Memory},\n  author={Chhikara, Prateek and Khant, Dev and Aryan, Saket and Singh, Taranjeet and Yadav, Deshraj},\n  journal={arXiv preprint arXiv:2504.19413},\n  year={2025}\n}\n```\n\n## ⚖️ License\n\nApache 2.0 — see the [LICENSE](https:\u002F\u002Fgithub.com\u002Fmem0ai\u002Fmem0\u002Fblob\u002Fmain\u002FLICENSE) file for details.\n","mem0 是一个为AI代理设计的通用记忆层，旨在提供长期记忆管理和个性化交互能力。该项目采用Python语言开发，具有高效的记忆算法和先进的记忆管理功能，包括单次通过添加、实体链接以及多信号检索等技术特点，能够显著提升AI代理在处理复杂任务时的表现。mem0特别适用于需要长时间对话上下文保持或基于历史信息做出决策的应用场景，如聊天机器人、虚拟助手等领域。此外，它还支持快速集成到现有项目中，便于开发者构建更加智能且个性化的AI应用。",2,"2026-06-11 02:37:52","top_all"]