Prerequisites
- Docker Compose (recommended)
- Manual
Install Docker Desktop or Docker Engine with the Compose plugin. No other runtime dependencies are required — Docker pulls PostgreSQL, Redis, and Python images automatically.See Deploy OTAS with Docker Compose for the full walkthrough.
Manual setup
Start UASAM
UASAM handles all user authentication, project management, and agent key issuance.Create an env file at UASAM is now listening on http://localhost:8000.
backend/uasam/env/env-local.env (or export the variables directly) with your PostgreSQL and Redis credentials, then run migrations and start the server:Start Brain
Brain captures events from your SDK and agents and serves all analytics data.Create Brain is now listening on http://localhost:8002. If you need async Celery processing, start the worker and beat in separate terminals:
backend/brain/env/env-local.env with credentials for Brain’s own PostgreSQL database (port 5433) and Redis (port 6378), then migrate and start:Start the frontend
The React dashboard connects to UASAM and Brain using the URLs defined in The Vite dev server starts on http://localhost:5173.
src/constants.ts.Port reference
| Service | Default port |
|---|---|
| UASAM (Django) | 8000 |
| Brain (Django) | 8002 |
| Frontend (Vite) | 5173 |
| UASAM PostgreSQL | 5432 |
| Brain PostgreSQL | 5433 |
| UASAM Redis | 6379 |
| Brain Redis | 6378 |
If any of your services run on a non-default host or port, update
UASAM_ENDPOINT and BRAIN_ENDPOINT in frontend/otas-frontend/src/constants.ts and restart the Vite dev server. See Configure OTAS frontend endpoints for details.