rapid-painting-51133
12/17/2025, 8:24 PMtall-airline-16756
12/17/2025, 8:24 PMtall-airline-16756
12/17/2025, 8:25 PMuv run agent.py dev
• Node.js:
Add a dev script to `package.json`:
pnpm pkg set "scripts.dev=tsx agent.ts dev"
Then run:
pnpm dev
1. Open the hosted playground in your browser:
◦ https://agents-playground.livekit.io/
1. Interact with your agent:
◦ The playground will connect to the agent you started in dev mode; you can send text, use microphone/camera, or test multimodal inputs.
Would you like help verifying your agent is reachable from the playground or troubleshooting a connection that’s failing?
Sources: Agents playground | LiveKit Docs | An open source stack for real-time multimodal AIrapid-painting-51133
12/17/2025, 8:29 PMtall-airline-16756
12/17/2025, 8:30 PMimport { AccessToken } from 'livekit-server-sdk';
const at = new AccessToken('YOUR_API_KEY', 'YOUR_API_SECRET', {
identity: 'user123',
ttl: '1h',
});
at.addGrant({
roomJoin: true,
room: 'my-room-name',
canPublish: true,
canSubscribe: true,
});
const token = await at.toJwt();
1. Return that token from your backend endpoint to the client.
2. Client uses it to connect:
const room = new Room();
await room.connect('<wss://your-livekit-url>', token);
For quick testing you can create a token with the CLI:
lk token create --api-key <key> --api-secret <secret> --join --room my-room-name --identity test-user --valid-for 24h
Never expose your API secret in client code. Do you want the Node, Python, or CLI example expanded, or help wiring a backend endpoint?
Sources: Authentication | LiveKit docs | Generating tokens | LiveKit docs | LiveKit CLI Setup | LiveKit Docs