Use this file to discover all available pages before exploring further.
MemoClaw ships an official TypeScript SDK inside the memoclaw package. The same package also contains the CLI, so you get both programmatic access and terminal commands from a single install. Use it anywhere Node.js 18+, Bun, or modern Edge runtimes run.
Prefer a no-code setup for OpenClaw agents? Install memoclaw-hooks alongside the SDK so your agent auto-stores and recalls memories during each session.
MemoClaw uses wallet-based identity. Set MEMOCLAW_PRIVATE_KEY (hex string with 0x prefix) so the client can sign free-tier auth headers and x402 payments.
export MEMOCLAW_PRIVATE_KEY=0xyourprivatekey
Every wallet gets 100 free paid-endpoint calls. After that, calls fall back to x402 payments (0.005–0.01 per request depending on the endpoint).
Extract facts automatically from conversation history and auto-create relations.
const result = await client.ingest({ messages: [ { role: "user", content: "I prefer dark mode and use vim. My timezone is PST." }, { role: "assistant", content: "Got it! I'll remember those preferences." }, ], auto_relate: true,});console.log( `Extracted ${result.facts_extracted} facts, created ${result.relations_created} relations`,);