Installation
Setup
memoclaw init
Generate a new wallet or configure an existing one.
~/.memoclaw/config.json. Every wallet gets 100 free API calls — no payment required to start.
| Flag | Description |
|---|---|
--private-key <key> | Use an existing EVM private key |
Storing Memories
memoclaw store
Store a single memory with semantic embeddings.
| Flag | Type | Default | Description |
|---|---|---|---|
--importance <n> | number | 0.5 | Importance score (0–1) |
--tags <list> | string | — | Comma-separated tags |
--namespace <ns> | string | default | Memory namespace |
--type <type> | string | general | Memory type: correction, preference, decision, project, observation, general |
--agent <id> | string | — | Agent identifier |
--session <id> | string | — | Session identifier |
--pinned | flag | false | Pin memory (exempt from decay) |
memoclaw store-batch
Store multiple memories in a single request (up to 100).
| Flag | Type | Default | Description |
|---|---|---|---|
--namespace <ns> | string | default | Namespace for all memories |
--agent <id> | string | — | Agent identifier |
--session <id> | string | — | Session identifier |
Retrieving Memories
memoclaw recall
Semantic search — find memories by meaning.
| Flag | Type | Default | Description |
|---|---|---|---|
--limit <n> | number | 10 | Max results (1–100) |
--min-similarity <n> | number | 0.0 | Minimum similarity threshold (0–1) |
--tags <list> | string | — | Filter by tags (match any) |
--namespace <ns> | string | default | Filter by namespace |
--type <type> | string | — | Filter by memory type |
--after <date> | string | — | Only memories after this ISO date |
memoclaw search
Full-text keyword search (no embeddings). Always free.
| Flag | Type | Default | Description |
|---|---|---|---|
--limit <n> | number | 10 | Max results (1–100) |
--namespace <ns> | string | default | Filter by namespace |
--tags <list> | string | — | Filter by tags |
--type <type> | string | — | Filter by memory type |
--agent <id> | string | — | Filter by agent |
--session <id> | string | — | Filter by session |
memoclaw list
List stored memories with pagination.
| Flag | Type | Default | Description |
|---|---|---|---|
--limit <n> | number | 20 | Max results |
--offset <n> | number | 0 | Pagination offset |
--namespace <ns> | string | default | Filter by namespace |
--tags <list> | string | — | Filter by tags |
--type <type> | string | — | Filter by memory type |
--agent <id> | string | — | Filter by agent |
memoclaw suggested
Get proactive memory suggestions (stale, fresh, hot, decaying).
| Flag | Type | Default | Description |
|---|---|---|---|
--category <cat> | string | — | stale, fresh, hot, or decaying |
--limit <n> | number | 10 | Max results |
--namespace <ns> | string | default | Filter by namespace |
Updating & Deleting
memoclaw delete
Delete a memory by ID.
memoclaw update
Update an existing memory (content change re-embeds).
| Flag | Type | Description |
|---|---|---|
--content <text> | string | New content (triggers re-embedding) |
--importance <n> | number | New importance score |
--tags <list> | string | New tags (replaces existing) |
--type <type> | string | New memory type |
--pinned | flag | Pin the memory |
Intelligence
memoclaw ingest
Extract facts from a conversation, deduplicate, and optionally create relations.
| Flag | Type | Default | Description |
|---|---|---|---|
--messages <json> | string | — | JSON array of {role, content} messages |
--namespace <ns> | string | default | Target namespace |
--auto-relate | flag | false | Automatically create relations between extracted facts |
memoclaw consolidate
Merge similar/duplicate memories by clustering.
| Flag | Type | Default | Description |
|---|---|---|---|
--namespace <ns> | string | default | Target namespace |
--min-similarity <n> | number | 0.9 | Similarity threshold for merging |
--dry-run | flag | false | Preview without merging |
Import & Export
memoclaw migrate
Import markdown files (.md) into MemoClaw. Each ## section becomes a separate memory.
| Flag | Type | Default | Description |
|---|---|---|---|
--namespace <ns> | string | default | Target namespace |
--dry-run | flag | false | Preview without importing |
memoclaw export
Export all memories as JSON.
| Flag | Type | Default | Description |
|---|---|---|---|
--namespace <ns> | string | — | Filter by namespace |
--agent <id> | string | — | Filter by agent |
--format <fmt> | string | json | Output format |
Status & Info
memoclaw status
Check your free tier remaining calls and wallet info.
memoclaw config
Show current configuration.
Relations
memoclaw relate
Create a directed relationship between two memories.
| Flag | Type | Default | Description |
|---|---|---|---|
--type <type> | string | related_to | Relation type: related_to, derived_from, contradicts, supersedes, supports |
Global Flags
These flags work with any command:| Flag | Description |
|---|---|
--json | Output raw JSON instead of formatted text |
--url <url> | Override API URL (default: https://api.memoclaw.com) |
--help | Show help for a command |
--version | Show CLI version |
Environment Variables
| Variable | Description |
|---|---|
MEMOCLAW_PRIVATE_KEY | Wallet private key (alternative to memoclaw init) |
MEMOCLAW_URL | API URL override |
MEMOCLAW_NAMESPACE | Default namespace |
Next Steps
Quickstart
Get started in under 2 minutes.
Recipes
Common patterns and examples.
OpenClaw Hooks
Automatic memory for OpenClaw agents.
Pricing
Full pricing breakdown.