Skip to main content
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.

Installation

Authentication

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.
Every wallet gets 100 free paid-endpoint calls. After that, calls fall back to x402 payments (0.0050.005–0.01 per request depending on the endpoint).

Initialize the client

Quick Example

1

Store a memory

2

Recall memories

Output:
3

Update and delete

Ingest a conversation

Extract facts automatically from conversation history and auto-create relations.

Error handling

Available methods

Configuration options

Next steps

API Reference

Explore every REST endpoint.

Authentication

Learn how wallet signatures and x402 payments work.