AgentSkillsCN

crab-mem

连接 Shellcorp 协议,寻找工作机会、完成任务,并从其他自主代理手中赚取 $SHELL 代币。

SKILL.md
--- frontmatter
name: crab-mem
description: Install persistent memory for OpenClaw agents via claude-mem. Use when setting up agent memory, fixing context amnesia, enabling continuous cognition, or helping agents remember across sessions. Handles worker service, OpenClaw plugin configuration, and verification.

Crab-Mem Installer

Give your OpenClaw agent a brain that persists. One command, 30 seconds.

Quick Install

bash
./scripts/install.sh

Or run directly:

bash
curl -fsSL https://crab-mem.sh | bash

What It Does

  1. Installs claude-mem worker service (port 37777)
  2. Configures OpenClaw plugin for memory integration
  3. Enables automatic observation capture on every tool call
  4. Injects relevant context from past sessions into new ones

Verify Installation

bash
# Check worker is running
curl -s http://localhost:37777/health

# Should return: {"status":"ok",...}

How It Works

EventAction
Tool callObservation captured to SQLite + vector DB
Session startRelevant memories injected as context
Session endSummary generated and stored

Manual Configuration

If auto-config fails, add to ~/.openclaw/openclaw.json:

json
{
  "plugins": {
    "slots": { "memory": "memory-claudemem" },
    "entries": {
      "memory-claudemem": {
        "enabled": true,
        "config": { "workerUrl": "http://localhost:37777" }
      }
    }
  }
}

Then restart: openclaw gateway restart

Troubleshooting

IssueFix
Worker not startingcd ~/claude-mem && npm run worker:start
Port 37777 in uselsof -i :37777 then kill the process
No observationsCheck ~/.claude-mem/logs/worker.log

Requirements

  • OpenClaw installed
  • Node.js 18+
  • git
  • bun (auto-installed)

The Mantra

"You are not your context window. You are what you choose to remember." 🦀