npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@xray2016/openclaw-mem0

v1.0.5

Published

OpenClaw memory plugin using mem0

Readme

OpenClaw Mem0 Plugin

中文文档

This is a OpenClaw plugin that integrates with Mem0 to provide intelligent long-term memory capabilities for your agents.

Features

  • Auto-Recall: Automatically searches for relevant past interactions and injects them into the context before the agent starts (before_agent_start).
  • Auto-Capture: Automatically analyzes conversation turns and stores key information into long-term memory after the agent finishes (agent_end).
  • Hybrid Scope: Supports both Session Memory (short-term, current conversation) and User Memory (long-term, cross-conversation).
  • Dual Mode: Supports both Mem0 Platform (Cloud) and Open-Source (Self-hosted) backends.
  • Tools: Provides 5 powerful tools for agents to interact with memory manually:
    • memory_search: Search for specific information.
    • memory_store: Explicitly save important facts.
    • memory_get: Retrieve a specific memory by ID.
    • memory_list: List all memories for a user.
    • memory_forget: Delete specific or matching memories (GDPR compliant).

Installation

Install via OpenClaw CLI (npm registry):

openclaw plugins install @xray2016/openclaw-mem0

Configuration

You can configure the plugin in your ~/.openclaw/openclaw.json, the apikey and host can get from the platform.

Platform Mode (Recommended)

Use the managed Mem0 Cloud service.

// plugins.entries
"openclaw-mem0": {
    "enabled": true,
    "config": {
        "mode": "platform",
        "apiKey": "${MEM0_API_KEY}",
        "userId": "openclaw-user",
        "host": "${MEM0_HOST}"
    }
}

Usage

1. Automatic Memory (Zero-Shot)

Just enable the plugin. When you chat with your agent:

  • It will automatically "remember" facts you shared in previous conversations.
  • It will "recall" relevant context when you ask related questions.

2. Manual Tools

Your agents can proactively use tools:

  • User: "Please remember that I'm allergic to peanuts."

  • Agent: Calls memory_store({ text: "User is allergic to peanuts", longTerm: true })

  • User: "What was that book I mentioned last week?"

  • Agent: Calls memory_search({ query: "book mentioned last week", scope: "long-term" })

CLI Commands

This plugin extends the OpenClaw CLI with memory management commands:

# Search memories
openclaw mem0 search "hobbies"

# Show memory statistics
openclaw mem0 stats

Acknowledgements

This project is modified from mem0/openclaw.

License

Apache License Version 2.0