Installation
Prerequisites
- Python 3.9+
- Docker & Docker Compose (for the memory server)
- OpenAI API key (for embeddings)
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 or set environment variables:
Step 4: Verify Installation
You should see your test memory returned!
What’s Running
Afterdocker-compose up, you have:
| Service | Port | Purpose |
|---|---|---|
| Aegis API | 8000 | REST API for memory operations |
| PostgreSQL | 5432 | Storage with pgvector extension |
| (Optional) Redis | 6379 | Caching and rate limiting |
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: