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

@syuesw/openclaw-memory

v1.0.0-alpha.1

Published

OpenClaw Memory Extension - Local self-hosted memory layer for personalized AI interactions

Downloads

88

Readme

OpenClaw Memory Extension

🧠 AI Memory Layer - Give your AI assistant long-term memory with personalized recall.

本项目使用 OpenClaw 辅助生成

中文文档


Features

  • ✅ Remember user preferences across sessions
  • ✅ Recall context from previous conversations
  • ✅ Provide personalized responses
  • ✅ Reduce token usage by storing context externally
  • Flexible Memory Isolation - Control how memories are grouped (by user, chat, channel, etc.)
  • ✅ Support multiple embedding providers (Ollama, Aliyun, OpenAI, etc.)
  • ✅ Modular architecture - replace any component

Quick Start

One-Command Install (Recommended) ⭐

curl -fsSL https://raw.githubusercontent.com/syuesw/openclaw-memory/main/install.sh | bash

With options:

# Install with Chinese language
curl -fsSL https://raw.githubusercontent.com/syuesw/openclaw-memory/main/install.sh | bash -s -- --lang=zh

# Install with English language
curl -fsSL https://raw.githubusercontent.com/syuesw/openclaw-memory/main/install.sh | bash -s -- --lang=en

# Skip interactive configuration
curl -fsSL https://raw.githubusercontent.com/syuesw/openclaw-memory/main/install.sh | bash -s -- --skip-config

# Show help
curl -fsSL https://raw.githubusercontent.com/syuesw/openclaw-memory/main/install.sh | bash -s -- --help

What this does:

  1. Downloads and runs the installer script
  2. Installs the plugin via openclaw plugins install
  3. Configures language preference
  4. Enables the plugin

Alternative: Install from npm

# 1. Install plugin from npm
openclaw plugins install @syuesw/openclaw-memory

# 2. Configure language
openclaw config set plugins.entries.memory.config.language "zh"  # or "en" or "auto"

# 3. Enable plugin
openclaw plugins enable memory

# 4. Restart Gateway
openclaw gateway restart

Verify

curl http://localhost:5000/health
# Or in chat: /memory_status

Deploy Memory Services (Optional)

Memory services run separately from the plugin. Deploy them to enable memory functionality.

Step 1: Clone Repository

git clone https://github.com/syuesw/openclaw-memory.git ~/.openclaw/extensions/openclaw-memory
cd ~/.openclaw/extensions/openclaw-memory

Step 2: Configure Environment

# Copy example configuration
cp .env.example .env

# Edit .env with your settings
# - For local embedding: Keep default Ollama settings
# - For cloud embedding: Set EMBEDDING_API_URL and EMBEDDING_API_KEY
nano .env

Step 3: Start Services

# Local embedding mode (requires 12GB+ RAM)
docker compose up -d

# Cloud embedding mode (requires 3GB+ RAM)
# Comment out 'embedding' service in docker-compose.yml first
docker compose up -d

Step 4: Verify

curl http://localhost:5000/health

📖 Full installation guide: Quick Start


Usage

Add Memory

Remember that I prefer dark mode

Recall Memory

What did I say about my preferred mode?

Check Status

/memory_status

📖 Complete usage guide: Usage Guide


Configuration

Plugin Config (WebUI: Settings → Plugins → Memory)

{
  "baseUrl": "http://localhost:5000",
  "autoMemory": true,
  "maxResults": 5,
  "isolationScope": ["user"]
}

| Option | Default | Description | |--------|---------|-------------| | baseUrl | http://localhost:5000 | Memory API URL | | autoMemory | true | Auto-use memories | | maxResults | 5 | Max search results | | isolationScope | ["user"] | Isolation levels (multi-select) |

Isolation Levels (Multi-Select)

Note: If no levels selected ([]), memories are globally shared (no isolation).

