Memory (MemoryLake)

MemoryLake memory backend for OpenClaw

Install

openclaw plugins install clawhub:memorylake-openclaw

memorylake-openclaw

Long-term memory for OpenClaw agents, powered by MemoryLake.

Your agent forgets everything between sessions. This plugin fixes that. It watches conversations, extracts what matters, and brings it back when relevant — automatically.

How it works

Auto-Recall — Before the agent responds, the plugin injects memory-search instructions and open-data categories into the system prompt, instructing the agent to call retrieve_context before every reply.

Auto-Capture — After the agent responds, the plugin sends the exchange to MemoryLake. MemoryLake decides what's worth keeping — new facts get stored, stale ones updated, duplicates merged.

Auto-Upload — When a user sends a file (image, document, etc.), the plugin uploads it to MemoryLake as a project document.

Auto-Recall, Auto-Capture, and Auto-Upload run silently by default.

Setup

openclaw plugins install memorylake-openclaw

Get an API key from app.memorylake.ai, then add to your openclaw.json:

// plugins.entries
"memorylake-openclaw": {
  "enabled": true,
  "config": {
    "apiKey": "sk-...",
    "projectId": "proj-..."
  }
}

Agent tools

The agent gets seven tools it can call during conversations:

ToolDescription
retrieve_contextSearch memories AND uploaded documents in a single call
memory_listList all stored memories for a user
memory_storeExplicitly save a fact
memory_forgetDelete a memory by ID
document_downloadDownload a document by ID (returns a presigned URL)
advanced_web_searchOptional tool for web search with plugin-level domain and locale constraints
open_data_searchSearch open data sources scoped to the project's configured industry categories

CLI

# Search memories
openclaw memorylake search "what languages does the user know"

# Upload files or directories
openclaw memorylake upload /path/to/file.pdf

# Stats
openclaw memorylake stats

Options

KeyTypeDefault
apiKeystringRequired. MemoryLake API key (supports ${MEMORYLAKE_API_KEY})
projectIdstringRequired. MemoryLake project ID
hoststringhttps://app.memorylake.aiMemoryLake server endpoint URL
autoRecallbooleantrueInject mandatory retrieve_context instructions before each turn
autoCapturebooleantrueStore facts after each turn
autoUploadbooleantrueAuto-upload inbound files to MemoryLake
topKnumber5Max memories per recall
searchThresholdnumber0.3Min similarity (0–1)
rerankbooleantrueRerank search results
webSearchIncludeDomainsstring[]Optional allowlist for advanced_web_search results
webSearchExcludeDomainsstring[]Optional denylist for advanced_web_search results
webSearchCountrystringOptional ISO country code for localizing advanced_web_search
webSearchTimezonestringOptional IANA timezone for localizing advanced_web_search

advanced_web_search is registered as an optional OpenClaw tool, so agents must explicitly allow it before they can call it.

License

MIT