Can I deploy the entire backend including app.py i...
# ask-ai
m
Can I deploy the entire backend including app.py in livekit deployment?
✅ 1
t
Thanks for reaching out, Sabbir. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — you’re asking whether you can deploy your entire backend (including an
app.py
) inside a LiveKit deployment. Quick answer and guidance: • You can deploy your agent backend (the agent entrypoint like
agent.py
) to LiveKit Cloud or a self-hosted LiveKit Agents environment. LiveKit is built to run agent server projects (entrypoint, dependencies, Dockerfile) that handle real-time media/AI logic. • If your
app.py
is a LiveKit agent implementation (the real-time/agent logic), you can deploy it as the agent container. Use the LiveKit CLI (
lk agent create
) or a self-hosted container/Kubernetes deployment. • If your
app.py
is a general-purpose web backend (HTTP routes, auth, DB access), that should run separately (e.g., on AWS, GCP, Vercel). The LiveKit agent can communicate with that external backend via HTTP/RPC/message queues so responsibilities stay separated. If you want, tell me: • Is your
app.py
an agent (handles room/audio/video/AI logic) or a general web API? • Are you targeting LiveKit Cloud or a self-hosted deployment? I’ll give exact deploy steps based on your answer. Sources: Self-hosted deployments | LiveKit Documentation | Voice AI quickstart | LiveKit Documentation | Build Your First AI Voice Agent in Python: Complete Tutorial | LiveKit | examples/drive-thru | livekit/livekit_composite | DeepWiki | Agents (Python) | livekit/livekit_composite | DeepWiki, with interactive elements