Local Development
Run each service individually for development with hot-reload. No.env files needed — all defaults are hardcoded for local dev.
Prerequisites
- Python 3.10+
- Node.js 20+
- Docker Desktop (for PostgreSQL and MinIO)
1. Start infrastructure
nenyax is created automatically.
2. Backend
3. Frontend
4. Agent
.env file. On startup it fetches all API keys (LiveKit, Google, Resemble, STT providers) from the backend dashboard. Make sure the backend is running first and provider keys are configured at API Keys.
Environment
No.env files are needed for local dev. All defaults are hardcoded in the code:
| Setting | Default | Source |
|---|---|---|
| Database | postgresql://postgres:nenyax@localhost:5434/nenyax | config.py, auth.ts |
| MinIO | localhost:9002, credentials minioadmin/minioadmin | config.py |
| Backend URL | http://localhost:8000/api | api.ts |
| Auth secret | authsecret123 | auth.ts |
.env files are only needed to override a default (e.g., pointing to a different DB host). See Environment Variables for the full reference.
Troubleshooting
Backend can't connect to database
Backend can't connect to database
- Ensure Docker containers are running:
docker compose up -d postgres minio - If you have a
backend/.envfile, make sure it doesn’t overrideDATABASE_URLorPOSTGRES_PASSWORDwith stale values - For a fresh start:
docker compose down -v && docker compose up -d postgres minio
Frontend shows 'Failed to fetch' errors
Frontend shows 'Failed to fetch' errors
- Ensure the backend is running at
http://localhost:8000 - If you have a
frontend/.envfile, make sureNEXT_PUBLIC_API_URLisn’t pointing elsewhere
Agent doesn't connect to calls
Agent doesn't connect to calls
- Ensure the backend is running and all provider keys are configured at API Keys
- Verify LiveKit credentials are set and the URL uses
wss://protocol - Check that at least one STT provider key is configured in the dashboard
- Check the agent terminal for “Injected N keys from backend dashboard” on startup
Custom agent files not loading
Custom agent files not loading
- Ensure MinIO is running:
docker ps | grep minio - If MinIO was down when an agent was created, the file scaffold may have failed silently — reload the agent editor page to auto-scaffold