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

@memmachine/openclaw-memmachine

v0.3.9

Published

OpenClaw MemMachine memory plugin

Downloads

119

Readme

MemMachine OpenClaw Plugin

This plugin integrates OpenClaw with MemMachine to provide persistent, queryable long-term memory across agent sessions. MemMachine (by MemVerge) stores interaction history and retrieves high-relevance context at inference time, enabling response grounding while reducing prompt size and token usage.

The plugin registers the following functions in OpenClaw:

  • memory_search
  • memory_store
  • memory_forget
  • memory_get

It also registers two CLI functions:

  • search: Search MemMachine memory.
  • stats: Retrieve stats from MemMachine.

Features

Auto Recall

When auto recall is enabled, the plugin searches episodic and semantic memories before the agent responds. Matching entries are injected into the context.

Auto Capture

When auto capture is enabled, the plugin sends each exchange to MemMachine after the agent responds.

Setup

Install from package registry

openclaw plugins install @memmachine/openclaw-memmachine

Install from local filesystem

openclaw plugins install ./MemMachine/integrations/openclaw

Install from a packed tarball

openclaw plugins install ./memmachine-openclaw-memmachine-0.0.0-development.tgz

Do not use openclaw hooks install for this package. It is an OpenClaw plugin pack that exports openclaw.extensions, not a hook pack that exports openclaw.hooks.

Platform (MemMachine Cloud)

Get an API key from MemMachine Cloud.

Configuration

You can configure the MemMachine plugin in the UI or by editing the memmachine entry in the openclaw.json file.

MemMachine configuration in openclaw.json

Here is a sample openclaw.json entry:

{
  "plugins": {
    "slots": {
      "memory": "openclaw-memmachine"
    },
    "entries": {
      "openclaw-memmachine": {
        "enabled": true,
        "config": {
          "apiKey": "mm-...",
          "baseUrl": "https://api.memmachine.ai",
          "autoCapture": true,
          "autoRecall": true,
          "orgId": "openclaw",
          "projectId": "openclaw",
          "searchThreshold": 0.5,
          "topK": 5,
          "userId": "openclaw"
        }
      }
    }
  }
}

Configuration entries

Here are the required configuration entries:

  • apiKey: MemMachine API key.
  • baseUrl: MemMachine API base URL.
  • autoCapture: Enable automatic memory capture.
  • autoRecall: Enable automatic memory recall.
  • orgId: Organization identifier.
  • projectId: Project identifier.
  • searchThreshold: Minimum similarity score for recall.
  • topK: Maximum number of memories to return.
  • userId: User identifier for memory scoping.

Memory scoping and userId

The userId field controls how autoRecall scopes its search and how autoCapture tags stored memories. The behaviour depends on whether userId has been set to a real per-human-user value:

Default userId ("openclaw") — session-only recall

When userId is omitted or left as the default value "openclaw", the plugin uses the session's ephemeral sessionId as the sole discriminator. Recall is restricted to memories captured in the current conversation session (the session started by /new or /reset). Memories from earlier conversations are not retrieved.

This is the safe default. It prevents memories from one user's questions from leaking into another user's (or even the same user's later) questions.

Configured userId — cross-session long-term recall

When userId is set to a stable, per-human-user identifier — for example the Slack user ID of the person talking to the bot — autoRecall retrieves all memories previously stored under that user_id. This enables genuine long-term memory: preferences, decisions, and facts persist across separate sessions.

{
  "config": {
    "userId": "U012AB3CD"  // Slack user ID, Telegram user ID, etc.
  }
}

To use this correctly, set userId dynamically per user in your integration layer (e.g. per-channel account config, middleware, or environment variable). All users sharing the same userId value share their memory pool.

What happens when sessionId is unavailable

If OpenClaw does not supply a sessionId for a particular hook invocation (for example in some one-shot or legacy agent run modes), autoRecall skips the search entirely rather than issuing an unscoped query that would match all stored memories. You will see an info-level log line from the plugin when this occurs.