whats the best way to see active sessions in the L...
# ask-ai
n
whats the best way to see active sessions in the LK cli?
t
Thanks for reaching out, Blaine. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — you're asking how to see active sessions in the LiveKit CLI. The easiest ways: • Run
lk agent status
— shows agent health, replica counts, and session counts (quick view of active sessions). • Tail logs with
lk agent logs
— real-time activity so you can observe session connect/disconnect events. If you need more detailed per-session data (IDs, participants, metrics), do you want: • a CLI-friendly JSON/listing (so I can give exact commands to extract fields), or • guidance on using the Cloud dashboard / webhooks for richer historical/session-level info? Sources: Deploying to production | LiveKit Docs | Agents (Python) | livekit/livekit_composite | DeepWiki
n
how about for a specific project
t
You're asking how to view active sessions for a specific project via the LiveKit CLI. The CLI does not offer a direct "list active sessions" command scoped to a project. What you can do instead: • Ensure your project is targeted by placing a
livekit.toml
with the project
subdomain
in the current directory or by running CLI commands from the project directory. • Run
lk agent status
in that project context — it shows agent health and session counts for agents deployed under the project. • Use
lk agent logs
in that project context to stream connect/disconnect events and observe active session activity in real time. • For per-session details (IDs, participants, metrics) use the LiveKit Cloud Dashboard’s Agent insights → Sessions view, which lets you filter by project. Do you want exact CLI commands to parse session-related fields from logs (JSON extraction) or help configuring
livekit.toml
for your project? Sources: Deploying to production | LiveKit Docs | Examples | livekit/livekit_composite | DeepWiki | Agent Builder | LiveKit docs
n
i am seeing an
active
session in the cloud dashboard for a project, but when i click for details it says the session has closed?
t
Thanks — I hear you: the project view shows an active session but the session details page says it’s closed. That discrepancy can happen; the session detail is authoritative and the project-level count can lag during state transitions or analytics aggregation. To investigate quickly, can you share: • The session ID showing the mismatch • When you first saw it marked active (approx. timestamp) • When the details showed it closed (approx. timestamp) • Whether you use automatic room deletion or any custom session cleanup With those I can check lifecycle timing and advise next steps (log checks, whether this looks like a UI cache/aggregation delay, or something needing deeper review). Sources: Agent session | LiveKit docs | Say hello to improved Cloud analytics