This path runs AgentFlow locally, seeds demo data, starts the API, and verifies the main read/query surface. The recommended first run needs No Docker services or provider API keys after package installation.
- Python
3.11+ - Optional:
makefor command aliases - Optional: Docker Compose for the ClickHouse-backed demo
- Optional docs tooling:
mkdocs-materialfor this site
Install the docs tooling if it is not already available:
python -m pip install "mkdocs-material>=9.5,<10"=== "PowerShell"
```powershell
git clone https://github.com/brownjuly2003-code/agentflow.git
cd agentflow
. .\scripts\setup.ps1
```
=== "macOS / Linux"
```bash
git clone https://github.com/brownjuly2003-code/agentflow.git
cd agentflow
source ./scripts/setup.sh
```
The cross-platform runner provisions a file-backed DuckDB database, processes
500 synthetic events without the optional Iceberg sink, and starts FastAPI on
http://localhost:8000:
python scripts/demo_local.pymake demo-local is an alias. The command runs the API in the foreground;
leave it open while trying the requests below.
To prepare the database without starting a server, for example in CI:
python scripts/demo_local.py --prepare-onlyFor the Docker-backed profile with Redis and the ClickHouse serving store, use
make demo instead.
curl http://localhost:8000/v1/healthExpected shape:
{
"status": "healthy",
"components": [
{
"name": "duckdb_pool",
"status": "healthy"
}
]
}The exact component list can vary by configuration. The important signal is an
HTTP 200 response with an overall healthy status.
curl http://localhost:8000/v1/entity/order/ORD-20260404-1001
curl "http://localhost:8000/v1/metrics/revenue?window=24h"The local demo disables API-key enforcement through its demo environment. In a
configured environment, send X-API-Key: <key> on protected routes.
curl -X POST http://localhost:8000/v1/query \
-H "Content-Type: application/json" \
-d '{"question":"top products by revenue today","limit":5}'The response includes result rows, translated SQL metadata, and pagination fields when the query supports cursor pagination.
mkdocs serveOpen http://127.0.0.1:8000 if that port is free. If the AgentFlow API is
already using port 8000, run:
mkdocs serve -a 127.0.0.1:8010Build the static site:
mkdocs build --strict