@memoryrouter/cli
v0.1.2
Published
CLI for persistent AI memory: manage MemoryRouter vaults and safely import ChatGPT history
Maintainers
Readme
MemoryRouter CLI
Bring useful context from ChatGPT into MemoryRouter, then manage the persistent AI memory vault you use across supported AI tools.
Install
npm install --global @memoryrouter/cli
memoryrouter --helpYou can also run a command without a global install:
npx @memoryrouter/cli --helpCreate or choose a Memory Key in the MemoryRouter app, then authenticate:
memoryrouter auth <mk_key>The CLI stores the key locally in ~/.memoryrouter/config.json. Do not commit that file or share your key.
Manage a vault
memoryrouter upload <path> # upload a file or directory
memoryrouter upload <path> --session work
memoryrouter status # show vault statistics
memoryrouter whoami # show masked authentication details
memoryrouter delete # clear the core vault (asks first)
memoryrouter delete --session work # clear one session vaultSupported uploads include plain text, Markdown, JSON, PDF, and DOCX files. Use a dedicated Memory Key when you want an isolated vault.
Import ChatGPT history
The advanced importer reads your official ChatGPT data export locally, shows an exact preview, and requires explicit approval before it writes. Imports are deterministic, resumable, and idempotent, so a committed batch is not duplicated or charged again when you resume.
memoryrouter chatgpt-import inspect ./chatgpt-export.zip
memoryrouter chatgpt-import prepare ./chatgpt-export.zip --out ./mr-import
memoryrouter chatgpt-import approve ./mr-import
memoryrouter chatgpt-import run ./mr-import
memoryrouter chatgpt-import status ./mr-import
memoryrouter chatgpt-import receipt ./mr-importResume an interrupted import with:
memoryrouter chatgpt-import resume ./mr-importThe importer does not automate ChatGPT login, export, email, or MFA. Download the official export yourself and point the CLI at the .zip or extracted folder. The local import workspace does not store your Memory Key or message plaintext.
Read the advanced ChatGPT import guide for the complete workflow and guarantees.
Use the same memory in AI tools
After importing or uploading context, connect supported tools to the same vault through the MemoryRouter MCP memory server. See the CLI documentation for command details and the MemoryRouter CLI page for current setup guidance.
Development
npm install
npm run build
npm run typecheck
npm test
npm pack --dry-runLinks
License
MIT
