Mem0 CLI Memory Commands
mem0ai/mem0
Adds, searches, lists, updates and deletes memories on the Mem0 platform from the terminal with the mem0 command, including a JSON mode built for agents.
Add persistent graph-based memory to NanoClaw agents using mnemon.
$ npx skills add mnemon-dev/mnemon --skill add-mnemon -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install mnemon-dev/mnemon add-mnemon --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/mnemon-dev/mnemon.git skills-src && mkdir -p .claude/skills && cp -r skills-src/internal/memory/setup/assets/nanoclaw .claude/skills/add-mnemon && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "add-mnemon" agent skill from https://github.com/mnemon-dev/mnemon/tree/master/internal/memory/setup/assets/nanoclaw into .claude/skills/add-mnemon/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-mnemon", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/mnemon-dev/mnemon/tree/master/internal/memory/setup/assets/nanoclawType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add mnemon-dev/mnemon --skill add-mnemon -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install mnemon-dev/mnemon add-mnemon --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mnemon-dev/mnemon.git skills-src && mkdir -p .agents/skills && cp -r skills-src/internal/memory/setup/assets/nanoclaw .agents/skills/add-mnemon && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "add-mnemon" agent skill from https://github.com/mnemon-dev/mnemon/tree/master/internal/memory/setup/assets/nanoclaw into .agents/skills/add-mnemon/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-mnemon", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add mnemon-dev/mnemon --skill add-mnemon -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install mnemon-dev/mnemon add-mnemon --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mnemon-dev/mnemon.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/internal/memory/setup/assets/nanoclaw .cursor/skills/add-mnemon && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "add-mnemon" agent skill from https://github.com/mnemon-dev/mnemon/tree/master/internal/memory/setup/assets/nanoclaw into .cursor/skills/add-mnemon/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-mnemon", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/mnemon-dev/mnemon.git --path internal/memory/setup/assets/nanoclaw--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add mnemon-dev/mnemon --skill add-mnemon -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install mnemon-dev/mnemon add-mnemon --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mnemon-dev/mnemon.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/internal/memory/setup/assets/nanoclaw .gemini/skills/add-mnemon && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "add-mnemon" agent skill from https://github.com/mnemon-dev/mnemon/tree/master/internal/memory/setup/assets/nanoclaw into .gemini/skills/add-mnemon/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-mnemon", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install mnemon-dev/mnemon add-mnemonInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add mnemon-dev/mnemon --skill add-mnemon -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/mnemon-dev/mnemon.git skills-src && mkdir -p .github/skills && cp -r skills-src/internal/memory/setup/assets/nanoclaw .github/skills/add-mnemon && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "add-mnemon" agent skill from https://github.com/mnemon-dev/mnemon/tree/master/internal/memory/setup/assets/nanoclaw into .github/skills/add-mnemon/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-mnemon", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add mnemon-dev/mnemon --skill add-mnemon -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install mnemon-dev/mnemon add-mnemon --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mnemon-dev/mnemon.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/internal/memory/setup/assets/nanoclaw .opencode/skills/add-mnemon && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "add-mnemon" agent skill from https://github.com/mnemon-dev/mnemon/tree/master/internal/memory/setup/assets/nanoclaw into .opencode/skills/add-mnemon/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-mnemon", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
add-mnemonAdd persistent graph-based memory to NanoClaw agents using mnemon.
Add Mnemon is an agent skill from mnemon-dev/mnemon. Add persistent graph-based memory to NanoClaw agents using mnemon. Agents recall context before responding and remember insights after. Each group gets isolated memory with optional global shared store.
Its SKILL.md is about 2.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `container-skill.md`).
It sits in Agent Workflows, covering Agent memory and Containers. It works with npm. The repository describes itself as: LLM-supervised persistent memory for AI agents — graph-based recall, cross-session knowledge, single binary. Works with DeepSeek Harness, Claude Code, OpenClaw, and any agent… The licence is Apache-2.0.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 55ecd3e. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
dockernpmcurljqbrewapt-getFrom the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
api.github.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Add Mnemon loads about 2.5k tokens when it runs. Until then it costs about 53 tokens; SKILL.md has 745 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from mnemon-dev/mnemon at commit 55ecd3e, republished under its Apache-2.0 licence (© mnemon-dev). 745 words, ~2,546 tokens.
.claude/skills/add-mnemon/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.Add mnemon persistent memory to your NanoClaw installation. After running this skill, every agent session will have access to a per-group memory graph that persists across conversations.
Host Container
~/.mnemon/data/{group}/ ──rw──→ /home/node/.mnemon/data/default/ (private)
~/.mnemon/data/global/ ──ro──→ /home/node/.mnemon/data/global/ (shared)Each group gets its own isolated mnemon store. An optional global store provides shared read-only knowledge across all groups.
Verify mnemon is installed on the host:
mnemon --versionIf not installed:
npm install --global @mnemon-dev/mnemonbrew install --cask mnemon-dev/tap/mnemonVerify the container image exists:
docker image inspect nanoclaw-agent:latest >/dev/null 2>&1 && echo "OK"Fetch the latest mnemon version for the Dockerfile:
curl -s https://api.github.com/repos/mnemon-dev/mnemon/releases/latest | grep -o '"tag_name": "v[^"]*"' | cut -d'"' -f4 | sed 's/^v//'File: container/Dockerfile
Add the following block after the apt-get install section and before the npm install -g line. Replace 0.1.1 with the version from Phase 1 step 3:
# Install mnemon for persistent agent memory
ARG MNEMON_VERSION=0.1.1
RUN ARCH=$(dpkg --print-architecture) && \
curl -fsSL "https://github.com/mnemon-dev/mnemon/releases/download/v${MNEMON_VERSION}/mnemon_${MNEMON_VERSION}_linux_${ARCH}.tar.gz" \
| tar -xz -C /usr/local/bin mnemon && \
chmod +x /usr/local/bin/mnemonThis works for both amd64 and arm64 architectures.
File: container/skills/mnemon/SKILL.md
Create this file with the mnemon container skill content. This skill teaches the agent inside the container when and how to use mnemon. It should include:
--store global --readonly).mnemon recall "<query>" --limit 5. Also check the global store: mnemon recall "<query>" --store global --readonly --limit 5. Craft focused keyword-rich queries.File: src/container-runner.ts
In the function that builds volume mounts (where the existing group folder and Claude session mounts are defined), add two new mounts after the Claude sessions mount:
// Per-group mnemon memory store (private, read-write)
const groupMnemonDir = path.join(homedir(), '.mnemon', 'data', group.folder);
fs.mkdirSync(groupMnemonDir, { recursive: true });
mounts.push({
hostPath: groupMnemonDir,
containerPath: '/home/node/.mnemon/data/default',
readonly: false,
});
// Global shared mnemon memory (read-only, optional)
const globalMnemonDir = path.join(homedir(), '.mnemon', 'data', 'global');
if (fs.existsSync(globalMnemonDir)) {
mounts.push({
hostPath: globalMnemonDir,
containerPath: '/home/node/.mnemon/data/global',
readonly: true,
});
}Adapt the mount syntax to match the existing pattern in container-runner.ts (it may use string format like hostPath:containerPath:ro or an object format — match whichever the file uses).
Important: The mkdirSync call ensures the per-group mnemon directory exists on the host before the container starts, preventing mount failures.
Create container/hooks/mnemon/ with four shell scripts. These run inside the container at Claude Code lifecycle events to actively drive memory operations.
File: container/hooks/mnemon/prime.sh
#!/bin/bash
# mnemon SessionStart hook — report memory stats on session init.
STATS=$(mnemon status 2>/dev/null)
if [ -n "$STATS" ]; then
INSIGHTS=$(echo "$STATS" | sed -n 's/.*"total_insights": *\([0-9]*\).*/\1/p' | head -1)
EDGES=$(echo "$STATS" | sed -n 's/.*"edge_count": *\([0-9]*\).*/\1/p' | head -1)
echo "[mnemon] Memory active (${INSIGHTS:-0} insights, ${EDGES:-0} edges)."
else
echo "[mnemon] Memory active."
fiFile: container/hooks/mnemon/user_prompt.sh
#!/bin/bash
# mnemon UserPromptSubmit hook — remind agent to evaluate recall/remember.
echo "[mnemon] Evaluate: recall needed? After responding, evaluate: remember needed?"File: container/hooks/mnemon/stop.sh
#!/bin/bash
# mnemon Stop hook — remind agent to consider remember after responding.
INPUT=$(cat)
MSG=$(echo "$INPUT" | jq -r '.last_assistant_message // ""' 2>/dev/null)
if echo "$MSG" | grep -qiE "mnemon remember|sub-agent.*remember|Stored.*imp="; then
exit 0
fi
echo "[mnemon] Consider: does this exchange warrant a remember sub-agent?"File: container/hooks/mnemon/compact.sh
#!/bin/bash
# mnemon PreCompact hook — save key insights before context compaction.
echo "[mnemon] Context compaction starting. Review this session and remember the most valuable insights (up to 5) before context is compressed. Delegate to Task sub-agents now."Make all scripts executable: chmod +x container/hooks/mnemon/*.sh
File: container/Dockerfile
Add after the mnemon binary install block:
# Copy mnemon hook scripts
COPY hooks/mnemon/ /app/hooks/mnemon/
RUN chmod +x /app/hooks/mnemon/*.shFile: src/container-runner.ts
In the block where settings.json is created for each group session (look for writeFileSync with settings.json), merge mnemon hooks into the settings object:
// Register mnemon lifecycle hooks
const mnemonHooks = {
SessionStart: [{
hooks: [{ type: 'command', command: '/app/hooks/mnemon/prime.sh' }]
}],
UserPromptSubmit: [{
hooks: [{ type: 'command', command: '/app/hooks/mnemon/user_prompt.sh' }]
}],
Stop: [{
hooks: [{ type: 'command', command: '/app/hooks/mnemon/stop.sh' }]
}],
PreCompact: [{
hooks: [{ type: 'command', command: '/app/hooks/mnemon/compact.sh' }]
}],
};
// Merge into existing settings.hooks (preserve any existing hooks)
const existingHooks = settings.hooks || {};
for (const [event, entries] of Object.entries(mnemonHooks)) {
existingHooks[event] = [...(existingHooks[event] || []), ...entries];
}
settings.hooks = existingHooks;Adapt this to match the existing settings.json construction pattern in container-runner.ts.
Initialize the global shared store on the host (optional — skip if you don't need cross-group shared memory):
mnemon store create globalRebuild the container image:
./container/build.shRestart the NanoClaw service:
# macOS with launchd:
launchctl kickstart -k "gui/$(id -u)/com.nanoclaw"
# Or manually:
npm run devVerify mnemon works inside the container:
docker run --rm --entrypoint mnemon nanoclaw-agent:latest --versionVerify mnemon status inside a running container:
docker run --rm --entrypoint mnemon nanoclaw-agent:latest statusSend a test message to the WhatsApp bot and check that the agent mentions memory operations in its reasoning.
Verify data persistence on the host:
ls ~/.mnemon/data/
# Should show directories for each active groupTo remove mnemon from your NanoClaw installation:
ARG MNEMON_VERSION + RUN ... mnemon block and the COPY hooks/mnemon/ linerm -rf container/skills/mnemon/rm -rf container/hooks/mnemon/src/container-runner.ts: delete the mnemon mount blockssrc/container-runner.ts: delete the mnemon hooks merge in settings.json./container/build.shrm -rf ~/.mnemon/data/Keep focused queries and memories in their original language. When the user's
meaning is clear, choose --intent WHY (reasons), --intent WHEN (timing),
--intent ENTITY (what/who), or --intent GENERAL (neutral retrieval).
For example: mnemon recall "<query>" --intent WHY. The override works in any
language; --verbose reports
meta.intent and meta.intent_source (auto or override).
Automatic cues cover some forms in English, Mandarin Chinese (simplified and traditional), Hindi (Devanagari), Spanish, Modern Standard Arabic, French, Bengali (Bengali script), Portuguese, Indonesian (Latin script), Russian (Cyrillic), and German. Unrecognized forms use GENERAL; conflicting cues involving additional languages also use GENERAL. English/Chinese-only scoring is preserved. This is a lexical heuristic, not full language understanding. See the supported forms, script variants, and limits.
© mnemon-dev, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file in internal/memory/setup/assets/nanoclaw of mnemon-dev/mnemon.
Open the folder on GitHubat commit 55ecd3e
Add Mnemon next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Add Mnemon this skillmnemon-dev/mnemon | 611 | — | ~2.5k | Automated safety check: Pass | Apache-2.0 | |
| Mem0 CLI Memory Commandsmem0ai/mem0 | 67k | — | ~1.4k | Automated safety check: Notes | Apache-2.0 | |
| Ruflo Multi-Agent Orchestrationruvnet/ruflo | 74k | 1 repos | ~975 | Automated safety check: Pass | MIT | |
| Project Releaseswimmwatch/cloakbrowser-mcp | 161 | — | ~1.9k | Automated safety check: Pass | MIT | |
| Devcontainer Devstacklok/toolhive-studio | 170 | — | ~3.8k | Automated safety check: Notes | Apache-2.0 | |
| mnemon Persistent Memory for NanoClawnanocoai/nanoclaw | 31k | — | ~1.7k | Automated safety check: Pass | MIT |
mem0ai/mem0
Adds, searches, lists, updates and deletes memories on the Mem0 platform from the terminal with the mem0 command, including a JSON mode built for agents.
ruvnet/ruflo
Sets up and drives Ruflo, an npm-installed orchestration layer for multi-agent swarms, persistent memory, routing, hooks and its MCP tool catalog.
swimmwatch/cloakbrowser-mcp
Prepare, publish, verify, or recover a cloakbrowser-mcp release only when the user explicitly requests release work.
stacklok/toolhive-studio
Spin up and interact with ToolHive Studio's containerized dev environment (Xvfb + noVNC + DinD).
nanocoai/nanoclaw
Installs mnemon in the agent container so agents recall relevant past context before replying and store new insights after every turn.
topoteretes/cognee
Runs the Cognee AI memory platform in Docker, from a one-file prebuilt image to a full compose stack with UI, MCP server, Postgres and Neo4j.
Works with
Categories
Add persistent graph-based memory to NanoClaw agents using mnemon. Add Mnemon is an agent skill from mnemon-dev/mnemon. Add persistent graph-based memory to NanoClaw agents using mnemon.
Add Mnemon fits situations like: tasks that involve Agent memory; tasks that involve Containers.
Run `npx skills add mnemon-dev/mnemon --skill add-mnemon -a claude-code`. Or copy the skill folder (internal/memory/setup/assets/nanoclaw in mnemon-dev/mnemon) into .claude/skills/add-mnemon in your project. Claude Code loads it when a task matches its description.
Run `npx skills add mnemon-dev/mnemon --skill add-mnemon -a codex`. Or copy the skill folder (internal/memory/setup/assets/nanoclaw in mnemon-dev/mnemon) into .agents/skills/add-mnemon in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mnemon-dev/mnemon --skill add-mnemon -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/add-mnemon, .gemini/skills/add-mnemon, .github/skills/add-mnemon and .opencode/skills/add-mnemon in your project.
Going by SKILL.md and its folder, Add Mnemon needs the command-line tools its instructions call (docker, npm, curl, jq, brew and apt-get). Our summary lists: Node.js; Docker.
SKILL.md names 1 domain. In commands or code: api.github.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Add Mnemon is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.5k tokens (SKILL.md is roughly 10k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Add Mnemon: Mem0 CLI Memory Commands (mem0ai/mem0, 67k stars), Ruflo Multi-Agent Orchestration (ruvnet/ruflo, 74k stars), Project Release (swimmwatch/cloakbrowser-mcp, 161 stars) and Devcontainer Dev (stacklok/toolhive-studio, 170 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
mnemon-dev (a GitHub organization) maintains it in mnemon-dev/mnemon, which has 611 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on October 3, 2026.
Source: mnemon-dev/mnemon on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.