| Level | Prefix | Example | |-------|--------|---------| | By User | u | u:alice | | By Chat | c | c:work-chat | | By Channel | ch | ch:telegram | | By Agent | a | a:main | | By Session | s | s:session123 |

📖 Detailed configuration: Configuration Guide
📖 Isolation explained: Memory Isolation


Chat Commands

| Command | Description | |---------|-------------| | /memory_status | Show plugin status | | /memory_help | Show help information |

📖 All commands: Chat Commands


Architecture

┌─────────────────┐     ┌─────────────────┐     ┌─────────────────┐
│  OpenClaw AI    │────▶│  Memory Plugin  │────▶│  Memory API     │
│  (Your Assistant)│     │  (This Plugin)  │     │  (Self-hosted)  │
└─────────────────┘     └─────────────────┘     └────────┬────────┘
                                                         │
                          ┌──────────────────────────────┼──────────────────────────────┐
                          │                              │                              │
                          ▼                              ▼                              ▼
                   ┌──────────────┐              ┌──────────────┐              ┌──────────────┐
                   │   Qdrant     │              │   Embedding  │              │   Cloud      │
                   │  (Vector DB) │              │   (Optional) │              │   (Optional) │
                   └──────────────┘              └──────────────┘              └──────────────┘

Modular Components (All Replaceable):

| Component | Default | Alternatives | |-----------|---------|--------------| | Vector DB | Qdrant | Pinecone, Weaviate, Milvus, Chroma | | Embedding | Ollama (qwen3-embedding:0.6b) | Aliyun DashScope, OpenAI, Cohere | | Memory API | Go Service | Custom implementation |


Docker Images

| Image | Description | |-------|-------------| | syuesw/memory-api | Memory API service (Go) | | qdrant/qdrant | Vector database (official) | | ollama/ollama | Embedding service (local mode, official) |


Resource Requirements

Local Embedding Mode

| Resource | Minimum | Recommended | |----------|---------|-------------| | RAM | 12GB | 16GB | | Disk | 10GB | 20GB | | CPU | 4 cores | 8 cores |

Cloud Embedding Mode

| Resource | Minimum | Recommended | |----------|---------|-------------| | RAM | 3GB | 4GB | | Disk | 2GB | 5GB | | CPU | 2 cores | 4 cores |


Documentation

| Document | Description | |----------|-------------| | 🚀 Quick Start | Installation and setup (5 minutes) | | 📖 Usage Guide | Detailed usage examples and features | | 💬 Chat Commands | Commands for chat windows | | ⚙️ Configuration | All configuration options | | 🔒 Memory Isolation | Understand isolation levels | | 🔧 Troubleshooting | Common issues and solutions | | 📝 API Reference | Complete API documentation |


Project Structure

openclaw-memory/
├── index.ts                    # Plugin entry point
├── src/
│   ├── tools.ts                # Tool implementations
│   └── runtime.ts              # Runtime helpers
├── memory-api/                 # Go memory service
├── docker-compose.yml          # Service orchestration
├── .env.example                # Environment template
├── install.sh                  # Plugin installer
├── README.md                   # This file
├── README_CN.md                # Chinese documentation
├── docs/                       # Documentation
│   ├── QUICKSTART.md           # Quick start guide
│   ├── USAGE.md                # Usage guide
│   ├── CONFIGURATION.md        # Configuration guide
│   ├── ISOLATION.md            # Memory isolation guide
│   ├── TROUBLESHOOTING.md      # Troubleshooting guide
│   ├── COMMANDS.md             # Chat commands
│   ├── api/                    # API documentation
│   │   ├── API.md
│   │   └── API_CN.md
│   └── guides/                 # User guides (duplicates, for compatibility)
├── LICENSE                     # MIT License
└── package.json                # NPM package config

Resources


License

MIT License - see LICENSE file for details.

See THIRD-PARTY-NOTICES.md for third-party license information and disclaimers.