Manage and deploy
Status: partial.
Use this page to prepare an rtp-agent process for deployment.
The source-backed deployment unit is a Go binary that creates an app.App, configures its worker.AgentServer, and runs the server through interface/cli.RunApp or equivalent process code. Platform-specific recipes are intentionally deferred until they are backed by source, CI, or deployment examples.
Deployment shape
- Build a Go entrypoint such as
cmd/main.goorexamples/voice_agents/basic_agent/main.go. - Configure LiveKit credentials and provider settings through environment variables.
- Run the binary in
startmode for worker operation. - Use drain and shutdown settings from
worker.WorkerOptionsfor graceful termination. - Use telemetry environment variables when logs or evaluation data must be exported.
Required configuration
At minimum, a LiveKit worker needs:
LIVEKIT_URLLIVEKIT_API_KEYLIVEKIT_API_SECRET
Most real deployments also set model providers such as RTP_AGENT_LLM_PROVIDER, RTP_AGENT_STT_PROVIDER, and RTP_AGENT_TTS_PROVIDER, plus provider-specific API keys.
What is deferred
Kubernetes manifests, LiveKit Cloud deployment flows, systemd units, container images, and cloud-platform recipes should be added only when the repository has tested examples or CI-backed instructions.
Evidence:
cmd/main.goapp/app.gointerface/cli/cli.gointerface/worker/server.go