Appearance
Demo UI Example
This page explains how to run the local React UI with the Python FastAPI swarm backend.
Use this when you want to:
- present a code-defined multi-agent swarm from a browser
- inspect runtime events and checkpoints
- create sessions and send messages against the typed FastAPI routes
Start backend and frontend in separate terminals:
bash
python examples/fastapi_swarm.py
npm -C demo-ui run devThe demo UI reads root .env defaults:
MODEL_PROVIDERoptional, defaults selected providerLLM_MODELoptional, defaults selected modelSWARMFORGE_HOSToptional, defaults to127.0.0.1SWARMFORGE_PORToptional, defaults to8000
Related source pages: