Skip to main content
Make sure that ENABLE_BACKEND_ACCESS_CONTROL in your .env file is NOT set to False. Multi-user mode is enabled by default, therefore ENABLE_BACKEND_ACCESS_CONTROL=True by default.
The Neo4j adapter is one of Cognee’s core graph adapters, along with Kuzu. Multi-user mode, however, is only enabled via the Neo4j Aura Cloud with this handler. You can read more about this in the official Neo4j Aura docs.

Installation

Firstly, you will need to install specific dependencies necessary for working with Neo4j:
pip install "cognee[neo4j]"

Setup

Since this handler works for the Neo4j Aura Cloud, you will need to provide the necessary connection information:
GRAPH_DB_PROVIDER="neo4j"
NEO4J_CLIENT_ID=<your_client_id>
NEO4J_CLIENT_SECRET=<your_client_secret>
NEO4J_TENANT_ID=<your_tenant_id>
NEO4J_ENCRYPTION_KEY=<your_encryption_key>

Usage

The Neo4j Aura handler is registered in Cognee by default, so all that is left to do is to let Cognee know which handler you are using. This can be done by setting the following .env variable:
GRAPH_DATASET_DATABASE_HANDLER="neo4j_aura_dev"