Skip to main content
Orchestration

Multiplayer

Connect multiple clients to one agentOS actor for collaborative coding-agent sessions with shared transcripts, state, and realtime updates.

Connect multiple clients to the same agentOS actor so all subscribers receive broadcasted session output, process logs, and shell data, enabling collaborative patterns where one user prompts and others observe.

Multiple clients observing a session

All clients connected to the same actor receive broadcasted events. This enables building collaborative UIs where multiple users watch an agent work.

Embedded API

Multiplayer requires Rivet Actors. An embedded VM has no connections and no broadcast: vm.onSessionEvent() and the other on* callbacks fire only in the process that created the VM. To let several clients watch one agent, either use an actor, or fan those callbacks out over your own application’s transport and let it own client identity.

Read more in the embedded API quickstart.