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

@cognee/cognee-openclaw

v2026.3.0

Published

OpenClaw Cognee-backed memory plugin with auto-recall/capture

Readme

@cognee/cognee-openclaw

OpenClaw plugin that adds Cognee-backed memory with automatic recall and indexing.

Features

  • Auto-recall: Before each agent run, searches Cognee for relevant memories and injects them as context
  • Auto-index: On startup and after each agent run, syncs memory markdown files to Cognee (add new, update changed, delete removed, skip unchanged)
  • CLI commands: openclaw cognee index to manually sync, openclaw cognee status to check state
  • Configurable: Search type, max results, score filtering, token limits, and more

Installation

Install the plugin locally for development:

cd integrations/openclaw
npm install
npm run build
openclaw plugins install -l .

Or once published:

openclaw plugins install @cognee/cognee-openclaw

Configuration

Enable the plugin in your OpenClaw config (~/.openclaw/config.yaml or project config):

plugins:
  entries:
    cognee-openclaw:
      enabled: true
      config:
        baseUrl: "http://localhost:8000"
        apiKey: "${COGNEE_API_KEY}"
        datasetName: "my-project"
        searchType: "GRAPH_COMPLETION"
        deleteMode: "hard"
        maxResults: 6
        autoRecall: true
        autoIndex: true

Set your API key in the environment:

export COGNEE_API_KEY="your-key-here"

Configuration Options

| Option | Type | Default | Description | |--------|------|---------|-------------| | baseUrl | string | http://localhost:8000 | Cognee API base URL | | apiKey | string | $COGNEE_API_KEY | API key for authentication | | datasetName | string | openclaw | Dataset name for storing memories | | searchType | string | GRAPH_COMPLETION | Search mode: GRAPH_COMPLETION, CHUNKS, SUMMARIES | | maxResults | number | 6 | Max memories to inject per recall | | minScore | number | 0 | Minimum relevance score filter | | maxTokens | number | 512 | Token cap for recall context | | autoRecall | boolean | true | Inject memories before agent runs | | autoIndex | boolean | true | Sync memory files on startup and after agent runs | | autoCognify | boolean | true | Run cognify after new memories are added | | deleteMode | string | soft | Delete mode: soft removes raw data only, hard also removes degree-one graph nodes | | searchPrompt | string | "" | System prompt sent to Cognee to guide search query processing | | requestTimeoutMs | number | 60000 | HTTP timeout for Cognee requests | | ingestionTimeoutMs | number | 300000 | HTTP timeout for add/update (ingestion) requests, which are typically slower |

How It Works

  1. On startup: Scans memory/ directory for markdown files and syncs to Cognee (add new, update changed, delete removed, skip unchanged)
  2. Before agent start: Searches Cognee for memories relevant to the prompt and prepends as <cognee_memories> context
  3. After agent end: Re-scans memory files and syncs any changes the agent made (including deletions)
  4. State tracking:
    • ~/.openclaw/memory/cognee/datasets.json — dataset ID mapping
    • ~/.openclaw/memory/cognee/sync-index.json — per-file hash and Cognee data IDs

Memory files detected at: MEMORY.md and memory/**/*.md (recursive)

CLI Commands

# Manually sync memory files to Cognee
openclaw cognee index

# Check sync status (indexed files, pending changes)
openclaw cognee status

Development

cd integrations/openclaw
# Build once, then link for local development with an OpenClaw project
npm install
npm run build
openclaw plugins install -l .

For live rebuilds during development:

npm run dev

Testing

Run the test suite to verify functionality:

npm test