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

@tensakulabs/openclaw-mem0

v1.0.5

Published

Long-term memory plugin for OpenClaw agents, powered by Mem0

Readme

openclaw-mem0

Long-term memory plugin for OpenClaw agents, powered by Mem0.

Supports both the Mem0 cloud platform and self-hosted open-source deployments using any OpenAI-compatible provider (OpenRouter, DashScope, LocalAI, etc).

Features

  • 5 memory toolsmemory_search, memory_store, memory_list, memory_get, memory_forget
  • Session + long-term scopes — short-term (session) and long-term (user) memory
  • Auto-recall — injects relevant memories before each agent turn
  • Auto-capture — stores key facts after each agent turn
  • Dual mode — Mem0 platform (cloud) or open-source (self-hosted)
  • Provider-agnostic — works with OpenRouter, DashScope, LocalAI, or any OpenAI-compatible API
  • Lazy provider loading — only loads the SDKs you actually use, no bloated installs

Install

openclaw plugins install github:tensakulabs/openclaw-mem0

Configuration

Add to your openclaw.json:

Platform mode (Mem0 cloud)

{
  "plugins": {
    "entries": {
      "openclaw-mem0": {
        "config": {
          "mode": "platform",
          "apiKey": "${MEM0_API_KEY}",
          "userId": "default",
          "autoCapture": true,
          "autoRecall": true
        }
      }
    }
  }
}

Open-source mode (self-hosted)

{
  "plugins": {
    "entries": {
      "openclaw-mem0": {
        "config": {
          "mode": "open-source",
          "userId": "default",
          "autoCapture": true,
          "autoRecall": true,
          "oss": {
            "embedder": {
              "provider": "openai",
              "config": {
                "apiKey": "${OPENROUTER_API_KEY}",
                "baseURL": "https://openrouter.ai/api/v1",
                "model": "openai/text-embedding-3-small"
              }
            },
            "vectorStore": {
              "provider": "qdrant",
              "config": {
                "host": "localhost",
                "port": 6333,
                "collectionName": "memories"
              }
            },
            "llm": {
              "provider": "openai",
              "config": {
                "apiKey": "${OPENROUTER_API_KEY}",
                "baseURL": "https://openrouter.ai/api/v1",
                "model": "openai/gpt-4o-mini"
              }
            }
          }
        }
      }
    }
  }
}

What's different from the official plugin

The official @mem0/openclaw-mem0 has several issues that break self-hosted deployments:

  1. Auto-recall silently discards memories — wrong property name in the hook return (mem0ai/mem0#4037)
  2. Embeddings ignore your baseURL — always hits api.openai.com instead of your configured provider (mem0ai/mem0#4040)
  3. Missing provider SDKs crash at startupmem0ai eagerly imports 17 provider SDKs regardless of which you use
  4. Qdrant version warnings — noisy compatibility warnings with newer Qdrant servers

This plugin fixes all of these. It vendors a patched build of the mem0 OSS module with lazy dynamic imports — only the SDKs you actually configure get loaded.

License

Apache-2.0