bright-eye-88478
09/08/2025, 5:20 PMtall-airline-16756
09/08/2025, 5:20 PMtall-airline-16756
09/08/2025, 5:21 PMDEBUG level so you can see all the details. Production mode switches to raw JSON logs with a higher default level like INFO to keep things efficient.
• Health Check: Production mode turns on a health check server on port 8081 to keep an eye on things, while development mode keeps this off unless you decide to enable it.
• Resource Management: Production mode is smart about resources — it enforces load limits (like 70% CPU) and pre-warms idle processes to speed up job handling. Development mode takes it easy, disabling these thresholds and using minimal resources.
• Shutdown Behavior: When shutting down, production mode lets running jobs finish up within a timeout, so nothing gets cut off abruptly. Development mode, on the other hand, exits quickly to keep your workflow snappy.
• Hot Reloading: Development mode supports hot reloading with the --watch flag, making it super convenient while you’re coding. Production mode disables this for stability.
To get started, just run python agent.py dev or node agent.js dev for development, and python agent.py start or node agent.js start for production. Oh, and a quick tip: make sure you use separate LiveKit projects or instances for development and production so they don’t step on each other’s toes.
Sources: livekit-agents/livekit/agents/cli/_run.py | Voice AI quickstart | LiveKit Docs | Worker options | LiveKit Docs | README.md | Deploying to custom environments | LiveKit Docs