what is esact definition of concurrent sessions
# ask-ai
e
what is esact definition of concurrent sessions
t
Thanks for reaching out, Guess. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
You're asking for the exact definition of "concurrent sessions." A concurrent session is the maximum number of simultaneous active agent sessions connected to LiveKit Cloud at any given time. Each concurrent session represents one agent actively connected and participating in a real‑time interaction within a room. When your project reaches its concurrent session limit, no new agent sessions can start until existing sessions end. For plan limits (examples): Build = 5 concurrent agent sessions, Ship = 20, Scale = 1,000. For full quota details, see the Quotas and limits documentation: https://docs.livekit.io/home/cloud/quotas-and-limits Sources: Quotas and limits | LiveKit docs
e
what about the sessions in anam and bp are theyre any limit
t
Regarding sessions for Anam and BP (Beyond Presence): there are no separate session limits for those plugins themselves. Their usage is governed by your LiveKit Cloud project quotas — e.g., Build = 5 concurrent agent sessions, Ship = 20, Scale = 1,000. Do you mean sessions per LiveKit project, or are you asking about API/key limits from Anam or Beyond Presence directly? Sources: Anam virtual avatar integration guide | LiveKit Docs | Beyond Presence virtual avatar integration guide | LiveKit Docs | Quotas and limits | LiveKit docs
e
why i am getting 6 participants genrerally its 4
t
You're seeing 6 participants instead of 4 because additional non‑human participants are likely joining the room. Check these items so we can pinpoint the cause: 1. What are the participant kinds in that room? (Look for
STANDARD
,
AGENT
,
SIP
,
EGRESS
,
INGRESS
.) 2. Are any agents, avatar plugins (Anam/Beyond Presence), or recording/egress processes configured to auto-join? 3. Which LiveKit plan is the project on? If you can share the room ID and a short list of participant identities/types you see, I’ll help identify which two are extra and why they’re joining. Sources: Quotas and limits | LiveKit docs | Rooms, participants, and tracks | LiveKit docs
e
is there any timelimit of using sessions max in an hour - ship plan
t
Regarding Ship plan time limits: there is no hourly cap or maximum session count per hour. Limits are based on concurrency and monthly quotas: • Concurrent agent sessions: up to 1,000 • Concurrent connections (participants): 1,000 • Agent session minutes: 5,000 included monthly, then $0.01/minute • WebRTC participant minutes: 150,000 included monthly, then $0.0005/minute • Egress recordings (file/HLS/RTMP) have a 12‑hour limit, but live sessions themselves have no maximum duration. Would you like me to check your project's current usage or remaining monthly minutes? Sources: LiveKit Pricing | Quotas and limits | LiveKit docs
e
any restriction on api keys because sometimes bot is not joining sometimes working'
t
You're seeing intermittent bot join failures—let's troubleshoot the most likely causes and narrow it down. What I’m responding to: why the bot sometimes can't join even though the API key appears to work. Possible causes to check: • Server API rate limits: 1,000 requests/minute. Bursts of token generation or connection attempts can be throttled. • Concurrency limits: if your project has reached concurrent connections or agent session limits, new joins will be rejected. • Agent/inference limits: LLM tokens-per-minute, STT/TTS or inference concurrency limits can block agent startup. • Cold starts / capacity: under Build plan you can see 10–20s cold starts; heavy load can delay or fail agent joins. • Token scopes/expiry: tokens must include correct grants (e.g., room join/agent) and be valid when used. • Auto-joined non-human participants: extra participants (egress/ingress/agents) may push you over concurrency unexpectedly. Please provide: 1. The error message or status you see when the bot fails to join (server/client logs). 2. Whether failures happen during traffic spikes or randomly. 3. Your plan (Build/Ship/Scale) and approximate concurrent usage when failures occur. 4. A recent timestamp and room ID for one failure (I can help inspect participant types). Tell me which of those you can share and I’ll help pinpoint the root cause. Sources: Quotas and limits | LiveKit docs | LiveKit Pricing
e
i am on ship lan tell me limits on restriction
t
You're on the Ship plan — here are the key limits and restrictions that can affect sessions, bots, and API usage: • Concurrent limits ◦ Concurrent agent sessions: up to 1,000 ◦ Concurrent connections (participants): 1,000 • Monthly included minutes / metering ◦ Agent session minutes: 5,000 included monthly, then $0.01 / minute ◦ WebRTC participant minutes: 150,000 included monthly, then $0.0005 / minute • Rate limits ◦ Server API: 1,000 requests per minute (throttling can cause failed token generation or join attempts) • Agent / inference limits ◦ Inference and LLM-related limits (TPM, inference concurrency) apply and can impact agent startup or response; these are metered separately. • Session duration / recordings ◦ No maximum duration for live sessions. ◦ Egress/recording outputs (file, HLS, RTMP) have a 12‑hour limit per recording. • Practical causes of intermittent bot join failures ◦ Hitting the Server API rate limit during bursts (token creation or connection attempts). ◦ Reaching concurrent connection or agent session limits. ◦ Agent/inference concurrency or LLM TPM limits being exceeded. ◦ Tokens generated without the required grants or that expire before use. ◦ Cold starts or capacity delay under heavy load (less likely on Ship but possible under peak conditions). If you'd like, I can: • Check your current concurrent usage and recent rate-limit events if you share a timestamp and room ID, or • Help you inspect the error logs/messages the bot returns when a join fails. Which would you prefer?
e
i am facing bot not joining in some deployments its working
t
Thanks — I hear that the bot joins sometimes and fails in other deployments. Let’s narrow this down. Quick checklist to gather diagnostic facts: 1. Exact error you see when the bot fails (client or server log message). 2. Room ID and a failure timestamp for one incident. 3. Which deployments work vs fail (same region, different cluster, staging vs prod?). 4. How your bot obtains tokens: server-side signed tokens per join, or reusing tokens? Include token TTL if known. 5. Traffic context when failures happen (spike/burst or normal load). 6. Current concurrent usage when failures occur (approx participants/agents). 7. Any evidence of rate-limit responses (429) in logs. Likely causes to check now: • Server API rate limit (1,000 req/min) causing throttled token or join attempts. • Hitting concurrent connections/agent session limits (Ship plan: 1,000 each). • Token scope/expiry or incorrect grants preventing join. • Agent/inference concurrency or LLM TPM limits delaying or blocking agent startup. • Deployment differences (network/firewall, region, or service config) causing intermittent failures. • Cold-start/delay under load (less likely on Ship, but possible). Next step: please share items 1–3 (error message, room ID + timestamp, which deployment fails). I’ll inspect participant/types and point to the exact cause.
e
Test_1 / Egresses / EG_CjpE28qRRS2w • egress Start signal not received
t
Thanks — I see the egress job EG_CjpE28qRRS2w shows "egress Start signal not received." To troubleshoot, please check/provide the following: 1. Was this on LiveKit Cloud or self-hosted? 2. The exact StartEgress request payload or API/CLI command you used. 3. Room name/ID and participant count when the egress was started. 4. Timestamp of the failure (UTC). 5. The token used to start egress: does it include the
roomRecord
grant and was it still valid at start time? 6. Any egress service logs (if self-hosted) or recent 4xx/5xx errors in your server logs. 7. Whether your egress config uses a
ws_url
and if that URL is reachable from the egress host. Immediate checks you can run: • Regenerate a token with
roomRecord
and retry StartRoomCompositeEgress. • Confirm the room is active and has at least one participant (some egress types require it). • If self-hosted, verify the Egress container/service is running and can reach the LiveKit ws_url and Redis. • Look for rate-limit or auth errors in logs (429/401). Share the requested items (1–4 are most useful) and any error lines from logs; I’ll help pinpoint the root cause. Sources: Egress API | LiveKit docs | Self-hosting the Egress Service | LiveKit docs | Quotas and limits | LiveKit docs
e
can the issue be handled from AI /BE
t
You're asking whether the egress "Start signal not received" issue can be handled from the AI or backend (BE). Short answer: this is a backend/configuration issue — not something the AI agent itself can fix. The backend should take the following concrete steps to resolve it: 1. Verify token/grants ◦ Ensure the token used to start egress includes the
roomRecord
grant and was valid at start time. Regenerate with
roomRecord
and retry. 1. Confirm room state and participants ◦ Ensure the target room is active and has at least one participant if your egress type requires it (RoomComposite/TrackComposite). 1. Check egress service connectivity (Cloud vs self-hosted) ◦ Cloud: confirm project egress quota not exceeded. ◦ Self-hosted: ensure the Egress service/container is running, can reach the LiveKit
ws_url
, and Redis is accessible. 1. Inspect logs and API responses ◦ Look for 401/403 (auth) or 429 (rate limit) and connection errors in egress and server logs. These reveal if auth, rate limits, or networking are blocking the start signal. 1. Confirm request payload / API used ◦ Validate you’re calling the correct StartEgress API with supported params (e.g., StartRoomCompositeEgress) and correct room name. 1. Retry with minimal conditions ◦ Start a simple room with one participant and a freshly generated
roomRecord
token to see if egress starts reliably. If you want, I can guide you through each step: • I can check the egress job status if you share the timestamp and whether this is Cloud or self-hosted. • I can review your StartEgress payload or typical token generation snippet to confirm the
roomRecord
grant. Which would you like me to help with first?
e
You still have cases where the final goodbye’s playback-finished signal is missed (you saw ⏳ TTS playback wait timed out after 20.0s). That’s not a crash, but it means we rely on the log-based playback-finished signal which can be flaky. The system still ends safely due to the timeout, but it can make endings slower. If you want that fully bulletproof, the next step would be to also set tts_playback_finished_event from another reliable signal you already log (e.g. the “avatar audio track unpublished - agent finished” event), so we don’t have to wait for the log hook string. Tell me if you want that additional improvement and I’ll implement it.
t
I don't have the answer you're looking for. You could also try asking your question: • in one of the other Slack channels or • to https://deepwiki.com/livekit/livekit_composite which is trained on all LiveKit source code If you find the answer, please post it here to help others!