Real-time voice conversation with AI agents, featuring live transcription and log monitoring.
- Bun (package manager & script runner)
- Python 3.8+
- Agora Account with App ID & App Certificate
- Agora project with Conversational AI managed provider support enabled
# 1. Install dependencies
bun install
# 2. Configure backend
cd server-python
cp .env.example .env.local
# Edit .env.local with your credentials (see Configuration below)
# 3. Start services
cd ..
bun run devServices will be available at:
- Frontend: http://localhost:3000
- Backend: http://localhost:8000
- API Docs: http://localhost:8000/docs
Edit server-python/.env.local:
# Agora Credentials (required)
APP_ID=your_agora_app_id
APP_CERTIFICATE=your_agora_app_certificate
PORT=8000Authentication uses Token007 (AccessToken2), generated automatically from APP_ID and APP_CERTIFICATE. Vendor credentials are no longer required in local setup; the backend defaults to the same DeepgramSTT + OpenAI + MiniMaxTTS managed configuration used by the current Next.js quickstart.
Frontend gets all configuration from the backend API — no environment variables required on the frontend side.
bun run dev # Start both frontend and backend
bun run backend # Backend only (port 8000)
bun run frontend # Frontend only (port 3000)
bun run build # Build frontend for production
bun run clean # Clean build artifacts and venvs.
├── web-client/ # Frontend — Next.js 16 + React 19 + TypeScript + Agora Web SDK
├── server-python/ # Backend — Python FastAPI + Agora Agent SDK
├── ARCHITECTURE.md # System architecture and data flow
└── AGENTS.md # AI agent development guide
| Problem | Check |
|---|---|
| Connection issues | Backend running on port 8000? |
| Auth errors | APP_ID and APP_CERTIFICATE correct in .env.local? |
| Agent fails to start | Confirm Agora managed provider access is enabled for this project, then check logs at http://localhost:8000/docs |
| Frontend can't reach backend | Proxy config in web-client/proxy.ts |
- ARCHITECTURE.md — System architecture and data flow
- AGENTS.md — AI agent development guide
- web-client/ — Frontend details
- server-python/ — Backend details
See LICENSE.