Files
pipecat/examples/quickstart
Paul Kompfner 272532a3ea Update examples, wherever possible, to use LLMContext and associated machinery instead of OpenAILLMContext and associated machinery.
With all these examples updated, we no longer need dedicated examples illustrating `LLMContext`, so they're removed.

Here’s where we *don’t* yet use `LLMContext` and associated machinery:
- Realtime services: OpenAI Realtime, Gemini Live, and AWS Nova Sonic (support coming soon)
- `GoogleLLMOpenAIBetaService` (it’s deprecated, so we didn’t bother adding support)
- `LLMLogObserver` (support coming soon)
- `GatedOpenAILLMContextAggregator` (support coming soon)
- `LangchainProcessor` (support coming soon)
- `Mem0MemoryService` (support coming soon)
- Examples that use LLM-specific tools definitions as opposed to `ToolsSchema` (these will be updated soon)
- Examples that rely `GoogleLLMContext.upgrade_to_google` (TBD what to do with these)

Examples that use `LLMLogObserver`:
- 30-

Examples that use `GatedOpenAILLMContextAggregator`:
- 22-

Examples that use `LangchainProcessor`:
- 07b-

Examples that use `Mem0MemoryService`:
- 37-

Examples that need updating to use `ToolsSchema`:
- 15-
- 15a-
- 20a-
- 20c-
- 20d-
- 22b-
- 22c-
- 33-
- 36-

Examples that use `GoogleLLMContext.upgrade_to_google`:
- 22d-
- 25-
2025-09-22 16:21:35 -04:00
..
2025-08-23 00:19:26 -04:00

Pipecat Quickstart

Build and deploy your first voice AI bot in under 10 minutes. Develop locally, then scale to production on Pipecat Cloud.

Two steps: 🏠 Local Development☁️ Production Deployment

🎯 Quick start: Local bot in 5 minutes, production deployment in 5 more

Step 1: Local Development (5 min)

Prerequisites

Environment

  • Python 3.10 or later
  • uv package manager installed

AI Service API keys

You'll need API keys from three services:

💡 Tip: Sign up for all three now. You'll need them for both local and cloud deployment.

Setup

Navigate to the quickstart directory and set up your environment.

  1. Install dependencies:

    uv sync
    
  2. Configure your API keys:

    Create a .env file:

    cp env.example .env
    

    Then, add your API keys:

    DEEPGRAM_API_KEY=your_deepgram_api_key
    OPENAI_API_KEY=your_openai_api_key
    CARTESIA_API_KEY=your_cartesia_api_key
    

Run your bot locally

uv run bot.py

Open http://localhost:7860 in your browser and click Connect to start talking to your bot.

💡 First run note: The initial startup may take ~20 seconds as Pipecat downloads required models and imports.

🎉 Success! Your bot is running locally. Now let's deploy it to production so others can use it.


Step 2: Deploy to Production (5 min)

Transform your local bot into a production-ready service. Pipecat Cloud handles scaling, monitoring, and global deployment.

Prerequisites

  1. Sign up for Pipecat Cloud.

  2. Install the Pipecat Cloud CLI:

    uv add pipecatcloud
    

💡 Tip: You can run the pipecatcloud CLI using the pcc alias.

  1. Set up Docker for building your bot image:

    • Install Docker on your system

    • Create a Docker Hub account

    • Login to Docker Hub:

      docker login
      

Configure your deployment

The pcc-deploy.toml file tells Pipecat Cloud how to run your bot. Update the image field with your Docker Hub username by editing pcc-deploy.toml.

agent_name = "quickstart"
image = "YOUR_DOCKERHUB_USERNAME/quickstart:0.1"  # 👈 Update this line
secret_set = "quickstart-secrets"

[scaling]
	min_agents = 1

Understanding the TOML file settings:

  • agent_name: Your bot's name in Pipecat Cloud
  • image: The Docker image to deploy (format: username/image:version)
  • secret_set: Where your API keys are stored securely
  • min_agents: Number of bot instances to keep ready (1 = instant start)

💡 Tip: Set up image_credentials in your TOML file for authenticated image pulls

Configure secrets

Upload your API keys to Pipecat Cloud's secure storage:

uv run pcc secrets set quickstart-secrets --file .env

This creates a secret set called quickstart-secrets (matching your TOML file) and uploads all your API keys from .env.

Build and deploy

Build your Docker image and push to Docker Hub:

uv run pcc docker build-push

Deploy to Pipecat Cloud:

uv run pcc deploy

Connect to your agent

  1. Open your Pipecat Cloud dashboard
  2. Select your quickstart agent → Sandbox
  3. Allow microphone access and click Connect

What's Next?

🔧 Customize your bot: Modify bot.py to change personality, add functions, or integrate with your data
📚 Learn more: Check out Pipecat's docs for advanced features
💬 Get help: Join Pipecat's Discord to connect with the community

Troubleshooting

  • Browser permissions: Allow microphone access when prompted
  • Connection issues: Try a different browser or check VPN/firewall settings
  • Audio issues: Verify microphone and speakers are working and not muted