billions-balloon-32445
02/20/2026, 9:13 PM401 Unauthorized on all LiveKit agent CLI commands, even after fresh auth.
Setup:
LiveKit Cloud, Build plan (which includes agent deployment)
livekit-agents 1.4.2, Python 3.12
• CLI authenticated via lk cloud auth ✅
• lk project list shows correct project ✅
• RoomService API works fine with same keys ✅
Problem: Every agent command fails:
lk agent list
→ unable to list agents: Error from intermediary with HTTP status code 401 "Unauthorized"
python agent.py dev
→ WSServerHandshakeError: 401 on <wss://reyns-1lk896kt.livekit.cloud/agent>
Agent runs perfectly in console mode. Only dev and all lk agent commands fail.
Already tried: fresh CLI install, deleted ~/.livekit/cli-config.yaml, re-authenticated multiple times.
Any idea what's causing this? Is there a known issue with the Build plan and agent deployment?