Docker Compose
The quickest path to a full stack:- AgentFlow API — Gunicorn + Uvicorn ASGI server
- PostgreSQL 15 — with PGVector extension
- Redis — for caching and rate limiting
- Nginx — reverse proxy
- Datadog Agent — APM and LLM observability (optional)
Environment
Set production environment variables:Database Migrations
Run Alembic migrations before starting the server:0001_baseline_schema through 0017_add_memory_blocks.
Health Check
200 OK with system status including database connectivity and LLM provider availability.
Observability
AgentFlow integrates with Datadog for:- APM — distributed tracing across agent, tool, and sub-agent executions
- LLM Observability — token usage, latency, and cost tracking per model
- Structured logging — JSON logs with execution context