Set up your environment and install Cognee to start building AI memory.

Prerequisites

  • Python 3.9 – 3.12
  • API key for OpenAI or your chosen LLM and embedding provider
  • .env file
    • We recommend creating a .env file in your project root.
    • Cognee supports many configuration options, and a .env file keeps them organized.
  • Virtual environment
    • We recommend uv.
    • Run uv venv && source .venv/bin/activate to create and activate one.
  • PostgreSQL database if you plan to use PostgreSQL as your relational database (requires postgres extra)

Setup

Default Setup (with OpenAI)

Next Steps