@remnic/import-mem0
v9.3.519
Published
Import memories from the mem0.ai REST API into Remnic (issue #568)
Downloads
23
Maintainers
Readme
@remnic/import-mem0
Optional importer for memories stored in a mem0.ai account. Ships as a separately installable companion to the Remnic CLI.
npm install -g @remnic/import-mem0
export MEM0_API_KEY=...
remnic import --adapter mem0 --rate-limit 2How it imports
- Walks the paginated REST endpoint
/v1/memories/(followsnextcursors) - Default base URL
https://api.mem0.ai; override viaMEM0_BASE_URLfor self-hosted instances --rate-limit <rps>throttles page-to-page requests- One memory per mem0 record; blank / soft-deleted records are skipped
Offline replay
You can also provide a pre-fetched JSON dump via --file:
remnic import --adapter mem0 --file ./mem0-export.jsonThe parser accepts both the flat { results: [...] } shape and a multi-page
recording { pages: [...] } used by the package's record/replay fixtures.
À-la-carte contract
This package is declared as an optional peer dependency of
@remnic/cli. Installing the CLI without this package produces a
friendly install hint — never MODULE_NOT_FOUND.
