> ## 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.

# Track Presence • AI Agent SDK

> track_presence: Set or update a client's presence status.

# track\_presence

<div className="flex items-center gap-2">
  <Badge color="blue">Async</Badge>
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**PresenceProtocol**](../classes/PresenceProtocol) class in the [**protocols**](../modules/protocols) module.

Set or update a client's presence status.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
async def track_presence(client_id: str, status: str, metadata: Optional[Dict[str, Any]]) -> None
```

## Parameters

<ParamField query="client_id" type="str" required={true}>
  Client identifier
</ParamField>

<ParamField query="status" type="str" required={false} default="'online'">
  Presence status ("online", "idle", "offline")
</ParamField>

<ParamField query="metadata" type="Optional" required={false}>
  Optional client metadata
</ParamField>

## Source

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