how can I connect to playground with the new livek...
# ask-ai
a
how can I connect to playground with the new livekit agent sdk
t
Thanks for reaching out, Binod. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
You're asking how to connect to the Agents Playground with the new LiveKit Agent SDK. Here’s what to do: 1. Run your agent in dev mode so Playground can discover it: ◦ Python:
Copy code
uv run agent.py dev
• Node.js: Add a dev script to
package.json
(example):
Copy code
"scripts": { "dev": "tsx agent.ts dev" }
then run:
Copy code
pnpm dev
1. Open the hosted Agents Playground in your browser: https://agents-playground.livekit.io/ The Playground will automatically detect and connect to your running agent, letting you test via voice, video, or text. Would you like the exact command for your repo/language or help troubleshooting if Playground doesn't detect your agent? Sources: Voice AI quickstart | LiveKit docs | Agents playground | LiveKit Docs
a
I did everything above but playground is not automatically detecting my agent
t
Thanks — I’m sorry Playground isn’t detecting your agent. I’m here to help troubleshoot. To narrow this down, please share the following: 1. The exact command you used to start the agent (copy/paste). 2. The full startup logs or any error messages from the terminal. 3. Whether you started the agent in
dev
or
start
mode. 4. Whether your agent has an
agent_name
configured. 5. Are you using LiveKit Cloud or a self-hosted LiveKit server? 6. Confirmation that
LIVEKIT_API_KEY
,
LIVEKIT_API_SECRET
, and
LIVEKIT_URL
are set (redact secrets if needed). If you prefer, paste the relevant log lines and I’ll point out what to look for next. Sources: Agents playground | LiveKit Docs | Voice AI quickstart | LiveKit docs | Agent dispatch | LiveKit docs | Deploying to production | LiveKit Docs
a
1. python src/main.py dev 2. No error messages 3. dev mode 4. agent_name is configured 5. LiveKit Cloud
6. they are all set in env file
t
Thanks — because your agent has
agent_name
configured, the Playground won’t auto-dispatch to it. That’s why it’s not showing up. What you can do now: • Join a room from the Playground (e.g., room name
my-test-room
). • Dispatch your agent to that room:
Copy code
lk dispatch create --agent-name my-agent --room my-test-room
After dispatch, the agent should join the room and the Playground will be able to interact with it. If you prefer auto-discovery for quick testing, remove
agent_name
while running in
dev
mode — the agent will then auto-join new rooms created from the Playground. Would you like me to walk through running the
lk
command (project context / exact agent name and room) or check agent status/logs next?
a
yes
t
Great — I can guide you through dispatching the agent. Please provide: 1. The exact
agent_name
value. 2. The room name you want to use in the Playground (or I can suggest one). Also confirm you have the LiveKit CLI authenticated to the correct project (
lk project set-default "<project-name>"
). Once you share the agent_name and room, I’ll give the exact
lk dispatch create
command and the next status check command to run.