narrow-pencil-46368
10/27/2025, 8:08 PMfamous-state-80855
10/27/2025, 10:56 PMuv run agent.py console
This runs the agent directly in your "console" which is great. When I'm troubleshooting or testing, I always start with console if possible. Then you upgrade to "dev". You can also give your agent a name and tell it to join a room explicit using dispatch. That way you can test a new agent into only your test room.
Explicit dispatch is available for greater control over when and how agents join rooms. This approach leverages the same worker systems, allowing you to run agent workers in the same way.
When you start your app with uv run agent.py dev, it registers as a worker with the LiveKit server. The server manages dispatching programmatic participants to rooms by sending requests to available workers.
A programmatic participant is any code that joins a LiveKit room as a participant—this includes AI agents, media processors, or custom logic that processes realtime streams. This topic describes the worker lifecycle for AI agents, but the same lifecycle applies to all programmatic participants.
Dev mode gives you some additional logging with debug and also terminates the session quickly rather than waiting for it to drain, quicker to run, test, join, repeat.
https://docs.livekit.io/reference/python/livekit/agents/cli/cli.html
https://docs.livekit.io/reference/python/livekit/agents/cli/proto.html#livekit.agents.cli.proto.CliArgs.devmode
https://docs.livekit.io/agents/worker/
https://docs.livekit.io/agents/worker/agent-dispatch/famous-state-80855
10/27/2025, 10:58 PMlk agent logs tail is another handy one I almost always have running when testingmagnificent-salesclerk-38445
10/28/2025, 8:50 AMLIVEKIT_URL accordingly