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
累計下載
3203
星標
4
全站排名
#3,553
全站前 70% · 「AI 智慧體」前 75%
平台累計安裝累計下載星標評論
ClawHub ↗106320342

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

主文說明可在每輪前自動檢索並注入記憶、在每輪後自動捕獲資訊,也提供手動儲存、搜尋、讀取、列出和刪除記憶的工具。自動捕獲可能儲存敏感聊天內容;雲端服務或跨使用者記憶配置不當可能洩露資訊。啟用前應明確捕獲規則,敏感對話時預設關閉自動捕獲,並按使用者或租戶隔離憑據與記憶範圍。刪除操作前確認目標記錄,定期審閱自動召回內容。

資料釋出於 2026-10-29

可以用來做什麼

  • 選擇雲端或自託管方式配置長期記憶
  • 檢索或更新使用者明確指定的記憶
  • 制定自動捕獲和刪除的隱私控制策略

什麼時候用

  • 需要在多個會話之間檢索已確認的資訊時
  • 已明確哪些資訊允許儲存並能按使用者隔離記憶時
  • 敏感對話可關閉自動捕獲,且刪除範圍可先確認時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

設計僅儲存使用者明確同意資訊的記憶策略
按指定使用者檢索一條記憶,不要擴大到其他使用者
在刪除記憶前核對目標 ID 和影響範圍

月度資料趨勢

累計下載3203
1608246533212026-03 · 累計下載 17262026-05 · 累計下載 25992026-06 · 累計下載 27622026-07 · 累計下載 30082026-08 · 累計下載 31132026-09 · 累計下載 320326-0326-09
星標4
3452026-03 · 星標 42026-05 · 星標 42026-06 · 星標 42026-07 · 星標 42026-08 · 星標 42026-09 · 星標 426-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-093203—4
2026-083113+3.5%4
2026-073008+8.9%4
2026-062762+6.3%4
2026-052599—4
2026-031726—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),按月更新。口徑說明見資料方法。