Install
Commands
aegra init
Create a new Aegra project interactively.
aegra.json, Dockerfile, docker-compose.yml, .env.example, and a starter graph based on the selected template.
Templates:
- simple-chatbot — Basic conversational agent
- react-agent — ReAct agent with tool use
aegra dev
Start the development server with hot reload and automatic PostgreSQL.
- Starts a PostgreSQL container via Docker Compose
- Loads your
.envfile - Applies database migrations automatically
- Runs uvicorn with
--reloadby default
aegra serve
Start the production server without Docker. You must provide a running database.
- Loads your
.envfile - Runs uvicorn in production mode (no reload)
- Applies database migrations automatically
- Connects to the database configured via
DATABASE_URLorPOSTGRES_*variables
Use
aegra serve for:
- PaaS platforms (Railway, Render, Fly.io)
- Inside Docker containers (generated
Dockerfileuses this as CMD) - Bare metal / VM with external PostgreSQL
- Kubernetes pod specs