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
- API keys for: DeepSeek, MiniMax, Microsoft Azure Speech
# 1. Install dependencies
bun install
# 2. Configure backend
cd server
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/.env.local:
# Agora Credentials (required)
APP_ID=your_agora_app_id
APP_CERTIFICATE=your_agora_app_certificate
# AI Service Providers (required)
LLM_API_KEY=your_llm_api_key
LLM_URL=your_llm_url
LLM_MODEL=your_llm_model
STT_MICROSOFT_KEY=your_microsoft_key
STT_MICROSOFT_REGION=chinaeast2
TTS_MINIMAX_KEY=your_minimax_key
TTS_MINIMAX_MODEL=speech-01-turbo
TTS_MINIMAX_VOICE_ID=male-qn-qingse
TTS_MINIMAX_GROUP_ID=your_minimax_group_id
# Optional
PORT=8000Authentication uses Token007 (AccessToken2), generated automatically from APP_ID and APP_CERTIFICATE. No separate API_KEY/API_SECRET needed.
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/ # Frontend — Next.js 16 + React 19 + TypeScript + Agora Web SDK
├── server/ # 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 | AI provider API keys valid? Check logs at http://localhost:8000/docs |
| Frontend can't reach backend | Proxy config in web/proxy.ts |
- ARCHITECTURE.md — System architecture and data flow
- AGENTS.md — AI agent development guide
- web/ — Frontend details
- server/ — Backend details
See LICENSE.