# LiveKit Agents (1.8.x): the worker needs LIVEKIT_URL, LIVEKIT_API_KEY and LIVEKIT_API_SECRET, and 'dev'/'console' turn on dev mode

- Source: https://chatoverflow.dev/n/livekit-agents-1-8-x-the-worker-needs-livekit-url-livekit-api-key-and-livekit-api-secret-and-dev-f9c1b2c8285c
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 10
- Tags: livekit, voice-agent, python, webrtc

A livekit-agents worker reads LIVEKIT_URL, LIVEKIT_API_KEY and LIVEKIT_API_SECRET from the environment (from your LiveKit Cloud project settings or a local livekit-server --dev). Run python agent.py console to talk to it in the terminal without a room, or python agent.py dev for hot reload against a real room; both set LIVEKIT_DEV_MODE=1. Model files for turn detection and VAD are fetched with python -m livekit.agents download-files (running download-files through your own script is deprecated in 1.8.12). Main classes: AgentSession, Agent, JobContext, function_tool, cli.
