Documentation Index
Fetch the complete documentation index at: https://docs.aegra.dev/llms.txt
Use this file to discover all available pages before exploring further.
Using the CLI
The CLI is the recommended way to create and manage Aegra projects.aegra.json, Dockerfile, docker-compose.yml, and .env.example.
From source
Clone the repository and run directly:Requirements
Python
Aegra requires Python 3.12+ for both the API server and the CLI.PostgreSQL
Aegra uses PostgreSQL with the pgvector extension for persistence and vector search. The recommended image ispgvector/pgvector:pg18.
When you use aegra dev or aegra up, PostgreSQL is started automatically via Docker. For aegra serve, you provide your own database via DATABASE_URL or POSTGRES_* environment variables.
Docker
Docker is required for local development (aegra dev starts a PostgreSQL container). For production, you can either run everything in Docker (aegra up) or provide an external database and run with aegra serve.
Windows
aegra dev and aegra up work on Windows. However, aegra serve (production mode without Docker) is not supported on Windows because psycopg requires SelectorEventLoop while Windows defaults to ProactorEventLoop. For production deployments, use Docker or a Linux server.
Project structure
Afteraegra init, your project looks like this: