Skip to main content
Give your OpenClaw agents Cognee-backed memory sourced from your Cognee Cloud tenant. The plugin indexes your Markdown memory files, recalls relevant context before each run, and searches across sessions with natural language — with optional multi-scope routing (company / user / agent).

1. Install the plugin

Or install locally for development:

2. Run setup

3. Connect to Cognee Cloud

Cognee Cloud tenants serve the same /api/v1/* API as a self-hosted server, so connecting is just the default config pointed at your tenant URL with an API key. Edit ~/.openclaw/openclaw.json:
COGNEE_API_KEY is mandatory for a cloud tenant — remote servers expose no login route, so there’s nothing to auto-mint. Set it in the environment the gateway process starts from (a daemonized gateway doesn’t see exports from your current shell), using a key from the API Keys page:
hooks.allowPromptInjection: true is required. Without it, OpenClaw blocks the plugin from reading the prompt in the before_prompt_build hook and recall is silently skipped. This key was named allowConversationAccess before OpenClaw 2026.4.2; the old key is silently rejected. Restart the gateway after changing it: openclaw gateway stop && openclaw gateway start.
Do not set mode: "cloud" — leave it at the default. That mode targets a legacy path scheme that current tenants don’t serve (it will 404). All operations — file sync, updates, recall, session capture, and improve — work against Cloud through the standard /api/v1/* paths.

4. Verify

A healthy status shows the dataset ID, indexed file count, and a recent last-sync timestamp.

Multi-scope memory

Enable multi-scope mode by setting any scope-specific dataset name; memory files are routed to the right dataset by path: See the full integration guide for the complete config, search types, and CLI reference.

Full integration guide

Multi-scope config, search types, and troubleshooting

OpenClaw Docs

Learn about OpenClaw’s memory system