famous-finland-27043
11/15/2025, 8:56 AMtall-airline-16756
11/15/2025, 8:56 AMtall-airline-16756
11/15/2025, 8:56 AMfamous-finland-27043
11/15/2025, 8:58 AMtall-airline-16756
11/15/2025, 8:59 AMfamous-finland-27043
11/15/2025, 9:00 AMtall-airline-16756
11/15/2025, 9:01 AMhidden parameter in the WorkerPermissions. Here’s a simple example in Python to guide you:
from livekit.agents import WorkerOptions, WorkerPermissions
opts = WorkerOptions(
permissions=WorkerPermissions(
can_publish=True,
can_subscribe=True,
can_publish_data=True,
hidden=True, # This makes the agent invisible to others
),
)
This way, your agent will be able to subscribe to audio tracks and handle data quietly, without being seen by other participants. If you have any questions or want to explore this further, just let me know—I’m here to help!
Sources: Worker options | LiveKit Docs | Text and transcriptions | LiveKit docs | Rooms, participants, and tracks | LiveKit docsfamous-finland-27043
11/15/2025, 9:14 AMtall-airline-16756
11/15/2025, 9:14 AMRoomConfiguration. Here’s a simple example to guide you:
at.roomConfig = new RoomConfiguration({
agents: [
new RoomAgentDispatch({ agentName: "hiddenAgent", metadata: "..." }),
new RoomAgentDispatch({ agentName: "visibleAgent", metadata: "..." })
]
});
This way, you have clear and precise control over agent assignments for each session. If you have any questions or need a hand with setting this up, please don’t hesitate to reach out—I’m here to help!
Sources: Authentication | LiveKit Docs | packages/livekit-server-sdk/src/AgentDispatchClient.ts | SIP Integration & Telephony | livekit/livekit_composite | DeepWiki | examples/agent_dispatch.py | Agent dispatch | LiveKit Docsfamous-finland-27043
11/15/2025, 9:18 AMtall-airline-16756
11/15/2025, 9:19 AMagent_name in Code: You can set the agent_name in the agent’s WorkerOptions to clearly identify your agent when dispatching. Here’s a quick example:
opts = WorkerOptions(
agent_name="my-custom-agent",
)
1. Separate Project Directories: Another approach is to deploy each agent from its own directory, each with its own unique configuration.
2. Configuration Files: You can also use different config files like livekit-agent1.toml and livekit-agent2.toml, then deploy using the --config flag like this:
lk agent deploy --config livekit-agent1.toml
If you’d like, I’m here to help you set up these configurations or organize multiple agents so everything runs smoothly. Just let me know! Sources: Agent deployment CLI reference | LiveKit docs | livekit/livekit_cloud_agent.pb.go | cmd/lk/agent.go | Deploying to production | LiveKit Docs | Agent dispatch | LiveKit Docsfamous-finland-27043
11/15/2025, 9:21 AMtall-airline-16756
11/15/2025, 9:22 AM# guest.py
from livekit.agents import JobContext, WorkerOptions, cli
async def guest_entrypoint(ctx: JobContext):
await ctx.connect()
# Guest-specific logic
if __name__ == "__main__":
cli.run_app(WorkerOptions(entrypoint_fnc=guest_entrypoint))
# host.py
from livekit.agents import JobContext, WorkerOptions, cli
async def host_entrypoint(ctx: JobContext):
await ctx.connect()
# Host-specific logic
if __name__ == "__main__":
cli.run_app(WorkerOptions(entrypoint_fnc=host_entrypoint))
1. Deploy Each Agent: Next, you can use the LiveKit CLI to deploy each agent, making sure to give each a unique ID or configuration:
# Deploy guest agent
lk agent deploy --id guest-agent-id /path/to/your/directory
# Deploy host agent
lk agent deploy --id host-agent-id /path/to/your/directory
1. Optional: If you’d prefer, you can also manage multiple agents dynamically by using environment variables or a single file with conditional entry points.
If you have any questions or need a hand with any part of this setup, please don’t hesitate to reach out—I’m here to help!
Sources: test/agents.go | Builds and Dockerfiles | LiveKit Docs | Agent deployment CLI reference | LiveKit docsfamous-finland-27043
11/15/2025, 9:45 AMtall-airline-16756
11/15/2025, 9:45 AMhidden property in the WorkerPermissions is what sets this state during the agent's initialization. Just a heads-up, this can't be changed dynamically while the agent is running through the entry code logic. If you want to change the hidden state, you'll need to redeploy the agent with the new settings.
If you'd like, I'm here to help you step-by-step with setting up or redeploying agents with the visibility configuration that works best for you. Just let me know!
Sources: livekit-protocol/livekit/protocol/models.pyi | Node.js Agents Architecture | livekit/livekit_composite | DeepWiki | agent-console/app/_components/participant-action-panel.tsx | Rooms, participants, and tracks | LiveKit docsfamous-finland-27043
11/15/2025, 9:46 AMtall-airline-16756
11/15/2025, 9:47 AMVideoGrant configuration. The hidden field in VideoGrant is meant to hide participants from others in the room, which might be just what you need. However, it's not clearly documented if this applies to agents dispatched via the token's RoomConfiguration.
A great way to find out is by testing it yourself—try setting hidden: true in the VideoGrant of the token used to dispatch the agent. If you'd like, I'm here to help you step-by-step with configuring or testing this setup. Just let me know!
Sources: Authentication | LiveKit Docs | lib/src/token_source/token_source.dart | Sources/LiveKit/Agent/Session.swift