Skip to main content
You are currently viewing the React version of this page. Use the dropdown to the right to customize this page for your client framework.
This quickstart guide will help you build your first Pipecat voice AI bot with a React front-end and run it locally. You’ll create a simple conversational agent that you connect and talk to in real-time via your browser.
The CLI generates React and vanilla JavaScript projects. For React Native, iOS, Android, or C++, see Building a Voice UI to get started without the CLI.

Prerequisites

  • Python 3.11+ and uv
  • Node.js 18+

Step 1: Scaffold your project

The CLI will guide you through the setup. Choose the following options:
  • Project name: my-voice-app
  • Bot type: Web/Mobile
  • Client framework: React
  • React dev server: Vite
  • Transport: SmallWebRTC
The rest is up to you! The CLI generates a complete project with two main directories:
  • bot/ — a Python Pipecat bot
  • client/ — a React front-end built on the Voice UI Kit

Step 2: Start the bot

The bot starts at http://localhost:7860.

Step 3: Start the client

Open http://localhost:5173, click Connect, allow microphone access, and start talking.
First run note: The initial startup may take ~20 seconds as Pipecat downloads required models and imports. Subsequent runs will be much faster.
🎉 Success! Your bot is running locally. Now let’s deploy it to production so others can use it.

Understanding the Quickstart Client

The React app is built on the Voice UI Kit — Pipecat’s library of pre-built voice UI components. Here’s what each file does:src/config.ts — transport configuration. By default it uses SmallWebRTC for local development. To switch to Daily for production, add your Daily credentials and update AVAILABLE_TRANSPORTS.
src/main.tsx — entry point. PipecatAppBase handles transport creation, connection lifecycle, loading states, and errors, passing a ready client down to your app via a render prop.
src/components/App.tsx — the UI. Built entirely from Voice UI Kit components:

Deploying to production

The env.example file shows the production configuration. Point VITE_BOT_START_URL at your deployed bot’s start endpoint:
The client app is a static site — build it with npm run build and deploy to any static hosting provider (Vercel, Netlify, S3, etc.).

Next steps

Voice UI Kit

Customize themes, swap components, and extend the generated UI

Building a Voice UI

Build a React voice app from scratch — understand the SDK without abstractions

Core Concepts

Understand transports, sessions, events, and media

Deploy your bot

Deploy to Pipecat Cloud for production