feat: add official mem0 CLI (Python & TypeScript)#4575
Merged
whysosaket merged 5 commits intomem0ai:mainfrom Mar 27, 2026
Merged
feat: add official mem0 CLI (Python & TypeScript)#4575whysosaket merged 5 commits intomem0ai:mainfrom
whysosaket merged 5 commits intomem0ai:mainfrom
Conversation
kk2211
previously approved these changes
Mar 27, 2026
deshraj
approved these changes
Mar 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
cli/with implementations in both Python (Typer + Rich + httpx) and TypeScript (Commander.js + chalk + native fetch)cli-spec.jsonspecification ensuring identical commands, options, output formats, and error messagesmem0 add,search,list,update,delete, along withinit,config, and entity listing--output jsonandhelp --jsonmodes designed for machine/agent consumptionWhat's included
Test plan
mem0 --helpworks for both Python and Node implementationscd cli/python && pip install -e ".[dev]" && pytestcd cli/node && pnpm install && pnpm testinit,add,search,list) against the mem0 Platform APImem0 list --output json🤖 Generated with Claude Code