> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Session Sharing Role • AI Agent SDK

> SessionSharingRole: The role an attached client holds within a shared Gateway session.

# SessionSharingRole

> Defined in the [**protocols**](../modules/protocols) module.

<Badge color="blue">AI Agent</Badge>

The role an attached client holds within a shared Gateway session.

Roles describe *what an attached client may do* within the session and
layer on top of :class:`OperatorScope`. Fan-out remains scope-aware: an
observer without `READ` receives nothing regardless of role.

Values:
OWNER:  Controls sharing/visibility; the session's original driver.
MEMBER: May co-drive (send) when the session is `SHARED`.
VIEWER: Observes the live turn stream but cannot send.

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/gateway/protocols.py#L293">
  `praisonaiagents/gateway/protocols.py` at line 293
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Session Management" icon="clock" href="/docs/docs/concepts/session-management" />

  <Card title="Sessions Feature" icon="folder" href="/docs/docs/features/sessions" />

  <Card title="Session Persistence" icon="database" href="/docs/docs/features/session-persistence" />
</CardGroup>
