creamy-tiger-14805
12/16/2025, 8:11 AMtall-airline-16756
12/16/2025, 8:11 AMtall-airline-16756
12/16/2025, 8:11 AMlk agent delete --id CA_MyAgentId
Or, if you’re in the agent project directory with a `livekit.toml`:
lk agent delete
lk agent destroy is an alias for delete. This removes the agent and terminates its deployments.
How to update a deployed agent
• Deploy a new version (recommended):
lk agent deploy
This uploads your updated code; LiveKit builds a new container and rolls it out with a rolling deployment so new sessions go to the new version while existing sessions finish on the old version (graceful shutdown period).
• Update secrets or env vars without deploying code:
lk agent update --secrets OPENAI_API_KEY=sk-xxx
This restarts agent servers and does not interrupt active sessions.
• Rollback to a previous version (paid plans):
lk agent rollback --id CA_MyAgentId --version 20250809003117
If you want, tell me your agent ID or whether you’re working from the project directory and I can give the exact command you should run next.
Sources: Agent deployment CLI reference | LiveKit docs | Deploying to production | LiveKit Docs | Deploy and scale agents on LiveKit Cloudcreamy-tiger-14805
12/16/2025, 8:11 AMtall-airline-16756
12/16/2025, 8:12 AMlk commands) as described earlier.creamy-tiger-14805
12/16/2025, 8:15 AMtall-airline-16756
12/16/2025, 8:15 AMcreamy-tiger-14805
12/16/2025, 10:29 AMtall-airline-16756
12/16/2025, 10:29 AMlk agent logs via the CLI.
• Check the project’s Telephony call logs if this is a SIP/telephony call.
Send me:
• Which mode (preview or deployed),
• Any error text/screenshots or browser console/network log lines,
• Your browser and OS.
I’ll use that to pinpoint next steps. Would you like instructions for collecting the browser console logs or for running lk agent logs?
Sources: Agent Builder | LiveKit docs | https://blog.livekit.io/streamline-troubleshooting-with-agent-observability/#/portal| | Log collection | LiveKit Docs | Create and configure a Plivo SIP trunk | LiveKit docs | Diagnosing Connection Errors with Connection Test Utilitycreamy-tiger-14805
12/16/2025, 10:30 AMtall-airline-16756
12/16/2025, 10:31 AMnavigator.mediaDevices.getUserMedia({ audio: true }).then(s => console.log('ok', s)).catch(e => console.error(e))
This shows if the browser can access your mic.
1. Test connectivity
• Temporarily switch networks (home vs. phone hotspot) to rule out firewall/TURN issues.
• If you can, run the LiveKit Connection Test utility to validate WebRTC/TURN paths.
1. Agent Builder specific checks
• Confirm the agent has a model and valid instructions selected.
• Remove or simplify custom plugins/hooks to isolate the issue.
• Try the same preview in a different browser (Safari or Chrome) to see if Edge-specific behavior is the cause.
1. If preview still won’t start, gather these diagnostics and share them:
• A copy of Console errors (or a screenshot).
• Any failed Network/WebSocket requests from DevTools.
• Result of the getUserMedia check above.
• Edge version and macOS version.
I can walk you through collecting any of these logs or tell you which console lines to paste here for fast diagnosis—which would you prefer?
Sources: Agent Builder | LiveKit docscreamy-tiger-14805
12/16/2025, 10:31 AMtall-airline-16756
12/16/2025, 10:31 AMcreamy-tiger-14805
12/16/2025, 10:34 AMtall-airline-16756
12/16/2025, 10:34 AMnavigator.mediaDevices.getUserMedia({ audio: true }).then(s => console.log('mic ok')).catch(e => console.error(e))
If mic works but runtime never connects, the issue is agent-side (runtime boot/auth), not media.
1. Try a different browser
• Test preview in Chrome or Safari to rule out Edge-specific behavior.
1. Minimal isolate test
• Create a brand-new minimal agent (single-turn text reply) using the same example template and run preview. Does that minimal agent join the room?
1. If still failing, collect these and share them here:
• Console error lines or screenshots mentioning agent/runtime/auth.
• Network entry (request URL + status) for the failed agent/runtime request or WebSocket.
• Whether the agent requires external API keys and whether those secrets are set.
• Edge version and macOS version.
If you want, I can give exact steps to capture the Network/WebSocket entry to paste here. Which diagnostics would you like help collecting?creamy-tiger-14805
12/16/2025, 10:41 AMtall-airline-16756
12/16/2025, 10:41 AMOPENAI_API_KEY).
• Reference those secrets from your code (use the environment variable name your runtime expects).
1. Keep the agent logic minimal while testing
• Use a simple request/response call to your provider to verify the integration before adding complex flows.
1. Preview and deploy
• Run Preview again. If preview won’t start the agent runtime, follow the diagnostics we discussed (Console, Network, getUserMedia check).
• When ready, deploy the agent to production so full observability and lk agent logs are available.
If you tell me which provider you want to use (OpenAI, Anthropic, etc.) and whether you need a code snippet for calling it from the Builder runtime, I’ll provide the exact example and the name of the secret to set.creamy-tiger-14805
12/16/2025, 10:41 AMtall-airline-16756
12/16/2025, 10:41 AMlk agent deploy). Let me know if you want the exact clone/deploy commands.
Tell me:
• Do you see an Edit/Clone button, or is it greyed out?
• Are you using a template/example or your own agent?
I’ll give the exact next step based on your answers.creamy-tiger-14805
12/16/2025, 10:45 AMtall-airline-16756
12/16/2025, 10:45 AM