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 the knowledge graph built from past 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 — cloud tenants 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:
allowConversationAccess: true is the one that is strictly required: OpenClaw withholds the conversation hooks (llm_output, agent_end) from installed plugins without it, so Q&A session capture and post-run file sync are silently skipped. allowPromptInjection gates the prompt-injection hooks (before_prompt_build) that carry recall; it defaults to allowed, but openclaw cognee setup writes it explicitly because it also signals hook startup intent. Restart the gateway after changing either: openclaw gateway stop && openclaw gateway start.
Leave mode at its default — do not set mode: "cloud". That mode switches every request to a legacy path scheme without the /api/v1 prefix, which current tenants don’t serve. 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