Prerequisites
| Tool | Version | Purpose |
|---|---|---|
| Python | 3.12+ | Backend + agent worker |
| Node.js | 18+ | Dashboard UI + VUI widget |
| PostgreSQL | 16 | Primary database |
| Redis | 7+ | Cache + Celery broker |
| Docker | 24+ | Containerized services |
| Git | Latest | Source control |
Architecture Reminder
Step-by-Step Setup
Start PostgreSQL & Redis
The easiest way is Docker:This starts PostgreSQL 16 on port 5432 and Redis 7 on port 6379.
Verify Your Setup
After starting all services, verify everything is working:| Check | How |
|---|---|
| Backend API | curl http://localhost:8000/docs — should show Swagger UI |
| Database | curl http://localhost:8000/agents — should return [] |
| Dashboard | Open http://localhost:3000 — should show login page |
| Redis | redis-cli ping — should return PONG |
Running Celery Workers
For batch calling functionality, start the Celery worker and scheduler:- Worker
- Beat (Scheduler)
Common Setup Issues
| Issue | Cause | Fix |
|---|---|---|
alembic upgrade fails | Database doesn’t exist | Create DB first: createdb agent_studio_db |
| Redis connection refused | Redis not running | Start with docker-compose up redis -d |
| JWT errors on UI | Secret mismatch | Ensure JWT_API_SECRET is identical in backend and UI |
| Agent worker won’t start | Missing LiveKit credentials | Verify LIVEKIT_URL, LIVEKIT_API_KEY, LIVEKIT_API_SECRET |
| S3 URL errors | Stray quotes in env var | Remove surrounding quotes from S3_REGION value |