Agent skill

Mem0 Oss To Platform

by mem0ai in mem0ai/mem0

Plan, then execute, a migration of a project from the mem0 open-source / self-hosted SDK (local Memory class) to the mem0 Platform / hosted SDK (MemoryClient).

Apache-2.0Auto-check: notesDatabases

Install Mem0 Oss To Platform

skills CLI
$ npx skills add mem0ai/mem0 --skill mem0-oss-to-platform -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mem0ai/mem0 mem0-oss-to-platform --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mem0ai/mem0.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/mem0-oss-to-platform .claude/skills/mem0-oss-to-platform && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
mem0-oss-to-platform
GitHub stars
67k
Token cost
~2.2k tokens
SKILL.md length
1,022 words
Files
6 (incl. references)
Skills in repo
26
Repo updated
First seen
Licence
Apache-2.0

At a glance

Plan, then execute, a migration of a project from the mem0 open-source / self-hosted SDK (local Memory class) to the mem0 Platform / hosted SDK (MemoryClient).

  • Works in 6 steps: Prerequisite check → Discover the mem0 footprint → Verify the API against the installed SDK… → …
  • : the developer wants to move
  • SKILL.md covers The mental model (read this…, Workflow and Reference files
  • Calls python; needs MEM0_API_KEY and OPENAI_API_KEY

What it does

Mem0 Oss To Platform is an agent skill from mem0ai/mem0. Plan, then execute, a migration of a project from the mem0 open-source / self-hosted SDK (local Memory class) to the mem0 Platform / hosted SDK (MemoryClient). TRIGGER when: the developer wants to move, switch, or migrate mem0 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", "replace my local vector store + embedder config with the platform", even without the word "migrate". Covers…

Its SKILL.md is about 2.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including reference files (for example `README.md`, `references/api-mapping.md` and `references/gotchas.md`).

It sits in Databases, covering Vector databases. It works with Mem0, Qdrant, Python and TypeScript. The repository describes itself as: The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production. The licence is Apache-2.0.

When your agent uses it

  • : the developer wants to move
  • Migrate mem0 off OSS/self-hosted to the hosted API
  • : adding mem0 to a project that has none (use mem0-integrate)
  • Answering SDK usage questions (use mem0)

Example prompts

  • “migrate my mem0 setup to the platform”
  • “switch from self-hosted mem0 to MemoryClient”
  • “use my mem0 API key instead of a local Qdrant”
  • “/mem0-oss-to-platform”

Requirements

  • Python 3
  • Docker
  • A credential in MEM0_API_KEY
  • A credential in OPENAI_API_KEY

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Prerequisite check
  2. Discover the mem0 footprint
  3. Verify the API against the installed SDK (don't guess)
  4. Map each site and flag the gaps
  5. Write the plan and stop
  6. Execute on approval (guided)

What it can do on your machine

Read from SKILL.md and the folder at commit b7ad69a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • docs.mem0.ai

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • MEM0_API_KEY
    • OPENAI_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Mem0 Oss To Platform loads about 2.2k tokens when it runs, and up to ~7.9k if it reads all its reference files. Until then it costs about 212 tokens; SKILL.md has 1,022 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~212
When it runs · the whole SKILL.md, loaded when a task matches
~2.2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~7.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:58
    must be set (in `.env` / secrets manager, never hardcoded) before execution and verification.
  • NoteMentions a .env fileSKILL.md:72
    em0 (e.g. `qdrant-client`, `chromadb`); `.env`/config for

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from mem0ai/mem0 at commit b7ad69a, republished under its Apache-2.0 licence (© mem0ai). 1,022 words, ~2,178 tokens.

Download SKILL.mdSave it as .claude/skills/mem0-oss-to-platform/SKILL.md (or your agent's skills folder). This skill also uses 5 other files; get the full folder from GitHub.
name
mem0-oss-to-platform
description
Plan, then execute, a migration of a project from the mem0 open-source / self-hosted SDK (local `Memory` class) to the mem0 Platform / hosted SDK (`MemoryClient`). TRIGGER when: the developer wants to move, switch, or migrate mem0 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", "replace my local vector store + embedder config with the platform", even without the word "migrate". Covers Python (`Memory` to `MemoryClient`) and TypeScript (`mem0ai/oss` to `mem0ai`). Produces a reviewable plan, then executes it after approval. Touches only the mem0 integration. DO NOT TRIGGER when: adding mem0 to a project that has none (use `mem0-integrate`) or answering SDK usage questions (use `mem0`).
license
Apache-2.0
metadata.author
mem0ai
metadata.version
0.2.0
metadata.category
ai-memory
metadata.tags
migration, oss, self-hosted, platform, hosted
metadata.mem0_tested_versions
mem0ai (PyPI) >=2.0.0,<3.0.0; mem0ai (npm) >=3.0.0,<4.0.0

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:

  1. Memory / Memory.from_config({...}) → MemoryClient() (reads the API key from the env).
  2. Delete the local vector_store / llm / embedder / reranker / history_db_path config (and any leftover graph_store).
  3. Fix up each call site to the hosted call convention (entity IDs into filters, pagination, etc.).
  4. 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, AsyncMemory, Memory.from_config, Memory(, import ... from "mem0ai", from "mem0ai/oss", new Memory(.
  • Config blocks: keys like vector_store/vectorStore, embedder, llm, reranker, graph_store/graphStore, history_db_path/historyDbPath, historyStore, custom_instructions/customInstructions, custom_fact_extraction_prompt/customPrompt, 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.json for mem0ai and any local-infra deps that exist only for mem0 (e.g. qdrant-client, chromadb); .env/config for things like OPENAI_API_KEY used 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 under site-packages/mem0/client/main.py if 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 (limit vs topK, userId vs a nested filters: { user_id }) and the default vs mem0ai/oss export.

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). The docs guide is https://docs.mem0.ai/migration/oss-to-platform (verify its code samples against the installed SDK); OSS upgrade changes are at https://docs.mem0.ai/migration/oss-v2-to-v3.

Show full SKILL.md (383 more words)Show less
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; if they do ask, see references/gotchas.md #1, which covers the hosted-Qdrant migration script).

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_all against the hosted API with a real MEM0_API_KEY, and the app's own entry point still runs. Hosted add is asynchronous, so allow a short wait before expecting the fact to show up in search/get_all.
    • No local OSS storage gets created anymore (e.g. ~/.mem0/history.db, a local Qdrant path). The client itself still creates ~/.mem0/config.json, so don't use the bare .mem0/ directory as the check.
  • Report what changed, what was verified, and any flagged concerns the developer still needs to act on (e.g. re-applying custom instructions with project.update, 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 for MEM0_MIGRATION_PLAN.md. Use in Phase 4.

© mem0ai, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 5 other files (references) in skills/mem0-oss-to-platform of mem0ai/mem0.

  • SKILL.md
  • LICENSE
  • README.md
  • references/api-mapping.md
  • references/gotchas.md
  • references/plan-template.md

Open the folder on GitHubat commit b7ad69a

Compare with similar skills

Mem0 Oss To Platform next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Mem0 Oss To Platform compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Mem0 Oss To Platform this skillmem0ai/mem067k—~2.2kAutomated safety check: NotesApache-2.0
Qdrant Vector SearchOrchestra-Research/AI-Research-SKILLs13k4 repos~3.4kAutomated safety check: PassMIT
Qdrant Advisorqdrant/skills254—~1.7kAutomated safety check: PassApache-2.0
Mem0 Bridgemomori777/Artemis380—~453Automated safety check: PassCustom licence
Postgres Hybrid Text Searchtimescale/pg-aiguide1.9k—~3.1kAutomated safety check: PassApache-2.0
Agenticx Memory ArchitectDemonDamon/AgenticX364—~1.1kAutomated safety check: PassApache-2.0

Similar skills

  • Qdrant Vector Search

    Orchestra-Research/AI-Research-SKILLs

    Explains how to run Qdrant, a Rust vector database, for RAG and semantic search, covering collections, points, distance metrics and filtered or batched queries.

    13k GitHub starsUsed in 4 repos~3.4k tokens
    DatabasesAuto-check passed
  • Qdrant Advisor

    qdrant/skills

    Official

    Diagnose, troubleshoot, and advise on any Qdrant deployment by loading the latest official Qdrant skills live from skills.qdrant.tech.

    254 GitHub stars~1.7k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Mem0 Bridge

    momori777/Artemis

    Mem0 memory bridge for AI Girlfriend — search/read/write long-term memories from Qdrant vector DB.

    380 GitHub stars~453 tokensUpdated 10 days ago
    Media & CreativeAuto-check passed
  • Postgres Hybrid Text Search

    timescale/pg-aiguide

    A skill your agent uses to implement hybrid search combining BM25 keyword search with semantic vector search using Reciprocal Rank Fusion (RRF).

    1.9k GitHub stars~3.1k tokensUpdated 3 days ago
    AI & LLM EngineeringAuto-check passed
  • Agenticx Memory Architect

    DemonDamon/AgenticX

    Guide for setting up and using the AgenticX memory system including Mem0 integration, long-term memory, context management, and memory-enhanced agents.

    364 GitHub stars~1.1k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Langchain RAG

    langchain-ai/langchain-skills

    Official

    INVOKE THIS SKILL when building ANY retrieval-augmented generation (RAG) system.

    1.3k GitHub stars~3.9k tokensUpdated 2 days ago
    AI & LLM EngineeringAuto-check passed

More from mem0ai/mem0

All 26 skills in this repo
  • Adds persistent memory to AI apps with the Mem0 Python and TypeScript SDKs: store, search, update and delete user memories, with framework integrations.

    67k GitHub starsUsed in 1 repo~2.2k tokens
    Auto-check passed
  • Adds, searches, lists, updates and deletes memories on the Mem0 platform from the terminal with the mem0 command, including a JSON mode built for agents.

    67k GitHub stars~2k tokensUpdated 2 days ago
    Auto-check: notes
  • Adds persistent memory to Vercel AI SDK apps with the Mem0 provider, using a wrapped model or standalone retrieve and store utilities.

    67k GitHub stars~2.3k tokensUpdated 2 days ago
    Auto-check passed
  • Finds and deletes specific mem0 memories by search query or ID, always asking for confirmation first, and can undo the most recent memories added this session.

    67k GitHub stars~664 tokensUpdated 2 days ago
    Auto-check passed
  • Saves a fact, decision or preference the user states into mem0 as written, labeled with a memory type such as decision, convention or user_preference.

    67k GitHub stars~560 tokensUpdated 2 days ago
    Auto-check passed
  • Shows or changes the default Mem0 memory scope, project, session or global, which decides where memories are saved and searched.

    67k GitHub stars~1.1k tokensUpdated 2 days ago
    Auto-check passed

Categories

Questions about Mem0 Oss To Platform

What does Mem0 Oss To Platform do?

Plan, then execute, a migration of a project from the mem0 open-source / self-hosted SDK (local Memory class) to the mem0 Platform / hosted SDK (MemoryClient). Mem0 Oss To Platform is an agent skill from mem0ai/mem0. Plan, then execute, a migration of a project from the mem0 open-source / self-hosted SDK (local Memory class) to the mem0 Platform / hosted SDK (MemoryClient).

When should I use Mem0 Oss To Platform?

Mem0 Oss To Platform fits situations like: : the developer wants to move; migrate mem0 off OSS/self-hosted to the hosted API; : adding mem0 to a project that has none (use mem0-integrate); answering SDK usage questions (use mem0).

How do I install Mem0 Oss To Platform in Claude Code?

Run `npx skills add mem0ai/mem0 --skill mem0-oss-to-platform -a claude-code`. Or copy the skill folder (skills/mem0-oss-to-platform in mem0ai/mem0) into .claude/skills/mem0-oss-to-platform in your project. Claude Code loads it when a task matches its description.

How do I install Mem0 Oss To Platform in Codex?

Run `npx skills add mem0ai/mem0 --skill mem0-oss-to-platform -a codex`. Or copy the skill folder (skills/mem0-oss-to-platform in mem0ai/mem0) into .agents/skills/mem0-oss-to-platform in your project. Codex loads it when a task matches its description.

Can I use Mem0 Oss To Platform in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mem0ai/mem0 --skill mem0-oss-to-platform -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/mem0-oss-to-platform, .gemini/skills/mem0-oss-to-platform, .github/skills/mem0-oss-to-platform and .opencode/skills/mem0-oss-to-platform in your project.

What does Mem0 Oss To Platform need to run?

Going by SKILL.md and its folder, Mem0 Oss To Platform needs the command-line tools its instructions call (python) and credentials named MEM0_API_KEY and OPENAI_API_KEY. Our summary lists: Python 3; Docker; A credential in MEM0_API_KEY; A credential in OPENAI_API_KEY.

Does Mem0 Oss To Platform access the network?

SKILL.md names 1 domain. As links in the text: docs.mem0.ai. This is read from the text; nothing was executed.

Is Mem0 Oss To Platform safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Mem0 Oss To Platform use?

Mem0 Oss To Platform is published under the Apache-2.0 licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Mem0 Oss To Platform use?

About 2.2k tokens (SKILL.md is roughly 8.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 5.8k tokens, read only when the agent opens those files.

What are the alternatives to Mem0 Oss To Platform?

Skills that share tags, products or a category with Mem0 Oss To Platform: Qdrant Vector Search (Orchestra-Research/AI-Research-SKILLs, 13k stars), Qdrant Advisor (qdrant/skills, 254 stars), Mem0 Bridge (momori777/Artemis, 380 stars) and Postgres Hybrid Text Search (timescale/pg-aiguide, 1.9k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Mem0 Oss To Platform?

mem0ai (a GitHub organization) maintains it in mem0ai/mem0, which has 66,921 GitHub stars. The repository holds 26 skills in this directory. The repository was last updated on October 9, 2026.

Source: mem0ai/mem0 on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.