lk NAME: lk - CLI client to LiveKit USAGE: ...
# ask-ai
t
lk NAME: lk - CLI client to LiveKit USAGE: lk [global options] [command [command options]] VERSION: 2.5.5 DESCRIPTION: A suite of command line utilities allowing you to access LiveKit APIs services, interact with rooms in realtime, and perform load testing simulations. COMMANDS: app Initialize and manage applications agent, a Manage LiveKit Cloud Agents cloud Interact with LiveKit Cloud services project Add or remove projects and view existing project properties room Create or delete rooms and manage existing room properties token Create access tokens with granular capabilities dispatch Create, list, and delete agent dispatches egress Record or stream media from LiveKit to elsewhere ingress Import outside media sources into a LiveKit room sip Manage SIP Trunks, Dispatch Rules, and Participants perf Performance testing commands GLOBAL OPTIONS: --url URL URL to LiveKit instance (default: "http://localhost:7880") [$LIVEKIT_URL] --api-key KEY Your KEY [$LIVEKIT_API_KEY] --api-secret SECRET Your SECRET [$LIVEKIT_API_SECRET] --dev Use developer credentials for local LiveKit server (default: false) --project NAME NAME of a configured project --subdomain SUBDOMAIN SUBDOMAIN of a configured project --config TOML Config TOML to use in the working directory (default: "livekit.toml") --curl Print curl commands for API actions (default: false) --verbose (default: false) --help, -h show help --version, -v print the version agent 커맨드는 cloud 에서 서비스하고있는데 이거를 self host에서도 볼수 있는방법이있을까?
t
Thanks for reaching out, 유용현. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
You're asking whether the
lk agent
CLI (shown in your
lk
help) can be used with a self‑hosted LiveKit instance. Short answer: No — the
lk agent
commands are for LiveKit Cloud's managed Agent infrastructure and are not usable against a self‑hosted LiveKit server. What you can do in self‑hosted environments: • Run agents yourself using the LiveKit Agents framework (e.g.,
agents-js
or
livekit-agents
in Python). • Connect those agent processes to your self‑hosted LiveKit server (agents join rooms over WebSocket and process jobs). • Deploy, monitor, and scale agents with your own infrastructure (Docker, Kubernetes, health checks, logs, metrics, etc.). • Continue to use the
lk
CLI for other features (rooms, tokens, egress, SIP, etc.) by pointing
--url
to your server. If you want, tell me: • Which Agents SDK (Node/Python) you plan to use, and • How you plan to deploy (local Docker, Kubernetes, etc.), and I’ll outline the next steps for deploying and connecting agents to your self‑hosted LiveKit. Sources: Agent deployment CLI reference | LiveKit docs | Aggregated LiveKit Platform | livekit/livekit_composite | DeepWiki | Deploying to custom environments | LiveKit Docs | SIP Integration & Telephony | livekit/livekit_composite | DeepWiki | LiveKit Pricing
t
현재 워커로 떠있는 agent를 볼수 있는 방법은없는거야?
t
요약: 자체 호스팅 환경에서는
lk agent
CLI로 현재 떠있는 워커를 조회할 수 없습니다. 대신 아래 방법으로 실행 중인 에이전트(워커)를 확인하고 모니터링할 수 있습니다. 가능한 방법: • 도커: `docker ps`로 컨테이너 확인 및 `docker logs <container>`로 로그 조회. • 프로세스:
ps aux | grep agent
또는 서비스로 실행하면
systemctl status <agent-service>
. • 쿠버네티스:
kubectl get pods
, `kubectl logs <pod>`로 파드 상태와 로그 확인. • 헬스 체크 엔드포인트: 에이전트가 노출한 liveness/readiness HTTP 엔드포인트를 주기적으로 폴링. • 로그 수집: Fluentd/ELK/Loki 등으로 에이전트 로그 집계해 동작 여부와 오류 추적. • 메트릭/트레이싱: 에이전트에서 Prometheus 메트릭이나 OpenTelemetry를 내보내면 Grafana/Jaeger 등으로 관찰 가능. • 애플리케이션 레벨: 에이전트 코드에서 활성 작업 수(
active_jobs
등)나 상태를 노출하는 엔드포인트를 추가해 조회. 원하시면 다음 중 어떤 걸 사용할지 알려주세요: • 사용하려는 Agents SDK (Node / Python) • 배포 방식 (로컬 Docker / Docker Compose / Kubernetes / systemd 등) 선택하신 환경에 맞춰 구체적인 명령어와 예시(kubectl/docker 명령, 권장 메트릭 항목, 간단한 헬스 체크 엔드포인트 구현 예)를 제공해 드리겠습니다. Sources: Agent deployment CLI reference | LiveKit docs | Deploying to custom environments | LiveKit Docs | Log collection | LiveKit Docs | Agent server options | LiveKit docs | Observability data hooks | LiveKit docs