How to deploy the Agent on the LiveKit cloud?
# ask-ai
b
How to deploy the Agent on the LiveKit cloud?
t
Thanks for reaching out, Dhruvil. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Let's walk through how you can deploy an Agent on LiveKit Cloud together. Here’s a simple step-by-step guide to help you get started: 1. Prerequisites: First, make sure you have the latest version of the LiveKit CLI, a LiveKit Cloud project set up, and a working agent ready to go. If you’re just starting out, you can easily create an agent using the Voice AI quickstart or check out our handy starter templates for Python or Node.js. 2. Authenticate with LiveKit Cloud: Next, use the CLI to authenticate and connect your LiveKit Cloud project. If you have multiple projects, no worries—you can run
lk project list
to see them all, and then set your preferred project as the default with
lk project set-default "<project-name>"
. 3. Deploy your agent: Now, from your agent project’s root directory, simply run
lk agent create
. This command will: ◦ Automatically generate important files like
Dockerfile
,
.dockerignore
, and
livekit.toml
if they’re not already there. ◦ Register your agent with your LiveKit Cloud project. ◦ Upload your agent code to LiveKit Cloud’s build service, build a container image, and deploy it seamlessly. 1. Monitor status and logs: After deployment, you can keep an eye on your agent’s status and logs using the CLI commands
lk agent status
and
lk agent logs
. This way, you’ll always know how things are running. Once your agent is deployed, it’s all set to handle sessions! You can access it through the Agent Playground, a custom frontend, or even integrate it with telephony. If you’re looking for other deployment options like AWS ECS, Fly.io, Kubernetes, or Render, feel free to explore our LiveKit Agents deployment examples repository. It’s packed with helpful examples to guide you. Sources: Deploying to production | LiveKit Docs | Voice AI quickstart | LiveKit Docs | cmd/lk/agent.go | aws-ecs/README.md