360 Secure SkillHub
360 安全技能中心

Mem0 Memory Sync

通过 mem0_client.sh 调用自托管的 Mem0 服务接口,提供添加、检索、对话、更新、删除记忆,以及查看记忆历史、知识图谱与用量统计的子命令,需要配置服务基础地址与 API 密钥。

pratiknarola
pratiknarola
热度 16.02
最近更新 2026-06-03 19:23:09
分类:知识依赖:代码执行 / 第三方 API应用场景:笔记整理 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add mem0-memory-sync
Metadata
name
mem0-sync
description
Sync memories to external Mem0 server (memory.pratikn.com). Use whenever important user context is learned.

Mem0 Sync

Syncs important memories to Pratik's self-hosted Mem0 instance.

Usage

/root/clawd/skills/mem0-sync/mem0_client.sh add "The memory text"
/root/clawd/skills/mem0-sync/mem0_client.sh search "query"
/root/clawd/skills/mem0-sync/mem0_client.sh chat "message"
/root/clawd/skills/mem0-sync/mem0_client.sh delete "memory_id"
/root/clawd/skills/mem0-sync/mem0_client.sh get [limit]         # List user memories
/root/clawd/skills/mem0-sync/mem0_client.sh update "id" "text"  # Update a memory
/root/clawd/skills/mem0-sync/mem0_client.sh history "memory_id" # View memory changes
/root/clawd/skills/mem0-sync/mem0_client.sh graph               # View knowledge graph
/root/clawd/skills/mem0-sync/mem0_client.sh stats               # View usage stats

When to use

  • add: Whenever you update USER.md or write a significant fact to MEMORY.md.
  • search: When you need context that might not be in local files (though local files are primary).
  • delete: Use to remove sensitive data or correct hallucinations. Get the memory_id from a search command first.
  • graph: To explore relationships between entities in memory.
  • stats: To check memory count and usage.