xRay2016

Openclaw Mem0

AI 智能体v1.0.2
作者:xRay2016更新于 2026-05-17共 3 个版本 · 最新版本发布于 2026-02-12openclaw-mem0
#Long Term Memory

据 AlphaMoat 统计,截至 2026-09,Openclaw Mem0 累计下载 3,203 次、获 4 个星标,在全部 5,078 个 AI 技能中排名第 3,553 位,在「AI 智能体」分类(969 个)中排名第 725 位。

累计安装
106
累计下载
3,203
星标
4
全站排名
#3,553
全站前 70% · 「AI 智能体」前 75%
平台累计安装累计下载星标评论
ClawHub ↗1063,20342

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

主文说明可在每轮前自动检索并注入记忆、在每轮后自动捕获信息,也提供手动保存、搜索、读取、列出和删除记忆的工具。自动捕获可能存储敏感聊天内容;云端服务或跨用户记忆配置不当可能泄露信息。启用前应明确捕获规则,敏感对话时默认关闭自动捕获,并按用户或租户隔离凭据与记忆范围。删除操作前确认目标记录,定期审阅自动召回内容。

资料发布于 2026-10-29

可以用来做什么

  • 选择云端或自托管方式配置长期记忆
  • 检索或更新用户明确指定的记忆
  • 制定自动捕获和删除的隐私控制策略

什么时候用

  • 需要在多个会话之间检索已确认的信息时
  • 已明确哪些信息允许保存并能按用户隔离记忆时
  • 敏感对话可关闭自动捕获,且删除范围可先确认时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

设计仅保存用户明确同意信息的记忆策略
按指定用户检索一条记忆,不要扩大到其他用户
在删除记忆前核对目标 ID 和影响范围

月度数据趋势

累计下载3,203
1,6082,4653,3212026-03 · 累计下载 1,7262026-05 · 累计下载 2,5992026-06 · 累计下载 2,7622026-07 · 累计下载 3,0082026-08 · 累计下载 3,1132026-09 · 累计下载 3,20326-0326-09
星标4
3452026-03 · 星标 42026-05 · 星标 42026-06 · 星标 42026-07 · 星标 42026-08 · 星标 42026-09 · 星标 426-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-093,203—4
2026-083,113+3.5%4
2026-073,008+8.9%4
2026-062,762+6.3%4
2026-052,599—4
2026-031,726—4

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

2.9 KB · ClawHub v1.0.2
# OpenClaw Mem0 Plugin

Mem0 integration for OpenClaw. Adds intelligent long-term memory to your agents, allowing them to remember user preferences, facts, and past conversations automatically.

## When to use

- You want your agent to remember user details (name, job, preferences) across sessions
- You need "infinite context" by retrieving relevant past interactions
- You want to build a personalized assistant that learns over time
- You need both cloud (managed) and self-hosted (local) memory options
展开全部(共 108 行)

## Setup

### Platform Mode (Recommended)

1. Get a free API key at [mem0.ai](https://mem0.ai)
2. Add to your OpenClaw config:

```json
{
  "plugins": {
    "entries": {
      "openclaw-mem0": {
        "enabled": true,
        "config": {
          "mode": "platform",
          "apiKey": "your-mem0-api-key",
          "userId": "default-user"
        }
      }
    }
  }
}
```

### Open-Source Mode (Self-Hosted)

Connect to your own Mem0 instance (requires `mem0ai` package installed):

```json
{
  "plugins": {
    "entries": {
      "openclaw-mem0": {
        "enabled": true,
        "config": {
          "mode": "open-source",
          "oss": {
            "vectorStore": {
              "provider": "chroma",
              "config": {
                "collectionName": "memories",
                "path": "./chroma_db"
              }
            }
          }
        }
      }
    }
  }
}
```

## Usage

This plugin works automatically (Zero-Shot) but also provides manual tools.

### Automatic Features

- **Auto-Recall**: Before every agent turn, it searches memory for relevant context and injects it into the system prompt.
- **Auto-Capture**: After every agent turn, it analyzes the conversation and stores key facts into memory.

### Manual Tools

The agent can proactively call these tools:

| Tool | Description | Parameters |
|------|-------------|------------|
| `memory_store` | Explicitly save a fact | `text` (string), `longTerm` (bool) |
| `memory_search` | Search memories | `query` (string), `scope` ("session"\|"long-term") |
| `memory_get` | Get memory by ID | `memoryId` (string) |
| `memory_list` | List all memories | `userId` (string) |
| `memory_forget` | Delete a memory | `memoryId` (string) or `query` (string) |

### Example

**User**: "I'm moving to Tokyo next month."
*Agent automatically captures this fact.*

**(Two weeks later)**
**User**: "What's a good restaurant for my farewell dinner?"
*Agent automatically recalls "User is moving to Tokyo" and suggests a restaurant in their current city.*

## Plugin structure

```
openclaw-mem0/
  package.json            # NPM package config (@xray2016/openclaw-mem0)
  index.ts                # Plugin implementation & tools
  lib/                    # Internal Mem0 client implementation
  SKILL.md                # This file
  README.md               # Detailed documentation
```

## Author

Maintained by @xRay2016. Modified from the original Mem0 OpenClaw integration.

「AI 智能体」分类下的热门技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。