Real-time voice agent application with React frontend and Python backend, built on LiveKit with RAG capabilities.
- Node.js 18+ and npm
- Python 3.10+
- uv package manager
- LiveKit CLI:
winget install LiveKit.LiveKitCLI - LiveKit Cloud, Pinecone, and Azure OpenAI accounts
cd agent-react
npm installcd backend
uv syncCreate a .env file in the project root:
VITE_LIVEKIT_URL=wss://your-project.livekit.cloud
VITE_LIVEKIT_API_KEY=your-api-key
VITE_LIVEKIT_API_SECRET=your-api-secret
PINECONE_API_KEY=your-pinecone-api-key
AZURE_OPENAI_API_KEY=your-azure-openai-key
AZURE_OPENAI_ENDPOINT=your-azure-endpoint
AZURE_OPENAI_API_VERSION=2024-02-15-previewGet LiveKit credentials from LiveKit Cloud Dashboard → Project Settings → Keys.
cd agent-react
npm run devAccess at http://localhost:3000
cd backend
uv run agent.py dev
lk agent create
lk agent delete
voice-agent/
├── agent-react/ # React frontend
├── backend/ # Python agent
│ ├── agent.py # Agent entrypoint
│ └── rag/ # RAG implementation
└── README.md