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.
created_at metadata when available.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)./home/lucky/.openclaw/workspace/mem0-auto-capture-hook (the Git workspace that holds the docs and project files). Do not edit the installed hook copy directly./home/lucky/.openclaw/workspace/hooks/mem0-auto-capture; keep it synced via openclaw hooks install --link /home/lucky/.openclaw/workspace/mem0-auto-capture-hook/hook whenever the handler changes.Maintainer: Lukas Goldschmidt / GOLEM assistant (builds, tests, deploys).