export

Exports all project memories from Mem0 to a portable Markdown file.

1|Updated Jan 13, 2022
One-click install
npx skills add https://github.com/jayho-k/TIL --skill export-jayho-k
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: export
Source: https://github.com/jayho-k/TIL/tree/main/AI/mem0/code/mem0_code_analize/mem0/integrations/mem0-plugin/skills/export
Command: npx skills add https://github.com/jayho-k/TIL --skill export-jayho-k

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Backing up or migrating Mem0 project memories requires manually querying the API and formatting results, which is error-prone and tedious when moving between projects or archiving state. ## Core Features & Use Cases - Full Memory Export: Fetches all memories for the active user and project, automatically handling paginated API responses. - Portable Markdown Format: Writes each memory as a YAML-frontmatter block with id, timestamps, type, confidence, branch, files, and categories. - Use Case: Before cleaning up a project or switching teams, run the export to produce a dated file like mem0-export-myproject-2024-06-01.md that can be shared with teammates or re-imported later. ## Quick Start Export all memories for the current project to a Markdown backup file.

Frequently Asked Questions about export

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I export Mem0 memories to a file?

Run the export skill, which fetches all memories for the active user and project via get_memories and writes them to a Markdown file named mem0-export-<project_id>-<date>.md in the current working directory.

How to back up Mem0 project memories before cleanup?

Use the export skill to archive every memory into a portable Markdown file with YAML frontmatter preserving id, timestamps, type, confidence, branch, files, and categories. The file can be stored or shared before deleting project data.

Does the Mem0 export handle paginated memory results?

Yes, the export fetches pages with page_size 200 and continues requesting subsequent pages when a next cursor exists or the count equals the page size, ensuring all memories are retrieved.

What format does the Mem0 memory export file use?

Each memory is written as a YAML-frontmatter block delimited by --- lines, containing metadata fields followed by the memory content. Missing fields are written as empty strings rather than null.

Why does Mem0 export report no memories found?

This occurs when get_memories returns an error or zero records for the resolved user_id and project_id. Verify the MEM0_USER_ID and MEM0_PROJECT_ID environment variables match the project containing your memories.