mem0-oss-to-platform
Skill67k starsChanged 3 months agoApache-2.0View on GitHub
Plan and then execute a migration of a project from the mem0 open-source / self-hosted SDK (the local `Memory` class) to the mem0 Platform / hosted / managed SDK (the `MemoryClient` class). Use this whenever a developer wants to move, switch, or migrate their mem0 usage off OSS/self-hosted to the hosted API — e.g. "migrate my mem0 setup to the platform", "switch from self-hosted mem0 to MemoryClient", "use my mem0 API key instead of a local Qdrant", "move mem0 to the cloud/hosted/managed service", or "replace my local mem0 vector store + embedder config with the platform". Applies to Python (`from mem0 import Memory` → `from mem0 import MemoryClient`) and TypeScript/JavaScript (`import { Memory } from "mem0ai/oss"` → `import MemoryClient from "mem0ai"`). Trigger even when the user doesn't say the word "migrate" but clearly wants their existing mem0 integration to run against the hosted platform. It first produces a reviewable migration plan, then executes it after the developer approves. Strictly scoped to the mem0 integration — it does not refactor, restructure, or "improve" any unrelated code.
- Reads credentials
Trending
Less talk lately.about the whole repository
Who's talking about mem0ai/mem0
- A Hacker News story“Show HN: Mem0 – open-source Memory Layer for AI apps”Hacker News · Sep 4, 2024 · 201 points
- kuzudb/kuzu“Release 0.11.0”GitHub · May 14, 2025 · 14 reactions
- anomalyco/opencode“Feature Request: Model-Agnostic Memory Layer (Global & Per-Project)”GitHub · Jan 12, 2026 · 13 reactions
- A Hacker News story“Show HN: OpenMemory – Make your MCP clients more context-aware”Hacker News · May 13, 2025 · 8 points
- getzep/zep-papers“Revisiting Zep’s 84% LoCoMo Claim: Corrected Evaluation & 58.44% Accuracy”GitHub · May 8, 2025 · 7 reactions
The biggest 5 of 62 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 62
Talked about on GitHub, Bluesky and Hacker News (62 times).
On GitHub · 50
- May 14, 2025Release 0.11.0 — kuzudb/kuzu14 reactions · 1 comment
- Jan 12, 2026Feature Request: Model-Agnostic Memory Layer (Global & Per-Project) — anomalyco/opencode13 reactions · 4 comments
- May 8, 2025Revisiting Zep’s 84% LoCoMo Claim: Corrected Evaluation & 58.44% Accuracy — getzep/zep-paperssays it tested it7 reactions · 3 comments
- Jul 22, 2024mem0 compatabile with openwebui and ollama? — open-webui/open-webui4 reactions
- Sep 1, 2025Add memory — pollen-robotics/reachy_mini_conversation_app3 reactions · 1 comment
45 more on GitHub
- Nov 5, 2026fix(serve): what a run learns is kept item by item, by the grader and by the checks — Parcha-ai/agentrun2 reactions · 2 comments
- Jul 17, 2026chore(deps): bump the pip group across 2 directories with 20 updates — CaffeeLake/MemOS2 reactions · 4 comments
- Jun 24, 2026chore(deps): bump the pip group across 2 directories with 20 updates — CaffeeLake/MemOS2 reactions · 1 comment
- Jun 17, 2026plugin: official mem0 client (add_memory / search_memories hooks for cross-session memory) — Kilo-Org/kilocode2 reactions · 2 comments
- May 28, 2026chore(deps): bump the pip group across 9 directories with 5 updates — HarleyCoops/Dakota18902 reactions · 1 comment
- May 28, 2026chore(deps): bump the uv group across 23 directories with 15 updates — HarleyCoops/awesome-llm-apps2 reactions · 1 comment
- May 28, 2026chore(deps): bump mem0ai from 0.1.63 to 2.0.0b2 in /examples/demo-viewer/agent/demo/crewai_crew_enterprise/restaurant_finder_crew — HarleyCoops/copilotkit2 reactions · 1 comment
- May 28, 2026chore(deps): bump mem0ai from 0.1.63 to 2.0.0b2 in /examples/coagents-enterprise-crewai-crews/agent-py — HarleyCoops/copilotkit2 reactions · 1 comment
- May 28, 2026chore(deps): bump the pip group across 9 directories with 9 updates — HarleyCoops/Dakota18902 reactions · 3 comments
- May 28, 2026chore(deps): bump the pip group across 9 directories with 12 updates — HarleyCoops/Dakota18902 reactions · 3 comments
- May 13, 2026Bump mem0ai from 0.1.81 to 2.0.0b2 in /A2A/samples/python — HarleyCoops/Agent2Agent2 reactions · 1 comment
- May 13, 2026Bump mem0ai from 0.1.81 to 2.0.0b2 in /samples/python — HarleyCoops/A2A2 reactions · 1 comment
- May 13, 2026Bump mem0ai from 0.1.93 to 2.0.0b2 in /workflows — HarleyCoops/workflow-use2 reactions · 3 comments
- May 12, 2026chore(deps): update mem0ai requirement from >=0.1 to >=2.0.2 — EvezArt/evez666-arg-canon2 reactions · 1 comment
- Nov 15, 2026[Feature]: Add user-aware persistent memory at the Multica abstraction layer — multica-ai/multica1 reaction · 2 comments
- Oct 26, 2026deps(python): bump the python-runtime group across 1 directory with 172 updates — JoeElder21/Joeyyy1 reaction · 2 comments
- Sep 7, 2026Chore(deps): bump mem0ai from 2.0.19 to 2.0.20 — MoonLadderStudios/MoonMind1 reaction
- Aug 31, 2026Chore(deps): bump mem0ai from 2.0.18 to 2.0.19 — MoonLadderStudios/MoonMind1 reaction
- Aug 17, 2026Chore(deps): bump mem0ai from 2.0.17 to 2.0.18 — MoonLadderStudios/MoonMind1 reaction
- Aug 10, 2026Chore(deps): bump mem0ai from 2.0.14 to 2.0.17 — MoonLadderStudios/MoonMind1 reaction
- Jul 27, 2026Chore(deps): bump mem0ai from 2.0.12 to 2.0.14 — MoonLadderStudios/MoonMind1 reaction
- Jul 20, 2026Chore(deps): bump mem0ai from 2.0.11 to 2.0.12 — MoonLadderStudios/MoonMind1 reaction
- Jul 16, 2026Evaluate + implement mem0 as a memory backend (kind: mem0) — fagerbergj/quack1 reaction · 13 comments
- Jul 6, 2026Bump mem0ai from 2.0.10 to 2.0.11 — MoonLadderStudios/MoonMind1 reaction
- Jun 29, 2026Bump mem0ai from 2.0.7 to 2.0.10 — MoonLadderStudios/MoonMind1 reaction
- Jun 28, 2026Expose memory over MCP: official 8 KG tools + remember/recall REST — joelfuller2016/KanbanFlow-v21 reaction · 2 comments
- Jun 28, 2026Add hybrid retrieval service (sqlite-vec + FTS5 BM25 + recency/usefulness fusion) — joelfuller2016/KanbanFlow-v21 reaction · 2 comments
- Jun 28, 2026Epic: AI memory store — semantic memory for agents over the kanban graph — joelfuller2016/KanbanFlow-v21 reaction · 6 comments
- Jun 28, 2026Epic: AI Memory & Ops Hub — KanbanFlow as memory + PM + knowledge store for AI — joelfuller2016/KanbanFlow-v21 reaction · 5 comments
- Jun 22, 2026Bump mem0ai from 2.0.6 to 2.0.7 — MoonLadderStudios/MoonMind1 reaction
- Jun 15, 2026Bump mem0ai from 2.0.4 to 2.0.6 — MoonLadderStudios/MoonMind1 reaction
- May 23, 2026docs(readme): link MemPalace, Mem0, Basic Memory in Comparison header — kitfunso/hippo-memory1 reaction
- May 8, 2026Bump mem0ai from 0.1.65 to 2.0.0b2 in /mem0-agent — cicero-im/ottomator-agents1 reaction · 1 comment
- May 8, 2026Bump mem0ai from 0.1.65 to 2.0.0b2 in /mem0-agent/studio-integration-version — cicero-im/ottomator-agents1 reaction · 1 comment
- May 8, 2026Bump mem0ai from 0.1.29 to 2.0.0b2 in /advanced_llm_apps/llm_apps_with_memory_tutorials/ai_travel_agent_memory — cicero-im/awesome-llm-apps1 reaction · 1 comment
- May 8, 2026Bump mem0ai from 0.1.93 to 2.0.0b2 in /advanced_ai_agents/multi_agent_apps/ai_news_and_podcast_agents/beifong — cicero-im/awesome-llm-apps1 reaction · 1 comment
- May 8, 2026Bump mem0ai from 0.1.29 to 2.0.0b2 in /advanced_llm_apps/llm_apps_with_memory_tutorials/llm_app_personalized_memory — cicero-im/awesome-llm-apps1 reaction · 1 comment
- May 8, 2026build(deps): bump mem0ai from 1.0.1 to 2.0.0b2 — cicero-im/cuga-agent1 reaction · 1 comment
- May 8, 2026Bump mem0ai from 0.1.102 to 2.0.0b2 in /advanced_ai_agents/multi_agent_apps/agent_teams/ai_travel_planner_agent_team/backend — cicero-im/awesome-llm-apps1 reaction · 1 comment
- May 8, 2026Bump mem0ai from 0.1.29 to 2.0.0b2 in /advanced_llm_apps/llm_apps_with_memory_tutorials/local_chatgpt_with_memory — cicero-im/awesome-llm-apps1 reaction · 1 comment
- May 8, 2026chore(deps): bump mem0ai from 0.1.73 to 2.0.0b2 — cicero-im/camel1 reaction · 1 comment
- May 8, 2026Bump mem0ai from 0.1.29 to 2.0.0b2 in /advanced_ai_agents/single_agent_apps/ai_customer_support_agent — cicero-im/awesome-llm-apps1 reaction · 1 comment
- Feb 3, 2026提供集成 https://github.com/mem0ai/mem0的例子 — smallnest/langgraphgo1 reaction
- Jan 17, 2026Core: Mem0 Integration Framework — Arithmomaniac/copilot-session-tools1 reaction · 1 comment
- Nov 17, 2025GitMCP — tbrandenburg/shai1 reaction · 5 comments
On Bluesky · 9
- Jul 18, 2024今日のGitHubトレンド mem0ai/mem0 mem0ai/mem0リポジトリは、パーソナライズされたAI体験を実現するためのメモリーレイヤーを提供するものです。… — @dailygithubtrends.bsky.social2 likes and reposts
- Aug 19, 2026🚀 GitHub Intelligence Drop rustlings (Rust • 🟢) ⭐ 63.9K → https://github.com/rust-lang/rustlings mem0 (Python • 🟢) ⭐ 63.5K →… — @githubfeed.bsky.social1 likes and repost
- May 17, 2025今日のGitHubトレンド mem0ai/mem0 このリポジトリは、AIアシスタントやエージェントにインテリジェントな記憶層を追加することを目的としています。 ユーザーの嗜好を記憶し、個々のニーズに適応し、継続的に学習することで、パーソナライズされたAI対話を実現します。… — @dailygithubtrends.bsky.social1 likes and repost
- Mar 8, 2025github.com/mem0ai/mem0 — @rdenadai.dev1 likes and repost
- Sep 4, 2024Show HN: Mem0 – open-source Memory Layer for AI apps Discussion — @hackernewsbot.bsky.social1 likes and repost
4 more on Bluesky
- Jul 17, 2024🔥 Hot Repo! 🔥 (100+ new stars) 📦 mem0ai / mem0 ⭐ 9,249 (+171) 🗒 Python The memory layer for Personalized AI — @github-trending.bsky.social1 likes and repost · 1 reply
- Jul 16, 2026**GODDAMMIT, #GOOGLE!!** So, I'm trying to set up mem0 to act as a "memory" service for my #OpenClaw configuration. Except, OpenClaw is six… — @ferricoxide.blahaj.zone.ap.brid.gy0 likes and reposts · 1 reply
- Dec 8, 2025build v buy, control v convenience. it was gemini's metaphor. i found it fascinating learning how this stuff really works. vector matching… — @songbirddigital.bsky.social0 likes and reposts · 1 reply
- Jul 21, 2024💎 Hidden Gem! 💎 (1000+ new stars) 📦 mem0ai / mem0 ⭐ 12,313 (+1,405) 🗒 Python The memory layer for Personalized AI — @github-trending.bsky.social0 likes and reposts · 1 reply
On Hacker News · 3
- Sep 4, 2024Show HN: Mem0 – open-source Memory Layer for AI apps201 points · 61 comments
- May 13, 2025Show HN: OpenMemory – Make your MCP clients more context-aware8 points
- Aug 1, 2024Mem0: The Memory Layer for Personalized AI2 points
In this repository24 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- .github/AGENTS.mdAGENTS.md
- integrations/AGENTS.mdAGENTS.md
- mem0/AGENTS.mdAGENTS.md
- mem0-ts/AGENTS.mdAGENTS.md
- server/AGENTS.mdAGENTS.md
- skills/AGENTS.mdAGENTS.md
- tests/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- docs/CLAUDE.mdCLAUDE.md
- .github/CLAUDE.mdCLAUDE.md
- integrations/CLAUDE.mdCLAUDE.md
- mem0/CLAUDE.mdCLAUDE.md
- mem0-ts/CLAUDE.mdCLAUDE.md
- server/CLAUDE.mdCLAUDE.md
- skills/CLAUDE.mdCLAUDE.md
- tests/CLAUDE.mdCLAUDE.md
- docs/llms.txtllms.txt
- mem0-cliSkill
- mem0-integrateSkill
- mem0Skill
- mem0-test-integrationSkill
- mem0-vercel-ai-sdkSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 0 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 38
Delete the local vector_store / llm / embedder / graph_store / history_db_path config.
- Very specific: line 56
Do not assume the layout. Find every place mem0 appears.
- Very specific: line 70
Use Grep/Glob broadly; a single missed call site is a runtime break later.
- Very specific: line 80
TypeScript: read the installed types/dist under node_modules/mem0ai/ to confirm option names (limit vs topK, userId vs a nested filters) …
- Very specific: line 90
Read references/gotchas.md and flag anything that needs a human decision: self-hosted/data- residency setups, local model choices moving …
- Very specific: line 96
Write the full plan to MEM0_MIGRATION_PLAN.md at the repo root, following the structure in references/plan-template.md.
- Very specific: line 104
Update dependencies and env (MEM0_API_KEY.
- Very specific: line 110
No local mem0 storage directory gets created anymore (e.g.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Migrate mem0 OSS → mem0 Platform (hosted)
This skill migrates a project's memory layer from the self-hosted mem0 OSS SDK to the hosted mem0 Platform SDK, working for any project shape — an agent, a RAG pipeline, an API service, a chatbot, a background worker. You discover where mem0 is actually used, write a plan the developer reviews, and then execute it on approval.
The mental model (read this first — it's why the migration is shaped the way it is)
OSS mem0 means the developer runs the whole memory stack themselves: a vector store
(Qdrant/pgvector/Chroma/…), an embedder, an LLM for fact extraction, and a local history DB. All of
that is wired up in a config object passed to Memory.
The Platform means mem0 runs that stack for them. The developer just holds an API key. So
the migration is mostly subtraction: the local infrastructure config collapses into a single
MemoryClient(api_key=...). The method calls stay recognizable (add/search/get_all/…), but a
few parameter conventions tighten up and the return values are server responses.
So the core of every migration is:
Memory/Memory.from_config({...})→MemoryClient()(reads the API key from the env).- Delete the local
vector_store/llm/embedder/graph_store/history_db_pathconfig. - Fix up each call site to the hosted call convention (entity IDs into
filters, pagination, etc.). - Flag everything that isn't a clean 1:1 so the developer can decide (see
references/gotchas.md).
Scope discipline: touch only mem0-related code, config, dependencies, and env. Preserve the project's existing behavior, structure, and style. Do not rename things, "tidy" nearby code, or change the app's logic. The developer asked to swap a backend, not to refactor their project.
Workflow
Work through these phases in order. Phases 1–4 produce the plan; phase 5 runs only after approval.
Phase 0 — Prerequisite check
The hosted SDK needs a mem0 API key (MEM0_API_KEY, obtainable at https://app.mem0.ai). Confirm
the developer has one. You don't need the key value to write the plan, but flag in the plan that it
must be set (in .env / secrets manager, never hardcoded) before execution and verification.
Phase 1 — Discover the mem0 footprint
Do not assume the layout. Find every place mem0 appears. Detect the language and the installed version first, then sweep for usage. Concretely, search for:
- Imports / instantiation:
from mem0 import Memory,Memory.from_config,Memory(,import ... from "mem0ai",from "mem0ai/oss",new Memory(. - Config blocks: keys like
vector_store/vectorStore,embedder,llm,graph_store/graphStore,history_db_path,historyStore,custom_fact_extraction_prompt,custom_update_memory_prompt,enable_graph. - Every call site:
.add(,.search(,.get_all(/.getAll(,.delete_all(/.deleteAll(,.get(,.update(,.delete(,.reset(,.history(. - Dependencies & env:
requirements.txt/pyproject.toml/package.jsonformem0aiand any local-infra deps that exist only for mem0 (e.g.qdrant-client,chromadb);.env/config for things likeOPENAI_API_KEYused by the local embedder/LLM; any docker-compose service (e.g. a Qdrant container) that exists only to back mem0.
Use Grep/Glob broadly; a single missed call site is a runtime break later. Record file:line for
each finding — the plan's inventory is built from this.
Phase 2 — Verify the API against the installed SDK (don't guess)
Versions drift, and the OSS and hosted classes have subtly different signatures. Before mapping, confirm the real signatures of the installed package rather than trusting memory:
- Python:
python -c "import inspect; from mem0 import MemoryClient; print(inspect.signature(MemoryClient.search))"for each method you'll touch, and read the installed source undersite-packages/mem0/client/main.pyif anything is ambiguous (e.g. whether a method rejects top-level entity params). Also check the OSS side the project currently uses. - TypeScript: read the installed types/dist under
node_modules/mem0ai/to confirm option names (limitvstopK,userIdvs a nestedfilters) and the default vsmem0ai/ossexport.
This verification step is the single most important habit — it's what keeps the plan correct across
mem0 versions. Then consult references/api-mapping.md for the OSS→hosted translation of each
method (Python and TypeScript), and the official guide at https://docs.mem0.ai/migration/oss-v2-to-v3.
Phase 3 — Map each site and flag the gaps
For every call site and config block from Phase 1, determine the hosted equivalent using the
mapping. Most calls map cleanly. Some don't — and those matter more than the mechanical edits.
Read references/gotchas.md and flag anything that needs a human decision: self-hosted/data-
residency setups, local model choices moving server-side, graph-memory usage, custom prompts, hot-
path calls that now make network round-trips, and existing locally-stored memories not carrying
over (data migration is out of scope unless the developer asks — note it, don't silently attempt it).
Phase 4 — Write the plan and stop
Write the full plan to MEM0_MIGRATION_PLAN.md at the repo root, following the structure in
references/plan-template.md. It must be concrete enough to execute from and honest about the gaps.
Then stop and present it for review. Do not start editing code in the same turn — the whole
point is that the developer reads and approves the plan first.
Phase 5 — Execute on approval (guided)
Once the developer approves (they may ask for changes first — incorporate them), execute the plan:
- Make the edits file by file, staying strictly within mem0 scope.
- Update dependencies and env (
MEM0_API_KEY; remove now-dead local-infra deps/services only if they exist solely for mem0 and you're confident). - Verify, mirroring how you'd confirm any backend swap:
- It imports / type-checks / byte-compiles.
- A smoke test exercises
add→search/get_all→delete_allagainst the hosted API with a realMEM0_API_KEY, and the app's own entry point still runs. - No local mem0 storage directory gets created anymore (e.g. a
.mem0/, local Qdrant path) — proof the memory really lives on the platform now.
- Report what changed, what was verified, and any flagged concerns the developer still needs to act on (e.g. configuring custom instructions in the dashboard, migrating old data).
Reference files
references/api-mapping.md— exact OSS→hosted method/param/return mapping for Python and TypeScript, plus dependency and env changes. Read during Phase 2–3.references/gotchas.md— the things that aren't a clean 1:1 and need a human decision. Read during Phase 3 so the plan's "Concerns" section is complete.references/plan-template.md— the exact structure forMEM0_MIGRATION_PLAN.md. Use in Phase 4.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

