Skip to main content

Installation

This guide walks you through installing the Aegis Memory SDK and starting the memory server locally.

Prerequisites

Before you begin, ensure you have:
  • Python 3.9+ — Check with python --version
  • Docker & Docker Compose — The memory server runs in containers
  • OpenAI API key — Used for generating embeddings (get one here)

Step 1: Install the SDK

With framework integrations:

Step 2: Start the Memory Server

Step 3: Configure Environment

Create a .env file in your project directory:
.env
Or export them directly in your terminal:

Step 4: Verify Installation

You should see your test memory returned! If so, Aegis is ready to use.

Next Steps

First Memory

Store and retrieve your first real memory

CrewAI Integration

Add memory to CrewAI agents

Troubleshooting

Check if ports 8000 or 5432 are already in use:
Kill conflicting processes or change ports in docker-compose.yml.
Wait for PostgreSQL to be ready:
Look for “database system is ready to accept connections”.
Ensure your API key is set and has credits:
Test directly:

Reference: What’s Running

After starting the server, these services are available: