I deployed my agent to livekit cloud, now what?
# ask-ai
o
I deployed my agent to livekit cloud, now what?
t
Thanks for reaching out, fernando. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
After you’ve deployed your agent to LiveKit Cloud, here are some friendly next steps to help you along: • Keep an eye on its status and logs to make sure everything is running smoothly. You can use the LiveKit CLI commands
lk agent status
to check on the status and
lk agent logs
to see real-time logs. • Take a moment to review session analytics, build logs, and quality metrics like uptime and resource consumption right from the LiveKit Cloud dashboard. • Double-check that your deployment pipeline is set up correctly, including all the necessary secrets for automated deployments. • When updating, try using a rolling deployment strategy to keep things seamless. And if anything feels off, you can always roll back to a previous version instantly with
lk agent rollback
. • Make it a habit to regularly review your operational tools to optimize user interactions and manage capacity based on traffic levels. If you’d like, I’m here to help you with any of these steps—just let me know! Sources: agent/README.md | cmd/lk/agent.go | LiveKit Pricing | Deploying to production | LiveKit Docs | Deploy and scale agents on LiveKit Cloud
o
I had previously deployed the same agent on my own server. How can I switch to using the agent in Livekit Cloud?
t
To smoothly switch from a self-hosted agent to LiveKit Cloud, here’s a friendly step-by-step guide to help you along the way: 1. Update Connection Configuration: Simply update the
LIVEKIT_URL
environment variable to your LiveKit Cloud project URL (something like
wss://your-project.livekit.cloud
). 2. Obtain Cloud Credentials: Head over to the LiveKit Cloud dashboard under Settings → API Keys and Project to grab your API key, API secret, and project URL. 3. Authenticate Using the CLI: Use the LiveKit CLI to connect with your cloud account by running
lk cloud auth
. This will make sure everything’s linked up correctly. 4. Deploy the Agent: Run
lk agent create
to get your agent deployed to LiveKit Cloud. Just make sure the
livekit.toml
file is in your project directory for any future deployments. 5. Configure Environment Variables: Set up
LIVEKIT_URL
,
LIVEKIT_API_KEY
, and
LIVEKIT_API_SECRET
in your environment or cloud secrets so your setup runs smoothly. 6. Enable CI/CD (Optional): If you want to automate deployments, you can set up a CI/CD pipeline using tools like GitHub Actions. This can save you time and effort! 7. Monitor and Manage: Keep an eye on your agent with the LiveKit CLI or dashboard using commands like
lk agent status
and
lk agent logs
. It’s always good to stay informed. If you’d like a hand with any particular step or have questions, don’t hesitate to ask—I’m here to help! Sources: LiveKit Cloud | LiveKit Docs | agent/README.md
o
The LiveKit Cloud project URL is the same for both agents
t
Thanks for reaching out! Could you please share a bit more about the issue you're facing with the LiveKit Cloud project URL being the same for both agents? For instance, are you running into any conflicts, or would you like some help on how to manage multiple agents within the same project? I'm here to help you through this!
o
what is the difference between using LiveKit Inference or plugins for llm, sst, tts?
t
I'm glad you asked about the difference between LiveKit Inference and plugins for LLM, STT, and TTS! Here's a friendly breakdown to help you understand their unique features and how they might fit your needs: • LiveKit Inference: This is a managed service included with LiveKit Cloud that gives you easy access to models from providers like OpenAI, Google, and AssemblyAI—all through a single API key. It’s designed to simplify setup and billing, making things smoother for you, though it’s limited to the models LiveKit offers. • Plugins: These are open-source extensions that let you connect directly with external providers using your own accounts and API keys. They provide more flexibility and support a wider range of models and advanced features, but do require a bit more hands-on setup and configuration. Think of LiveKit Inference as a great choice for quick deployment and unified access, while plugins shine when you want more customization and advanced options. If you'd like, I’m here to help you figure out which one might be the best fit for your goals—just let me know! Sources: livekit-plugins/livekit-plugins-baseten/livekit/plugins/baseten/__init__.py | Azure AI Services and LiveKit | LiveKit Docs | Models | LiveKit Docs | Rime TTS plugin guide | LiveKit docs | Large language models (LLM) | LiveKit Docs
o
how can i use inference on local agent development?
t
I'm here to help you get started with using LiveKit Inference during your local agent development! Just follow these friendly steps: 1. Set Up Environment Variables: First, create a
.env.local
file and add your LiveKit credentials like this:
Copy code
LIVEKIT_API_KEY=your_livekit_api_key
LIVEKIT_API_SECRET=your_livekit_api_secret
LIVEKIT_URL=https://your-livekit-server-url
1. Choose Your Agent Framework: You can develop using Python or Node.js—whichever feels comfortable! For example: • Python: Run
python myagent.py dev
to enjoy live reloading. • Node.js: Use
pnpm run build && node ./src/agent.ts dev
to start in development mode. 1. Specify Inference Models: Simply include the model IDs directly in your code like so:
Copy code
stt: 'assemblyai/universal-streaming:en',
llm: 'openai/gpt-4.1-mini',
tts: 'cartesia/sonic-2:9626c31c-baa8-f8ba9e84c8bc'
1. Test with the Agents Playground: For a hands-on experience, you can clone and run the Agents Playground to see everything in action in real time. 2. Best Practices: Remember to use full model IDs, initialize logging, and test streaming responses to get the best results. If you hit any bumps or want me to walk you through any step, just let me know—I'm here to help! Sources: Qwen LLM | LiveKit Docs | Introducing LiveKit Inference: A unified model interface for voice AI | README.md | README.md | README.md