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 Aura in the official Neo4j Aura docs.

Local vs. Cloud Storage

By default, Cognee stores graph data locally using Kuzu (a file-based database). When you switch to Neo4j, your data moves to a Neo4j server — which can be local (self-hosted) or cloud-based (Neo4j Aura).
  • Self-hosted Neo4j — You run Neo4j yourself (locally or on a server). Data stays on that server.
  • Neo4j Aura — Neo4j’s fully managed cloud service. Data is stored in Neo4j’s cloud infrastructure; nothing is saved locally on your machine. This is useful for teams, production deployments, or when you need managed backups.

Installation

Both options use Neo4j as the graph database provider, so install the Neo4j dependencies first:
pip install "cognee[neo4j]"

Two Ways to Use Neo4j Aura

If you already have a Neo4j Aura account and a database instance, you can point Cognee at it directly using the connection URI from your Aura console:
GRAPH_DATABASE_PROVIDER="neo4j"
GRAPH_DATABASE_URL="neo4j+s://<your-instance-id>.databases.neo4j.io"
GRAPH_DATABASE_NAME="neo4j"
GRAPH_DATABASE_USERNAME="neo4j"
GRAPH_DATABASE_PASSWORD="<your-aura-password>"
This is the simplest approach. All datasets share the same Aura instance.For the general Neo4j provider setup and more context on using a single shared Aura database, see Graph Stores.

Graph Stores

Details About Cognee’s Graph Stores (including Neo4j Aura Option 1)

Multi-User Overview

More Details About Multi-User Mode