Skip to main content

memanto memory export

Export all agent memories to file.
Options:
  • --agent TEXT - Specific agent (default: active)
  • --output PATH - Output file path (a directory when --okf is used)
  • --limit INTEGER - Maximum memories per type, 1100 (default: 25)
  • --okf - Export an OKF bundle (a directory of markdown files) instead of a single memory.md
  • --split TEXT - OKF layout: auto (default), file, or type (only used with --okf)
Examples: Export to markdown:
Custom output:
Specific agent:
Limit export size:
Export an OKF bundle (see the OKF integration):
Force one file per memory in the OKF bundle:
Output: Creates file with all memories:
Notes:
  • If the backend is unreachable, export now fails loudly (ConnectionError) instead of silently writing an empty cache — a genuine “no memories of this type” still exports fine, but a full outage no longer overwrites a good cache with an empty one.
  • With --okf, the bundle is written to ~/.memanto/exports/<agent>_okf/ (or the --output directory) and nests memories under memories/ alongside daily-summaries/, sessions/, and metrics/ sections when that data exists locally. To place a bundle inside a project directory, use memanto memory sync --okf. See the OKF integration for the full bundle layout.