OpenClaw Integration Guide
Give your OpenClaw personal assistant a persistent memory layer with AgentRecall. The assistant remembers user preferences, past conversations, and context across every channel.
Overview
OpenClaw is a personal assistant platform built on the Model Context Protocol (MCP). By adding the AgentRecall MCP server, your assistant gains the ability to store and retrieve memories — facts, preferences, corrections, and temporal context — across sessions and channels.
Once configured, the agent automatically indexes important information from conversations and surfaces relevant memories in future interactions. No prompt engineering required.
Prerequisites
- Python 3.10 or later installed on your system.
- OpenClaw installed and functional (openclaw --version should work).
- An AgentRecall account with an active API key (ark_...).
Installation
Install the AgentRecall MCP server package globally:
pip install agentrecall-mcpSetup
Register the AgentRecall MCP server with OpenClaw in a single command:
openclaw mcp set agentrecall "{\n "command": "agentrecall-mcp",\n "env": {\n "AGENTRECALL_API_KEY": "ark_YOUR_KEY",\n "AGENTRECALL_AGENT_ID": "openclaw"\n }\n}"Replace ark_YOUR_KEY with the API key from your AgentRecall dashboard. The AGENTRECALL_AGENT_ID should match the agent name you want memories scoped to.
Verify Installation
Confirm the server is registered:
openclaw mcp listYou should see `agentrecall` in the output. To view full details:
openclaw mcp show agentrecallIf the server appears and its status shows healthy, you are ready. The agent will begin persisting memories automatically.
Configuration Reference
All configuration is passed through environment variables when the MCP server is launched. Adjust them in the mcp set JSON.
| Variable | Description | Required | Default |
|---|---|---|---|
| AGENTRECALL_API_KEY | Your AgentRecall API key (ark_...) | Yes | — |
| AGENTRECALL_AGENT_ID | Agent identifier (e.g. openclaw) | Yes | hermes |
| AGENTRECALL_BASE_URL | Custom API endpoint | No | https://api.agentrecall.com |
| AGENTRECALL_LOG_LEVEL | Logging verbosity | No | info |
Use Cases
User Preferences
The assistant learns that you prefer dark mode, concise responses, and use VS Code — and applies these preferences automatically in every session.
Relationship Memory
Store context about the people in your life — birthdays, communication styles, preferences — so the assistant can help you plan and remember.
Daily Routines
Track recurring tasks, schedules, and habits. The assistant can surface reminders and suggest routines based on past behavior.
Cross-Channel Context
Whether you interact via CLI, Telegram, or Slack, the same memory store ensures continuity. Conversations started on one platform carry over to another.
Multi-Agent Setup
OpenClaw can run multiple agents simultaneously. You can register separate AgentRecall agents for different purposes:
{\n "personal": {\n "env": {\n "AGENTRECALL_AGENT_ID": "openclaw-personal"\n }\n },\n "coding": {\n "env": {\n "AGENTRECALL_AGENT_ID": "openclaw-coding"\n }\n }\n}Each agent maintains its own isolated memory graph. Personal memories won't leak into coding context and vice versa.
Troubleshooting
agentrecall-mcp binary is on your PATH. Run which agentrecall-mcp to verify. If not found, reinstall with pip install --force-reinstall agentrecall-mcp.ark_ and has not expired. You can verify it on the AgentRecall dashboard under API Keys.Removing the Integration
To completely remove AgentRecall from your OpenClaw setup:
openclaw mcp unset agentrecallThis disconnects the server. Stored memories remain in your AgentRecall account and can be accessed from the dashboard or reconnected later.