Prerequisites
- Python 3.12+
- Docker or Podman (for PostgreSQL). With
AEGRA_CONTAINER_RUNTIMEunset, Aegra uses a running Docker daemon, then Podman if it is installed, then Docker if it is installed but stopped. Set the variable todockerorpodmanto choose directly.
Create a project
1
Install the CLI
2
Initialize a new project
3
Configure your environment
.env and add your OPENAI_API_KEY.4
Install dependencies and start the server
The generated project uses uv for dependency management. The This starts a PostgreSQL container, applies database migrations, and launches the server with hot reload.
pyproject.toml created by aegra init defines your project’s dependencies, and uv handles the rest.Always install
aegra-cli directly — not the aegra meta-package. The aegra package on PyPI is a convenience wrapper that does not support version pinning.Talk to your agent
Your LangGraph code works without changes:Connect a frontend
Aegra implements the Agent Protocol, so it works with any compatible frontend:Agent Chat UI
Open-source chat interface for agent interactions.
LangGraph Studio
Visual graph debugger and testing tool.
CopilotKit
In-app AI copilot framework via AG-UI protocol.
What’s next
Build your first agent
Hands-on tutorial: build, deploy, and interact with an agent step by step.
Streaming
Understand stream modes, SSE events, and reconnection.
Authentication
Add JWT, OAuth, or Firebase auth to your server.
Deployment
Deploy to Docker, PaaS, or Kubernetes.