prehistoric-alligator-43413
10/17/2025, 4:27 PM:white_check_mark: Token server running on port ${port});
});tall-airline-16756
10/17/2025, 4:27 PMtall-airline-16756
10/17/2025, 4:28 PMprehistoric-alligator-43413
10/17/2025, 4:30 PMtall-airline-16756
10/17/2025, 4:31 PMprehistoric-alligator-43413
10/17/2025, 4:37 PMtall-airline-16756
10/17/2025, 4:38 PMroom_config parameter to specify which agents are allowed in a particular room. For example, you might set up agent-specific configurations like this:
at.roomConfig = new RoomConfiguration({
agents: [
new RoomAgentDispatch({
agentName: "specific-agent-name",
metadata: "additional-metadata"
})
]
});
1. Next, control access to the room by assigning the right VideoGrant permissions within your access token. Here’s an example:
const grant = {
room: roomName,
roomJoin: true,
canPublish: true,
canSubscribe: true,
};
at.addGrant(grant);
This way, only the agents with the correct setup will be able to join specific rooms.
If you’d like, I’m more than happy to help you implement this or discuss any particular needs you have—just let me know!
Sources: src/pages/api/token.ts | client/web/src/app/api/connection-details/route.ts | Voice Assistant Applications | livekit/livekit_composite | DeepWiki | Server-Side SDKs & Authentication | livekit/livekit_composite | DeepWiki | test/agent_test.go