Provide a standalone hook that keeps OpenClaw agents in sync with Mem0 by capturing meaningful turns, recalling personal and knowledge-base memories, and supporting audio transcripts.
hook/handler.ts — business logic. Reads config from MEM0_* env vars or ~/.openclaw/mem0.json. Handles received/preprocessed/transcribed events and rewrites context.bodyForAgent with injected memory blocks when appropriate.package.json & tsconfig.json — minimal metadata for building and for the OpenClaw hook loader.Defaults are documented in README.md. Keep a sample ~/.openclaw/mem0.json near the gateway so other developers can copy it.
npm install (growth step, optional). 2. openclaw hooks install --link /path/to/hook. 3. openclaw gateway restart. 4. openclaw hooks list → hook should be ready.openclaw hooks simulate message or create fixtures and hit handler. Ensure STT and Mem0 endpoints are mocked.http://192.168.0.200:8420 to validate capture/recall flows.package.json version.v1.0.0).Maintainer: Lukas Goldschmidt / GOLEM assistant (builds, tests, deploys).