broad-painter-9222
12/11/2025, 12:25 PMtall-airline-16756
12/11/2025, 12:25 PMtall-airline-16756
12/11/2025, 12:26 PMtsx); no prior build required.
• Prod (start): requires a build step for Node.js (e.g., tsc) and use of a start script (e.g., node agent.js start); Python uses uv run agent.py start.
5) CLI commands / scripts
• Dev examples:
◦ Python: uv run agent.py dev
◦ Node: pnpm dev (runs tsx agent.ts dev)
• Prod (start) examples:
◦ Python: uv run agent.py start
◦ Node: pnpm build && pnpm start (start runs node agent.js start)
6) Docker / deployment pattern
• Dev: typically used locally; not the standard Docker startup pattern.
• Prod (start): standard Docker CMD/entrypoint points to the start invocation (e.g., pnpm start or uv run src/agent.py start) so the container launches the agent in production mode.
7) Connection / registration behavior
• Dev: connects to LiveKit and registers the agent for accepting jobs; commonly used with lk agent create and for Agents Playground or local testing.
• Prod (start): also connects and registers, but is expected to run in a production environment with dependencies pre-installed and any models pre-downloaded.
8) Console mode (related note)
• Not a dev/prod variant but important: console mode (Python-only) runs the agent interactively in the terminal without connecting to a LiveKit room. It’s an additional dev-focused mode and is not used in production.
9) Core behavior and job processing
• The agent logic and job-processing behavior are identical in dev and prod; differences are operational (logs, hot reload, build/start, and deployment assumptions), not functional.
Summary sentence
• Dev: human-friendly logging, hot reload (Python), run-from-source, for development/testing.
• Prod (start): JSON logs, no hot reload, requires build/start scripts for Node, Docker-ready startup, for production deployments.
If you’d like, I can:
• Show exact example Dockerfile CMD/entrypoint lines for production.
• Provide sample package.json scripts for dev vs prod.
• Give the exact CLI commands to register an agent for the Agents Playground. Sources: Agent server options | LiveKit docs | Voice AI quickstart | LiveKit docs | Deploying to custom environments | LiveKit docs | examples/drive-thru | livekit/livekit_composite | DeepWiki