Deploy to LiveKit Cloud
Voiceblox includes a built-in deploy flow that packages your agent and publishes it to LiveKit Cloud in a single click. Once deployed, the agent runs persistently in the cloud — no local process required.Prerequisites
Before deploying, you need three things in place:1. Install the lk CLI
2. Authenticate with LiveKit Cloud
3. Set LIVEKIT_URL
Add your project URL to.env.local:
Deploying your agent
- Open the Voiceblox builder and click Deploy in the toolbar.
- The dialog checks your setup automatically. All three requirements must show a green checkmark.
- Select a region (US East, EU Central, or AP South).
- Click Deploy to LiveKit Cloud.
How it works
When you click Deploy, Voiceblox:- Packages the Python agent source files into a temporary directory
- Serializes your current flow as
VOICEBLOX_CONFIG(a JSON string) - Runs
lk agent create(first deploy) orlk agent deploy(subsequent deploys) - The
lkCLI uploads the agent to LiveKit Cloud and sets the secrets
agent_name="voiceblox". LiveKit Cloud dispatches jobs to it when new rooms are created.
API keys as secrets
Any provider API keys you’ve entered in the builder (OpenAI, ElevenLabs, Deepgram, etc.) are uploaded as LiveKit Cloud secrets during deployment. The running agent reads them from environment variables — they are never stored in plaintext in the agent code.Agent config
Your flow configuration is stored as theVOICEBLOX_CONFIG secret. The agent reads it on startup and builds the LLM, TTS, and STT pipeline from it.
Testing the deployed agent
After deploying, you can test the live cloud agent directly from the builder:- Open the Test Panel (microphone icon in the toolbar).
- Switch to the Production tab.
- Click Start.
Redeploying after changes
After modifying your flow, click Deploy again. Voiceblox automatically detects that the agent already exists and runslk agent deploy to update it in place. If the agent was deleted from LiveKit Cloud, the deploy falls back to lk agent create automatically.
Troubleshooting
| Issue | Fix |
|---|---|
| ”lk CLI not installed” | Run the install command for your platform (see above) |
| “Not authenticated” | Run lk cloud auth |
| ”LIVEKIT_URL not configured” | Add LIVEKIT_URL=wss://... to .env.local |
| Deploy fails with “failed to get agent” | The dialog retries automatically with lk agent create |
| Production test shows no activity | Ensure the deploy completed successfully and the agent is listed in the LiveKit Cloud dashboard |
Related
- LiveKit Worker — run the agent locally as a standalone worker
- Docker Compose — self-host the full stack with Docker
- Environment Variables — full list of supported env vars