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
Step 2: Start the Memory Server
- Quick Start (Recommended)
- Manual Setup
- Downloads the Docker Compose configuration
- Starts PostgreSQL with pgvector
- Starts the Aegis API server
- Runs health checks
Step 3: Configure Environment
Create a.env file in your project directory:
.env
Step 4: Verify Installation
You should see your test memory returned! If so, Aegis is ready to use.
Next Steps
Troubleshooting
Docker containers won't start
Docker containers won't start
Check if ports 8000 or 5432 are already in use:Kill conflicting processes or change ports in
docker-compose.yml.Connection refused errors
Connection refused errors
Wait for PostgreSQL to be ready:Look for “database system is ready to accept connections”.
OpenAI API errors
OpenAI API errors
Ensure your API key is set and has credits:Test directly:
Reference: What’s Running
After starting the server, these services are available:| Service | Port | Purpose |
|---|---|---|
| Aegis API | 8000 | REST API for memory operations |
| PostgreSQL | 5432 | Vector storage with pgvector |
| Redis (optional) | 6379 | Caching and rate limiting |