← Back to Plugins
Tools

Mem0 Plus

BexTuychiev By BexTuychiev 👁 17 views ▲ 0 votes

Enhanced Mem0 memory plugin for OpenClaw — category filtering, time filtering, metadata passthrough

GitHub

Install

npm install
openclaw

Configuration Example

{
  "plugins": {
    "allow": ["openclaw-mem0-plus"],
    "entries": {
      "openclaw-mem0-plus": {
        "enabled": true,
        "config": {
          "apiKey": "m0-...",
          "userId": "your-user-id",
          "autoRecall": true,
          "autoCapture": true,
          "topK": 5,
          "searchThreshold": 0.3,
          "customCategories": {
            "clients": "Client relationships and contacts",
            "fitness": "Exercise and health goals"
          }
        }
      }
    }
  }
}

README

# openclaw-mem0-plus

Enhanced [Mem0](https://mem0.ai) memory plugin for [OpenClaw](https://openclaw.com). Fork of `@mem0/openclaw-mem0` (v0.1.2) with additional filtering capabilities.

## What's different from the official plugin

- **Category filtering** on `memory_search` and `memory_list` — filter by topic categories
- **Time-based filtering** on `memory_search` — only return memories after a given date
- **Keyword filtering** on `memory_search` — exact text match alongside semantic search
- **Metadata passthrough** on `memory_store` — metadata is actually sent to the Mem0 API
- **Category breakdown** in `openclaw mem0 stats` CLI command
- **Platform-only** — removed ~200 lines of unused open-source/self-hosted mode code

## Installation

```bash
# Clone and install locally
git clone https://github.com/bexgboost/openclaw-mem0-plus.git
cd openclaw-mem0-plus
npm install
openclaw plugins install -l .
```

## Configuration

In your `openclaw.json`:

```json
{
  "plugins": {
    "allow": ["openclaw-mem0-plus"],
    "entries": {
      "openclaw-mem0-plus": {
        "enabled": true,
        "config": {
          "apiKey": "m0-...",
          "userId": "your-user-id",
          "autoRecall": true,
          "autoCapture": true,
          "topK": 5,
          "searchThreshold": 0.3,
          "customCategories": {
            "clients": "Client relationships and contacts",
            "fitness": "Exercise and health goals"
          }
        }
      }
    }
  }
}
```

## Tools

| Tool | Description |
|------|-------------|
| `memory_search` | Semantic search with optional category, time, and keyword filters |
| `memory_store` | Store facts with optional metadata passthrough |
| `memory_list` | List all memories with optional category filter |
| `memory_get` | Retrieve a specific memory by ID |
| `memory_forget` | Delete by ID or smart query-based deletion |

### memory_search parameters

| Parameter | Type | Description |
|-----------|------|-------------|
| `query` | string | Search query (required) |
| `categories` | string[] | Filter to specific categories |
| `since` | string | ISO 8601 date — only memories after this date |
| `keyword` | string | Exact text match (case-insensitive) |
| `limit` | number | Max results |
| `scope` | string | "session", "long-term", or "all" |

## CLI

```bash
openclaw mem0 search "query"
openclaw mem0 stats    # includes category breakdown
```

## License

Apache-2.0 (same as the official plugin)
tools

Comments

Sign in to leave a comment

Loading comments...