OpenClaw MemoryStack memory plugin - long-term memory for your AI assistant
npm install @memorystack/openclaw-memorystackbash
openclaw plugins install @memorystack/clawdbot-memorystack
`
Restart OpenClaw after installing.
Configuration
The only required value is your MemoryStack API key. Get one at memorystack.app/dashboard/api-keys.
Set it as an environment variable:
`bash
export MEMORYSTACK_API_KEY="ms_proj_..."
`
Or configure it directly in openclaw.json (or moltbot.json):
`json
{
"plugins": {
"entries": {
"clawdbot-memorystack": {
"enabled": true,
"config": {
"apiKey": "${MEMORYSTACK_API_KEY}",
"autoRecall": true,
"autoCapture": true
}
}
}
}
}
`
$3
| Key | Type | Default | Description |
|-----|------|---------|-------------|
| apiKey | string | - | Your MemoryStack API key (required) |
| baseUrl | string | https://memorystack.app | API endpoint URL |
| autoRecall | boolean | true | Inject relevant memories before every AI turn |
| autoCapture | boolean | true | Automatically store conversation content after every turn |
| maxRecallResults | number | 5 | Max memories injected into context per turn (1-20) |
| debug | boolean | false | Verbose debug logs for API calls and responses |
Slash Commands
Use these commands directly in chat:
| Command | Description |
|---|---|
| /add | Save something to long-term memory |
| /search | Search your memories |
| /stats | View memory usage statistics |
CLI Commands
Manage memories from the terminal:
`bash
openclaw memorystack search "project alpha"
openclaw memorystack stats
openclaw memorystack add "The server IP is 10.0.0.5"
openclaw memorystack deleteall # Destructive!
``