Overview
Follow these steps to deploy your first agent to LiveKit Cloud.
Prerequisites
This guide assumes that you already have:
- The latest version of the LiveKit CLI
- A LiveKit Cloud project
- A working agent. Create one using the Voice AI quickstart or one of the following starter templates:
Python starter template
A ready-to-deploy voice AI agent built with Python.
Node.js starter template
A ready-to-deploy voice AI agent built with Node.js.
Deploy your agent
Use the following steps with the LiveKit CLI to deploy your agent.
Navigate to your project directory:
cd your-agent-projectAuthenticate with LiveKit Cloud:
lk cloud authThis opens a browser window to link your LiveKit Cloud project to the CLI. If you've already authenticated and have linked projects, use
lk project listto list all linked projects. Then, set the default project for agent deployment withlk project set-default "<project-name>".Deploy your agent:
lk agent createThis registers your agent with LiveKit Cloud and assigns a unique ID. The ID is written to a new
livekit.tomlfile along with the associated project and other default configuration. If you don't already have aDockerfile, the CLI creates one for you.Next, the CLI uploads your agent code to the LiveKit Cloud build service, builds an image from your Dockerfile, and then deploys it to your LiveKit Cloud project. See the Builds and Dockerfiles guide for details on the build process, logs, and templates.
Your agent is now deployed to LiveKit Cloud and is ready to handle requests. To connect, use the Agent Playground, custom frontend, or telephony integration.
Monitor status and logs
Use the CLI to monitor the status and logs of your agent.
Monitor agent status:
lk agent statusThis shows status, replica count, and other details for your running agent.
Tail agent logs:
lk agent logsThis shows a live tail of the logs for the new instance of your deployed agent.
Next steps
Now that your agent is deployed, learn about:
- Deploying new versions of your agent
- Managing secrets for your deployment
- Monitoring logs and debugging issues
- Configuring builds and Dockerfiles