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.
Installation
Authentication
MemoClaw uses wallet-based identity. SetMEMOCLAW_PRIVATE_KEY (hex string with 0x prefix) so the client can sign free-tier auth headers and x402 payments.
Initialize the client
Quick Example
Ingest a conversation
Extract facts automatically from conversation history and auto-create relations.Error handling
Available methods
| Method | Description |
|---|---|
store(opts) | Store a single memory |
storeBatch(memories) | Store up to 100 memories |
recall(opts) | Semantic search |
list(opts?) | List memories with pagination |
update(id, opts) | Update a memory |
delete(id) | Delete a memory |
ingest(opts) | Auto-extract facts from conversation |
extract(messages, opts?) | Extract structured facts via LLM |
consolidate(opts?) | Merge similar memories |
suggested(opts?) | Get proactive memory suggestions |
createRelation(id, opts) | Create a relationship |
listRelations(id) | List relationships |
deleteRelation(id, relationId) | Delete a relationship |
status() | Check remaining free-tier calls |
Configuration options
Next steps
API Reference
Explore every REST endpoint.
Authentication
Learn how wallet signatures and x402 payments work.